Skip to main content

AdMob Free

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

Requires Cordova plugin: cordova-plugin-admob-free. For more info, please see the AdMob Free plugin docs.

https://github.com/ratson/cordova-plugin-admob-free

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install cordova-plugin-admob-free
$ npm install @ionic-native/admob-free
$ ionic cap sync

Supported Platforms#

  • Android
  • iOS

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { AdMobFree, AdMobFreeBannerConfig } from '@ionic-native/admob-free/ngx';
constructor(private admobFree: AdMobFree) { }
...
const bannerConfig: AdMobFreeBannerConfig = {
// add your config here
// for the sake of this example we will just use the test config
isTesting: true,
autoShow: true
};
this.admobFree.banner.config(bannerConfig);
this.admobFree.banner.prepare()
.then(() => {
// banner Ad is ready
// if we set autoShow to false, then we will need to call the show method here
})
.catch(e => console.log(e));