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

后端 未结 5 1182
一生所求
一生所求 2021-02-03 17:39

Everything in my Phonegap Build app is working, including the Analytics and FacebookConnect plugins. However, now I would like to add AdMob ads.

Phonegap Build does not

相关标签:
5条回答
  • 2021-02-03 18:18

    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.

    0 讨论(0)
  • 2021-02-03 18:20

    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.

    0 讨论(0)
  • 2021-02-03 18:23

    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.

    0 讨论(0)
  • 2021-02-03 18:36

    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

    0 讨论(0)
  • 2021-02-03 18:37

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

    0 讨论(0)
提交回复
热议问题