AdMob Free

Improve this doc

$ ionic plugin add cordova-plugin-admob-free
$ npm install --save @ionic-native/admob-free

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

Supported platforms

Usage

import { AdMobFree, AdMobFreeBannerConfig } from '@ionic-native/admob-free';


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

Instance Members

events

Convenience constructor to get event names

on(event)

Watch an event

Param Type Details
event string

event name

Returns: Observable<any>

banner

interstitial

rewardVideo

API

Native

General