Skip to main content
Known Participant
August 20, 2010
Question

google ad code wrong

  • August 20, 2010
  • 1 reply
  • 1668 views

I submitted a couple of flash ad banners for a Google ad campaign and the clickTag code they gave me looks like it's for AS2 as it applies the code to an object:

(http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=26938)

on (release) {

getURL(clickTAG, "_blank");
}

I found somewhere some appropriate AS3 code but Google rejected that too. So does anyone know what the proper code is that will satisfy Google?

GF

This topic has been closed for replies.

1 reply

Inspiring
August 20, 2010

This should do that (given you code on timeline):

var flashVars:Object = this.root.loaderInfo.parameters;

button.addEventListener(MouseEvent.CLICK, openClickTag);

function openClickTag(evtObj:MouseEvent):void {
    navigateToURL(new URLRequest(flashVars["clickTag"]), "_blank");
}

August 20, 2010

I believe the var name is case-sensitive. It should be clickTAG.

navigateToURL(new URLRequest(flashVars["clickTAG"]), "_blank");

Known Participant
August 20, 2010

You should probably post this question on DoubleClick forum (DoubleClick belongs to Google):

http://www.google.com/support/forum/p/dfp?utm_source=gam_forum&utm_medium=et&utm_campaign=gam_forum


>

>

>

No virus found in this incoming message.

Checked by AVG - www.avg.com

Version: 9.0.851 / Virus Database: 271.1.1/3083 - Release Date: 08/20/10 01:35:00

>

actually I showed a page I arrived at from this link to my Google guy

and he said we're using Google adwords and not DFP small business. I saw

something on the DFP Small Business site that said I can turn off the

need for clickTAG altogether when I upload content. I'm not sure what

the relationship is between them, but for now I'm sticking with AS2.

that seemed to work for me.

GF