my first app using html,
so how i can add admob banner in it or maybe i should using adsense?
so how i can add admob banner in it or maybe i should using adsense?
- 3 Posts
- 0 Reply Likes
Posted 6 years ago
- 8261 Posts
- 263 Reply Likes
It have to be plugin, but Build doesn't have such plugin yet. You might want to frequently check the following link for it's availability
https://build.phonegap.com/plugins
Thanks
https://build.phonegap.com/plugins
Thanks
- 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" version="2.0.2" source="plugins.cordova.io" />
You can test the phonegap admob demo app here
- 3 Posts
- 0 Reply Likes
how to start banner ad without to click on the button?
- 16 Posts
- 21 Reply Likes
I correct my post: do not place version number to always fetch the last version:
By default banner ads start automatically. This code would start showing ads inmediately:
<gap:plugin name="com.admob.google" source="plugins.cordova.io" />
By default banner ads start automatically. This code would start showing ads inmediately:
function onDeviceReady() {
admob.createBannerView({ publisherId: "YOUR_PUBLISHER_ID" });
}
document.addEventListener("deviceready", onDeviceReady, false);
- 3 Posts
- 0 Reply Likes
- 23 Posts
- 6 Reply Likes
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 #
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!
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 #
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 Framework
- 2926 Conversations
- 61 Followers
-
Plugins
- 1283 Conversations
- 38 Followers

