Hey guys,

I'm making a game/website/thingy using the flash exporter and I wanted to know if there was a way to embed google adsense into the actual swf. I have an account with google adsense but I've not used it much so I'm not quite sure how it works. However I did pop into the site for a bit and I can see there are API's featured here http://code.google.com/apis/ima/docs/index.html (hopefully you can see these, just in case, listed below)

Google IMA SDK Overview

The Google Interactive Media Ads (IMA) SDK is an extension for Adobe ActionScript 3 and Microsoft Silverlight development frameworks. It exposes a set of APIs that allow developers to make ad requests to the DoubleClick for Publishers (DFP) or AdSense network, interpret the ad response, and report metrics back to the ad server. Many of the world's leading online video publishers use the IMA SDK to request and display video ads.


Honestly I just want to use the site recommended adsense URL type ad because the ads are more of icing on the cake thing.

Anyway the reason I want them in the SWF is because the primary content is going to be inside the actual SWF file and as you know it's very easy to save and view a swf outside of the website. Otherwise I would just put the ads outside the swf and on the site.

I'd appreciate any tips, advice, help of any kind.

Thanks guys!