$ cordova plugin add com.rjfun.cordova.plugin.admob
To install this plugin, follow the Command-line Interface Guide.
cordova plugin add com.rjfun.cordova.plugin.admob
Note: ensure you have a proper AdMob account and create an Id for your app.
setOptions(options, success, fail); createBannerView(options, success, fail); requestAd(options, success, fail); // optional, will be absolete showAd(true/false, success, fail); destroyBannerView(); createInterstitialView(options, success, fail); requestInterstitialAd(options, success, fail); // optional, will be absolete showInterstitialAd();
Check the test/index.html.
See the working example code in demo under test folder, and here are some screenshots.
This plugin is mainly maintained by Raymond Xie, and also thanks to following contributors:
You can use this plugin for FREE. To support the project, donation is welcome.
Forking and improving is welcome. Please ADD VALUE, instead of changing the name only.
Totally re-designed AdMob PluginPro is more recommended.
Ad PluginPro series for the world leading Mobile Ad services:
All Ad plugins implemented with exactly same API, so very easy to switch from one Ad service to another.
More Cordova/PhoneGap plugins by Raymond Xie, find them in plugin registry.
Customization, project outsourcing and consulting service is also available. Please contact us if you have the business needs.