flashactionscriptopenxclicktag

Flash banner link not accessible in openX?


I make flash banners for different clients and all were happy until I met fellows who use openX . I used the regular as2 code(they demanded as2)

on (release){
  getURL("http://www.ge.vtb.ge/personal/cards/credit/");
}

but they said it doesn't convert or something, so I found out I needed clicktag, I used this code

on (release) {
  if (clickTAG.substr(0,5) == "http:www.[mylink].com") {
    getURL(clickTAG,clickTARGET);
  }
}

as was stated in this tutorial , but now they say the banner isn't linked. I'm really confused what to do, can anyone give me a suggestion? I even read through adobes official guide for clicktag , but it was the same...


Solution

  • This condition here:

    if (clickTAG.substr(0,5) == "http:www.[mylink].com")
    

    will never resolve to TRUE, so the getURL will never be called. Please change it to:

    if (clickTAG.substr(0,5) == "http:")
    

    and check if its working now.

    EDIT:

    Make sure they are setting the clickTAG variable with the right URL when embedding the swf banner. I'll copy the relevant part of the official clickTAG guide:

    The code below will allow ad serving networks to dynamically assign a clickTAG to their ad.

    In this example, a getURL action is being assigned to a button that will navigate the browser to ["clickTAG"]. The "getURL(clickTAG)" statement appends the variable data passed in via the OBJECT EMBED tag and navigates the browser to that location. It is the tracking code assigned by the ad serving network, which allows them to register a user's click on that advertisement.

    <EMBED src="ad_banner_example.swf?clickTAG= http://adnetwork.com/tracking?http://www.destinationURL.com">
    

    This would be the workflow, I think you guys are skipping the 3rd step (passing the URL to the swf object):

    clickTAG workflow