Supported ADS service/plugin for phonegap build compliant with ios/android.

  • 2
  • Question
  • Updated 6 years ago
Dear all i'm going to release a new app for ios and android store, i want to integrate it with an ads-service.

Actually what it the best solution? looking on the web seems that wehave different solutions

- google adsense
- admob
- leadbolt

But none of them are integrated with phonegab-build service...i've read

http://community.phonegap.com/nitobi/...
http://community.phonegap.com/nitobi/...

But the question is the same: how to build this on phonegap-build? i can't see any AdMob plugin on https://build.phonegap.com/plugins

Can you help me to figure it out?

Thanks
Photo of nik600 AT 10^100

nik600 AT 10^100

  • 32 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 2
Photo of Dave Johnson

Dave Johnson

  • 129 Posts
  • 13 Reply Likes
We are looking at how to best support those sorts of plugins that have a native SDK component as part of them.

It won't be done this week but pls stay tuned and we will be doing something to address this in the near future.
Photo of GWG Support

GWG Support

  • 1 Post
  • 0 Reply Likes
Hi, is there any update on how to integrate ads into an iOS phonegap app?
Photo of nik600 AT 10^100

nik600 AT 10^100

  • 32 Posts
  • 0 Reply Likes
Hi, any news here?
Photo of Liming Xie

Liming Xie

  • 23 Posts
  • 6 Reply Likes
Hi guys, here are some great news.

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 popular 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!