How to use this plugin with phonegap build ?
https://github.com/floatinghotpot/cor...
Please write config.xml plugin syntax.
Thanks in Advance.
https://github.com/floatinghotpot/cor...
Please write config.xml plugin syntax.
Thanks in Advance.
- 14 Posts
- 0 Reply Likes
Posted 6 years ago
John Weidner, Champion
- 435 Posts
- 80 Reply Likes
My understanding is that there are not any ad plugins that work with PhoneGap Build for Android. All the Android ad plugins use compiled code and PhoneGap Build does not allow that. You'll need to use the command line version of PhoneGap Build or you could try Intel XDK.
- 16 Posts
- 21 Reply Likes
From today it's possible as described in this post.
To enable Admob ads, place the following tag in your `config.xml` file:
You can test the phonegap admob demo app here
To enable Admob ads, place the following tag in your `config.xml` file:
<gap:plugin name="com.admob.google" source="plugins.cordova.io" />
You can test the phonegap admob demo app here
- 23 Posts
- 6 Reply Likes
Hi Kartik, I am the author of the plugin you mentioned. Here's some great new changes.
Thanks to PhoneGap Build team for making big changes to the policy, and allow all plugins in Cordova plugin registry can be used.
After 1 year, the long waited AdMob plugin can be used by PhoneGap Build users, by simply configuring it in config.xml:
The javascript call is quite simple, as the purpose of the plugin is: # Show Mobile Ad with single line of javascript code #
if(AdMob) AdMob.createBanner( {
adId:"ca-app-pub-xxx/kkk", // your admob ad unit id
position:AdMob.AD_POSITION.TOP_CENTER,
autoShow:true} );
For more instructions or example code, just go to the github homepage of the plugin project:
https://github.com/floatinghotpot/cor...
Besides AdMob, there are several other options:
http://plugins.cordova.io/#/search?se...
They are:
* Facebook AudienceNetwork
* Flurry Ads from Yahoo
* iAd
* MobFox
* MoPub
* MillennialMedia
All with exactly same API interface with the AdMob plugin.
Thanks again to PGB team for the amazing work!
Thanks to PhoneGap Build team for making big changes to the policy, and allow all plugins in Cordova plugin registry can be used.
After 1 year, the long waited AdMob plugin can be used by PhoneGap Build users, by simply configuring it in config.xml:
<gap:plugin name="com.google.cordova.admob" source="plugins.cordova.io"/>
The javascript call is quite simple, as the purpose of the plugin is: # Show Mobile Ad with single line of javascript code #
if(AdMob) AdMob.createBanner( {
adId:"ca-app-pub-xxx/kkk", // your admob ad unit id
position:AdMob.AD_POSITION.TOP_CENTER,
autoShow:true} );
For more instructions or example code, just go to the github homepage of the plugin project:
https://github.com/floatinghotpot/cor...
Besides AdMob, there are several other options:
http://plugins.cordova.io/#/search?se...
They are:
* Facebook AudienceNetwork
* Flurry Ads from Yahoo
* iAd
* MobFox
* MoPub
* MillennialMedia
All with exactly same API interface with the AdMob plugin.
Thanks again to PGB team for the amazing work!
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


