Help Center Manage Your Account Banner, Richmedia, and Text Ads
How do I track Flash/SWF ad with multiple clickTAGs?
If your Flash ad has multiple buttons, each with its own landing URL, you will need to use multiple clickTAGs for click tracking.Step 1 - Prepare the Flash/SWF buttons
In this example, there are 2 buttons, each with its own landing page:Button 1: on (release) { getURL("http://www.example.com/button1_page.html","_blank"); } Button 2: on (release) { getURL("http://www.example.net/button2_page.html","_blank"); }
After the conversion for click tracking, they should look like this:
Button 1: on (release) { if (_root.clickTAG.substr(0,4) == "http") { getURL(_root.clickTAG,'_blank'); } } Button 2: on (release) { if (_root.clickTAG2.substr(0,4) == "http") { getURL(_root.clickTAG2,'_blank'); } }For ActionScript 3, the code for 2 buttons would look like this:
Button1.addEventListener( MouseEvent.CLICK, function():void { if (root.loaderInfo.parameters.clickTAG.substr(0,4) == "http") { navigateToURL( new URLRequest(root.loaderInfo.parameters.clickTAG), root.loaderInfo.parameters.TargetAS ); } } ); Button2.addEventListener( MouseEvent.CLICK, function():void { if (root.loaderInfo.parameters.clickTAG2.substr(0,4) == "http") { navigateToURL( new URLRequest(root.loaderInfo.parameters.clickTAG2), root.loaderInfo.parameters.TargetAS ); } } );
Step 2 - Create the ad
Once you have the updated Flash/SWF file, you can create a new ad using the Rich-Media wizard for SWF ad. The wizard will ask for the SWF URL and additional landing page URL for each clickTAG. The result URL for the SWF ad will contain all the landing page URLs to pass along to the appropriate clickTAGs within the SWF file. For example:http://example.org/ad.swf?clickTAG=http%3A%2F%2Fwww.example.com%2Fbutton1_page.html&clickTAG2=http%3A%2F%2Fwww.example.net%2Fbutton2_page.html
- Follow the menu "Ads / Create a new ad"
- Choose the ad type to be "Rich-Media Ad (HTML Code)"
- Enter an ad name
- Click on the link "Rich-Media HTML Wizard" below the text box
- On that new window, click on "Generate HTML code for SWF file"
- Enter the ad width and height
- Enter the URL of the SWF file
- Enter the landing page URL for the 1st clickTAG. You can change or leave the default naming "clickTAG". You can do the same for the additional clickTAGs
- Click on button "Generate HTML"
- Switch back to the ad creation window with the text box
- Copy and paste this HTML code into the text box
- Set the ad width and height
- Save the new ad
Other Articles in Banner, Richmedia, and Text Ads
Information about different ad formats, dimension, sizes, and specifications.
- Ad Dimension
- Ad Specifications
- Ad Types
- Ad Weight
- Alternative Image/Media URL
- Click to a new or same window
- Click Tracking URL
- Destination URL or Click URL
- How can I convert a Flash ad into HTML5 for iPhone/iPad?
- How can I create a Google AdSense ad?
- How do I change the window title of my pop-up/pop-under ads?
- How do I mix image and text in an ad?
- How do I track click for Flash/SWF ads?
- How do I track clicks for HTML or Rich-Media ads?
- Image URL
- Rich-Media Ads
- Text alternative for banner ad images
- Third-Party Pixel URL
- Tutorial - Create a simple SWF with clickTAG tracking
Cannot find an answer for your question? Ask our Customer Care team
Related
- How do I track click for Flash/SWF ads?
"Flash ads (SWF files) should not use a static link for the click button, it should use clickTAG parameter, which ..."
- Tutorial - Create a simple SWF with clickTAG tracking
"Clicks on a Flash ad (SWF file) can't be tracked if the click button is assigned a static link. AdSpeed ..."
- Campaign
"Documentation for API methods to manage your campaigns in our ad server. API Version1.4.6 (build 20240530). This page was updated ..."
- How do I troubleshoot clickTAG issues for a Flash ad?
"Once a Flash ad is setup in our ad server, you can click on it as a test. The click ..."
- HTML5 Ad from a ZIP file
"If your client sends a ZIP file that contains all the creative assets (image, JavaScript, HTML, etc.), you can create ..."
in Ad Gallery