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):