Adsense code into Flash widget?
I think I'm putting everything in that I'm supposed to, to get my own Google Adsense code into the flash widget, so it must be in the wrong order.
Here's my code:
Here's my code:
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi Aunt Lee,
Pasting the code you have there won't work. Try putting it on a site like j.otdown.com and posting a link.
-
Inappropriate?If it helps, your code should look something like this:
${wbx.startAdSnippet}
[the code for your ads go here]
${wbx.endAdSnippet}
Where you put this code depends on where you want your ads displayed. This is only applicable for HTML/JS widgets. Any other widgets need to use the query string passed in regarding ads.
-
Inappropriate?So is this an HTML/JS widget, or a remote widget? If it's a remote widget:
Where you have the text "//load and show an ad", put that Google ad snippet that is at the bottom of your code there. And get rid of that "${wbx.startAdSnippet}". Just put the unaltered code snippet that Google gave you in that slot.
-
Inappropriate?Thank you.
I'm guessing I have a basic misunderstanding -- I need to put the Actionscript in the walkthru in my flash .fla file and then compile it so that it will read the code you sent -- is that the case? -
If your widget is registered as a Flash widget, then yes. You put the code in your Flash file. -
Inappropriate?Thank you! I'm going to have to download a trial of CS4 to alter the thing, cause i only own flash8, so i'll be awhile testing................
-
Inappropriate?Here's both my actionscript and my embed code -- the widget will run, but it doesn't call ads
http://www.auntlee.com/widget.html -
Inappropriate?Hi Auntlee
It seems like you're putting the Adsense code that Google gives you into your ActionScript. Unfortunately, this can't be done: the code Google gives you is HTML and you can't put HTML inside Flash.
An easy "tweak" is to consider using Mochi Ads instead of Adsense (since you're using Flash). Here's some info on their API:
http://www.mochimedia.com/developers/...
You shouldn't need to change your embed code at all---Widgetbox takes care of this for you (you give it the URL of your Flash file and it figures out what the embed code should be)
Hope this helps
Matt
I’m confident
Loading Profile...




