Create a Custom AdMob Plugin for Phonegap Build (for iOS and Android)

有些话、适合烂在心里 提交于 2019-12-02 21:37:54

This is an old unanswered question as since today it was impossible. But Phonegap has announced a change in their rules: see here, so now it's possible to use external plugins. To add Admob Ads to your Phonegap Build app, edit your config.html file and place the following code:

<gap:plugin name="phonegap-admob" source="npm" />

I'm the author of the plugin and you can see a live demo app (for Android only) here

ali_o_kan

I make the plugin

But it's was refused on "PhoneGap Build", because it contains Google Binary files…
Today, you don't have no solution to use Admob on "PhoneGap Build" project.

Nathan Prather

This article has what you're looking for with regards to setting up plugman for your plugin.

YASH GOLWARA

For admob: its little bit confusing reading about them, because in the past they used to serve ads through JavaScript method intended for mobile web site but after google buying the company they removed this and admob doesn't serve mobile website any more and for mobile web site they advise you to use adsense. What confusing about it that there is still instruction for installing admob JavaScript which doesn't exist any more.
I saw your links and I guess you where trying to install admob for iOS app. I did it for Android app which was straight forward and it was easy but the problem was what ever I try it shows on the bottom.

Eddy Verbruggen

PhoneGap Build now allows any user to contribute a plugin which will be available to all users (after a review and test ofcourse).
They have a new page describing the process and advice aspiring contributors to take a look at the repo of the Facebook plugin.

So maybe you are able to create a nice Admob plugin based on this documentation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!