AdMob Free

Contents

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

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

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-admob-free npm install @ionic-native/admob-free
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/admob-free

Supported Platforms

  • Android
  • iOS

Usage

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));