-
Notifications
You must be signed in to change notification settings - Fork 338
Home
Raymond Xie edited this page Sep 15, 2017
·
19 revisions
With this plugin, you can easily earn money with 1 line of javascript code.
AdMob.prepareInterstitial({
adId:'ca-app-pub-xxx/9375997553',
autoShow:true
});
AdMob.createBanner({
adId:'ca-app-pub-xxx/9375997553',
position:AdMob.AD_POSITION.BOTTOM_CENTER,
autoShow:true
});
# install cordova CLI
[sudo] npm install cordova -g
# install a small utility to run all the commands for you
[sudo] npm install plugin-verify -g
# demo 1: run admob demo with sample index.html
plugin-verify cordova-plugin-admobpro
# demo 2 and 3: run admob demo in game powered by PIXI/phaser HTML5 engine
plugin-verify admob-demo-game-pixi ios --landscape
plugin-verify admob-demo-game-phaser ios --landscape
# demo 4: run admob demo in app powered by ionic/angular framework
plugin-verify admob-demo-app-ionic ios --portrait
It has been tested with:
- Apache Cordova CLI, v3.0+ (How To ...)
- Intel XDK, r1095+ (How To ...)
- IBM Worklight, v6.2+ (How To ...)
- Google Mobile Chrome App (How To ...)
- Adobe PhoneGap Build. (How To ...)
- Meteor (How To ...)
- Ionic/AngularJS (In ng-cordova ...)
Quick start, simply copy & paste:
API Reference:
Other Documentations:
Demo projects:
- App demo for Ionic, by Jaive
- App demo for Ionic2, by Jaive
- Game demo using phaser game engine
- Game demo using PIXI game engine
- Using Cordova CLI to Add AdMob Plugin:
- Run AdMob Demo App on Android:
More video by developers:
- How to add banner ads to phonegap apps using AdMob Pro for android, by pointDeveloper
- How to add Banner ads To Ionic apps with Admob Pro For android, by pointDeveloper
- How To Add Banner Ads To Ionic 2 with AdMob Cordova Plugin, by pointDeveloper
- How to add Interstitial Add on navigation for phonegap using JavaScript and AdMob Pro plugin, by pointDeveloper
- How to add banner ads to jQuery Mobile Apps using Phonegap AdMob Pro Plugin, by pointDeveloper
- Intel XDK - Monetizando seu aplicativo com Admob e intel xdk., in Portuguese, by XDK PLUS
- Interesting Evolution of cordova-admob-pro (Gource Visualization), by Landon Wilkins
- Easy-to-use: Display Ad with single line of javascript code.
- Powerful: Support banner, interstitial, and video Ad.
- Max revenue: Support mediation with up to 8 leading mobile Ad services.
- Multi-size: Multiple banner size, also support custom size.
- Flexible: Fixed and overlapped mode, put banner at any position with overlap mode.
- Smart: Auto fit on orientation change.
- Same API: Exactly same API with other Ad plugins, easy to switch from one Ad service to another.
- Up to date: Latest SDK and Android Google play services.
- Good support: Actively maintained, prompt response.
Platforms supported:
- Android
- iOS
- Windows Phone
With mediation adapter, it can work with many other Ad networks and maximize your revenue. Tested:
- AdMob (built-in)
- DFP (DoubleClick for Publisher, built-in)
- Facebook Audience Network
- Flurry
- iAd
- InMobi
- Millennial Media
- MobFox