Home Manual Reference Source

Variable

Static Public Summary
public
this variable was deprecated. since version 0.6

Ad sizes.

public
since 0.6
public
since 0.6
public

Reward video requires mediation SDK to be installed, see cordova-admob-mediation for list of supported networks.

since 0.6

Static Public

public AD_SIZE: BANNER_SIZE source

import {AD_SIZE} from 'cordova-plugin-admob-free/admob'
this variable was deprecated. since version 0.6

Ad sizes.

public banner: Banner since 0.6 source

import {banner} from 'cordova-plugin-admob-free/admob'

Emit:

admob.banner.events.LOAD

admob.banner.events.LOAD_FAIL

admob.banner.events.OPEN

admob.banner.events.CLOSE

admob.banner.events.EXIT_APP

Example:

admob.banner.config({
 id: 'ca-app-pub-xxx/xxx',
})

// Create banner
admob.banner.prepare()

// Show the banner
admob.banner.show()

// Hide the banner
admob.banner.hide()

// Remove the banner
admob.banner.remove()

public interstitial: Interstitial since 0.6 source

import {interstitial} from 'cordova-plugin-admob-free/admob'

Emit:

admob.interstitial.events.LOAD

admob.interstitial.events.LOAD_FAIL

admob.interstitial.events.OPEN

admob.interstitial.events.CLOSE

admob.interstitial.events.EXIT_APP

Example:

admob.interstitial.config({
 id: 'ca-app-pub-xxx/xxx',
})

admob.interstitial.prepare()

admob.interstitial.show()

public rewardvideo: RewardVideo since 0.6 source

import {rewardvideo} from 'cordova-plugin-admob-free/admob'

Reward video requires mediation SDK to be installed, see cordova-admob-mediation for list of supported networks.

Emit:

admob.rewardvideo.events.LOAD

admob.rewardvideo.events.LOAD_FAIL

admob.rewardvideo.events.OPEN

admob.rewardvideo.events.CLOSE

admob.rewardvideo.events.EXIT_APP

admob.rewardvideo.events.START

admob.rewardvideo.events.REWARD

Example:

admob.rewardvideo.config({
 id: 'ca-app-pub-xxx/xxx',
})

admob.rewardvideo.prepare()

admob.rewardvideo.show()