Can someone help in implementing AdMob in phonegap / Cordova 1.6.1 for iOS?
Note that AdMob is now not allowing to chose “smartphone web”, so it’s not simply implementing JavaScript code in the index.html.
Also this tutorial is not working, maybe since it was written for phonegap 1:
http://iphone.keyvisuals.com/iphonedev/implementing-admob-ads-in-a-phonegap-project-for-ios-no-plugins-required/
Thank you!
I tried this again it it actually did work. (With phonegap 1.3 xCode 4.2)
I added the lastest SDK like so .
The I added NSLogs to all AdMob contoller function to see whats going on.
I called the js function createBanner({“siteId”:”your-id”})
loadBanner()
and (that was the really stupid part)
moveBanner({“positionX”:0,’positionY’:0})
in the appropriate callback.
Ah, and if you get some error that says sth. about linking, just do whats described in the xcode error log.
PS: And don’t forget that ‘*’ in PhoneGap.plist
That’s it