How to register "ADS plugin" in Config.xml for phonegap build?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
i read the answers here:
http://community.phonegap.com/nitobi/...

i am using
https://github.com/floatinghotpot/cor...

i have been using it in cli but now i want to use it in the Build service.

what i want to ask is what do i add in the config file to register this plugin

also any other suggestion for adding plug-ins for the build service are welcome
Photo of Prantik

Prantik

  • 39 Posts
  • 1 Reply Like

Posted 6 years ago

  • 1
Photo of Mark Leck

Mark Leck

  • 19 Posts
  • 4 Reply Likes
Try:
< gap:plugin name="com.google.cordova.admob" version="2.5.0" source="plugins.cordova.io" />

I have not used this plugin so cant help on that front, but the above should pull in everything you need during build anyway.
Photo of Liming Xie

Liming Xie

  • 23 Posts
  • 6 Reply Likes
Hi, I am "floatinghotpot", the author of the plugin.

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: (omit the version to use the latest version)

<gap:plugin name="com.google.cordova.admob" source="plugins.cordova.io"/>

It's now updated in the github project wiki:
https://github.com/floatinghotpot/cor...