Why no Ad plug-in for PhoneGap Build?

  • 2
  • Question
  • Updated 6 years ago
  • Answered
It is my understanding that there are no plug-ins that work with PhoneGap Build for displaying advertisements. What problems are preventing one from being developed? I suspect the issue has to do with Adobe's requirement that "plugins [for PhoneGap Build] must be source only and contain no binary code". (see https://build.phonegap.com/plugins) Do advertisement networks not want to release their SDK in source form for security reasons?
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes

Posted 6 years ago

  • 2
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi Jon,

We have iAd for iOS.

As for Admob, we are currently considering allowing this in the near future.

The reason it isn't allowed currently is that plugins that include binaries, which is present in most AdMob plugins.

So we are considering changing this rule in the future and with that change, expect some update on this.

Thanks.
Photo of Marco Parolari

Marco Parolari

  • 1 Post
  • 0 Reply Likes
Some news about it?
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
None yet.
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!