If your Flash creative has more than one clickable area, you can assign multiple click-through URLs to the same creative by using clickTAGs. To do this, you'll need to upload your creative as a 'Custom' creative.
To create a Flash creative with multiple clickTAGs:
Upload the Flash SWF file and backup image to the custom creative.
Enter a creative name and click-through URL. Select the target ad unit size.
Copy and paste the code snippet found below.
Modify the
dccreativewidthanddccreativeheightlines to be the correct ad unit size for the creative.If the backup image was not a .jpg, change
%%FILE:JPG1%%to the appropriate file server macro. (Learn more about macros)Click Save.
If you'll be uploading more Flash creatives with multiple click-through URLs, you can save time by making a creative template that you can reuse over and over again. (Learn how to create custom creative templates)
Code snippet<!-- Copyright DoubleClick Inc., All rights reserved. -->
<SCRIPT LANGUAGE="JavaScript">
var dccreativewidth = '728';
var dccreativeheight = '90';
var dcswf = '%%FILE:SWF1%%';
var dcgif = '%%FILE:JPG1%%';
var dcallowscriptaccess = 'never';
var advurl = '%%DEST_URL%%';
var alttext = '';
var dcwmode = 'opaque';
var dcbgcolor = '';
var target = '_blank';
var dcbgcolor = '';
var dcminversion = '8';
var clickTAG = encodeURIComponent('%%CLICK_URL_UNESC%%http://first_URL');
var clickTAG2 = encodeURIComponent('%%CLICK_URL_UNESC%%http://second_URL');
var clickTAG3 = encodeURIComponent('%%CLICK_URL_UNESC%%http://third_URL');
function checkFlash(v){
var y, x, s="Shockwave", f="Flash", o="object", u="undefined", np=navigator.plugins, nm=navigator.mimeTypes, nmd="application/x-shockwave-flash";
v = Math.max(Math.floor(v) || 0, 6); // check if v is a number and use Flash Player 6 as the minimum player version
if(typeof np!=u&&typeof np[s+" "+f]==o&&(x=np[s+" "+f].description)&&!(typeof nm!=u&&nm[nmd]&&!nm[nmd].enabledPlugin)){
if(v<=x.match(/Shockwave Flash (\d+)/)[1])return true;}
else if(typeof window.ActiveXObject!=u){
for(y=16;y>=v;y--){
try{x=new ActiveXObject(s+f+"."+s+f+"."+y);if((x!=null)&&(typeof x==o))return true;}catch(e){}}
}
return false;}
if ( checkFlash(dcminversion) ) {
adcode = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
' ID=FLASH_AD WIDTH="'+ dccreativewidth +'" HEIGHT="'+ dccreativeheight +'">'+
'<PARAM NAME=movie VALUE="' + dcswf +'"><PARAM NAME="FlashVars" VALUE="' +
'clickTAG='+clickTAG+
'&clickTAG2='+clickTAG2+
'&clickTAG3='+clickTAG3+'"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#'+ dcbgcolor +'><PARAM NAME=wmode VALUE='+ dcwmode +'><PARAM NAME="AllowScriptAccess" VALUE="'+dcallowscriptaccess+'">'+
'<EMBED src="' + dcswf +'" flashvars="' +
'clickTAG='+clickTAG+
'&clickTAG2='+clickTAG2+
'&clickTAG3='+clickTAG3+'" quality=high wmode='+dcwmode+
' swLiveConnect=TRUE WIDTH="'+ dccreativewidth +'" HEIGHT="'+ dccreativeheight +'" bgcolor=#'+ dcbgcolor+
' TYPE="application/x-shockwave-flash" AllowScriptAccess="'+dcallowscriptaccess+'"></EMBED></OBJECT>';
if(('%eenv!'!="j")&&(typeof dclkFlashWrite!="undefined")){dclkFlashWrite(adcode);}else{document.write(adcode);}
} else {
document.write('<A TARGET="_blank" HREF="%%CLICK_URL_UNESC%%%%DEST_URL%%"><IMG SRC="' + dcgif + '" alt="" BORDER=0></A>');
}
//-->
</SCRIPT>
