Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 19, 2021. It is now read-only.

New development has been moved to "admob-plus-cordova",https://github.com/admob-plus/admob-plus/tree/master/packages/cordova

License

NotificationsYou must be signed in to change notification settings

ratson/cordova-plugin-admob-free

Repository files navigation

A free, no ad-sharing version of Google AdMob plugin for Cordova.

Status

Allcordova-plugin-admob-free should switch to useadmob-plus-cordova for latest improvements.

I have been asking the interest aboutfunding this project a while, got some encouraging feedback, finally have setupa funding page.

Please useadmob-plus if possible.

While my focus isadmob-plus, I will keep maintainingcordova-plugin-admob-free until all exisiting features are available with the new plugin.

If you are earning more than USD$200 monthly from using this plugin, please considerfunding my work.

Features

  • No Ad-Sharing

    Unlikesomeotherplugins, this plugin does not share your advertising revenue by randomly display developer's owned ads.

  • Fully Open Sourced

    Except Google providedAdMob SDKs, every line of code are on Github. You don'texecutecompiledbinary without seeing the source code.

  • No Remote Control

    Do notsend your application information to a remote server to control whether ad could be displayed. Therefore, you don'tlose revenue becausesome server bugs,

    NOTE(2018-03-17): The above issue links are broken due to the author removed the discussions, the fact is thecordova-plugin-admobpro is sending requests tohttp://adlic.rjfun.com/adlic with application information for controling ad display, and some users reported losting more revenue than advertised, so use it at your own risk.

Compare to other projects

ProjectNo Ad-SharingFully Open SourcedNo Remote Control
admobNot SureNot Sure
cordova-admob
cordova-plugin-ad-admob
cordova-plugin-admob-free
cordova-plugin-admob-simple
cordova-plugin-admobpro

Click ❌ to see the detail.

NOTE(2018-03-17):cordova-plugin-admobpro is usingcordova-plugin-extension for its compiled code, the author removed the repository casusing the above broken links.For those interested could download the npm tarball for investigation.

Installation

cordova plugin add cordova-plugin-admob-free --save

Since the version 17 of play-services-ads and the 0.21.0 version of the plugin the ADMOB_APP_ID must be added to the AndroidManifest.xml. To install the plugin without errors and to insert the ADMOB_APP_ID to the manifest file automatically use the following code:

cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID="<YOUR_ANDROID_ADMOB_APP_ID_AS_FOUND_IN_ADMOB>"

Since version 7.42 of the Google AdMob Mobile Ads SDK for iOS, you must add the ADMOB_APP_ID to yourInfo.plist, which you can do by adding the folowing inside the<platform name="ios"> section in yourconfig.xml file:

<config-filetarget="*-Info.plist"parent="GADApplicationIdentifier">    <string>YOUR_IOS_ADMOB_APP_ID_AS_FOUND_IN_ADMOB</string></config-file>

Note thatcordova plugin add [GIT_URL] is not supported.

Usage

1. Create Ad Unit ID for your banner and interstitial.

Go to theAdMob portal and add your app (if you haven't done so already), once your app is added to your AdMob account, create a new ad unit for it.

2. Display advertisements

3. Profit

If you find this plugin useful, pleasestar it on Github.

Screenshots

Android BannerAndroid Interstitial
ScreenShotScreenShot
iOS BanneriOS Interstitial
ScreenShotScreenShot

API

Seedocumentation page.

Customize Google Play Services versions (Android only)

The defaultPLAY_SERVICES_VERSION is set to11.0.4.If you need a different version, editconfig.xml with following,

<pluginname="cordova-admob-sdk"spec="~0.13.1">    <variablename="PLAY_SERVICES_VERSION"value="11.6.0" /></plugin>

Note that if you are adding these lines to an existing project, you need to remove bothadmob-free plugin andandroid platform and add them back again to affect the version number.

Contributing

You can use this Cordova plugin for free. You can contribute to this project in many ways:

Help with documentation is always appreciated and can be done via pull requests.

ReadContributing Guide to learn how to contribute.

Ionic Support

While the Ionic community have providedan Ionic Native Plugin, plugin users need more examples and tutorials.

As I (@ratson) don't use Ionic myself, it would be great if some experienced Ionic developers could help answering questions or come up with more examples. HELP WANTED HERE.

Credits

Thanks for thecordova-plugin-admob-simple author for forking the original projectcordova-plugin-admob tomake it functional and open source it.

Screenshots are copied fromcordova-admob-pro.

Disclaimer

This is NOT an official Google product. It is just a community-driven project, which use the Google AdMob SDKs.

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp