Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 893
  • Last Modified:

Google AdWords 'Flash file must support clickTAG'

Hey there,

So i've bit the bullet and decided to run an AdWords campaign to increase traffic to my business.  I asked a previous question and upon recommendation from a user here, i'm going to run ads for a week on a 5-dollar-per-day basis.  I THOUGHT that I had my Flash banners ready to go but apparently I don't.

When I try create my first ad, I browse to the target Flash file on my HD and try to continue but a 'Flash file must support clickTAG' message pops up.  I looked into how to implement this in my movie but I've only been able to find references to Actionscript 2.  Man, there has to be a way to do this in Actionscript 3 right?  Could someone point me in the right direction here?

Thanks
0
duder78
Asked:
duder78
  • 7
  • 4
  • 2
1 Solution
 
dgofmanCommented:
Can I recommend my company product its working for Flex 3 and Flex 4.
It will also save your money on optimization keywords.
0
 
dgofmanCommented:
0
 
duder78Author Commented:
Thanks, but no thanks. I've already ponied up the cash for AdWords and I just want help implementing clickTAG in Actionscript 3 projects.  Anyone?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Erdinç Güngör ÇorbacıPHP Development Team LeaderCommented:
Ok here is solution ;

First step ; Prepare your swf file for use of clicktag

Go into the action code of the element in your flash file (fla) and change your click method's parameters like below

on (release) {
  if (clickTAG.substr(0,4) == "http") {
    getURL(clickTAG, "_top");
  }
}

Open in new window


as you can see we just do not promote the url where we want to send visitor directly. instead we use the clicktag variable from Query String. (which should be indicated as in Step 2 )



Step 2; Rebuild your swf link .

We will call swf file with a Query String.
For instance; not like www.yourdomain.com/banner.swf as usual we will add parameters.
new swf url would be like www.yourdomain.com/banner.swf?clicktag=www.myotherdomain.com


Look at usage example below;

<param name="movie" value="banner.swf?clicktag=buy.php?p_id=1354" />
this sends to the buy.php that should be in the same folder of your page.

And beware if you will use more complicated urls which has chars to be escaped use escaped syntax ( dont write / ? = and space directly in swf url)

An example for this is here ;

http://yourdomain.com/banner.swf?clicktag=http%3A%2F%2Fwww.myotherdomain.com 

And also beware that actionscript is case sensitive so using clicktag , Clicktag ,ClickTAG ,clickTAG are all different. just use same in both insiide swf and in html code.

hope all clear :) ... bb
0
 
Erdinç Güngör ÇorbacıPHP Development Team LeaderCommented:
Btw in my opinion posts like Mr. dgofman did wrote doesn't help to a question like this and better should be avoided....
0
 
duder78Author Commented:
I haven't tried your code yet, but isn't on(release) type syntax relevant to Actionscript2 only?
0
 
Erdinç Güngör ÇorbacıPHP Development Team LeaderCommented:
I don't clearly remember which version did i use that code but the only thing can be changed will be the actionscript's GetURL relevant.

You can try the code below for AC3 (not tested)

private function click(event : MouseEvent) : void {
 getURL(LoaderInfo(root.loaderInfo).parameters.clic kTag);
 }
 private function getURL(url : String,window : String = "_blank") : void { 
 var broswer : String = ExternalInterface.call("function getBrowser(){return navigator.userAgent}") as String; 
 if(broswer.indexOf("Firefox") != -1 || broswer.indexOf("MSIE 7.0") != -1) { 
 ExternalInterface.call('window.open("' + url + '","' + window + '")'); 
 } else { 
 navigateToURL(new URLRequest(url), window); 
 }
 }

Open in new window



BTW i've discovered a nice site for lazy people like me :)

http://getclicktag.com/  converts your swf to a clicktag compatible swf
0
 
duder78Author Commented:
I found some AS# relevant code.  I have a button and I added this event listener and function to it but i'm still getting the error message :

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

buttonClip.addEventListener(MouseEvent.CLICK, openURL);

function openURL(evtObj:MouseEvent):void {
    var request:URLRequest = new URLRequest(paramList["clickTAG"]);
    navigateToURL(request, "_blank");
}

Open in new window

0
 
duder78Author Commented:
erdincg..I tried that site too.  Too good to be true apparently.  I'm now getting a different error : 'Flash movie cannot contain random numbers' so that's a no go.

I'll try out your code and get back to you, thanks.
0
 
duder78Author Commented:
erdincg I tried your code and i'm still getting the error.  I'm pretty bummed here, I've got ads ready to go and I'm getting chumped by antiquated programming requirements.  AS3 has been out for what, 2 or 3 years now?  What gives!
0
 
duder78Author Commented:
Okay, I believe that the 'cannot have random numbers' is due to the external classes I'm using to animate some of my content.  Looks like that website worked...it's some error in my code..Give me 15 minutes..
0
 
duder78Author Commented:
Allright, I'm going to have to scrap my advertisements.  The external classes I'm using make use of random numbers in some of the animations and that's 'not cool' in Googles' eyes.  It's BS man, total BS.  

Thanks for the help, I'm dishing out the points as evenly as possible.
0
 
Erdinç Güngör ÇorbacıPHP Development Team LeaderCommented:
Hmm ... can you get any object in animation work  to send the visitor to an url as normal ? ... by human click i mean ? ....  (i guess the numbers are like the session id's right ? )   if so Why do you use numbers for link building? ( or do you ? )

And can you make any null animation work with the codes above?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now