PhoneGap iAds Plugin | July 12th, 2010
Hey its a new plugin for PhoneGap. I call it the “PhoneGap AdPlugin”, and even though it only supports iAds currently, there is potential for supporting the other ad networks as a backup to iAds. Make sure you read the RELEASE NOTES in the README for limitations.
Get the source and view the README
Below are screenshots from the test app included, called ‘iAdHost’


July 13th, 2010 at 1:28 am
Great! Thank u very much!
July 13th, 2010 at 3:26 pm
Great news! Do you need the ‘edge’ version of phonegap to get this working or will plug-ins work on the current 1.9.1 release?
July 13th, 2010 at 4:04 pm
Should work with current release.
July 16th, 2010 at 5:31 am
Could you post your HTML for the Phonegap HTML file shown in the windows above?
July 16th, 2010 at 5:33 am
It’s in the source, if you read the README. http://github.com/shazron/PhoneGap-Plugins/tree/master/AdPlugin/iPhone/iAdHost/www/
August 8th, 2010 at 3:02 pm
The Apple iAd docs (http://developer.apple.com/iphone/prerelease/library/documentation/UserExperience/Conceptual/iAd_Guide/Introduction/Introduction.html) says “While an advertisement is displayed, your application’s activities should be scaled back, and features that require the user to see or hear the user interace should be suspended.”.
How can I detect that the ad was clicked so I can pause the game music I have playing and pause the game?
August 27th, 2010 at 9:44 am
@russ
Might be in the next feature update – I have to hook into the native callbacks and send out DOM events to the UIWebView.