I am using this AdMob plugin (https://github.com/rajpara11/phonegap-plugins/tree/master/Android/AdMobPlugin) to serve AdMob ads in Android. I am not getting any advertisements and there is a large (25%) area of the screen at the bottom that is white. I do get this error "CordovaLog(275): TypeError: Result of expression 'window.plugins' [undefined] is not an object." in my Aptana/Eclipse log when running in the emulator.
The documentation setup says to put the "AdMob Cordova plugin jar inside libs/". There is only a .Java file. Am I supposed to compile this into a JAR file and put it in that folder? Are there any tutorials showing this plugin working?
Thanks in advance
Make sure you have added references to Phonegap/Cordova prior references to the AdMob plug-in, as it depends on it.
You can take a look at this video tutorial how to use PhoneGap plug-ins: http://www.youtube.com/watch?v=84jmuXS8GJI
Good luck!
Try a different plugin as it sounds like this plugin is broken. I know this one works
https://github.com/sunnycupertino/cordova-plugin-admob-simple
Integration is as follows:
-Add the following javascript functions, put in your own ad code, play with the variables if you want.
-Call initAd() from onDeviceReady(), and showBannerFunc() and showInterstitialFunc() to show ads.
Fixed it by commenting out this line in the code:
isTesting:true