Home Manual Reference Source

Function

Static Public Summary
public

createBannerView(options: {}, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

createInterstitialView(options: *, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

destroyBannerView(options: *, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

prepareInterstitial(options: {}, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

requestInterstitialAd(options: {}, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

setOptions(options: Object, successCallback: function(), failureCallback: function())

this function was deprecated. since version 0.6

Set options.

public

showAd(show: boolean, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

showInterstitial(successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6
public

showInterstitialAd(show: boolean, successCallback: *, failureCallback: *)

this function was deprecated. since version 0.6

Static Public

public createBannerView(options: {}, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
options {}
  • optional
  • default: {}
successCallback *
failureCallback *

public createInterstitialView(options: *, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
options *
successCallback *
failureCallback *

public destroyBannerView(options: *, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
options *
successCallback *
failureCallback *

public prepareInterstitial(options: {}, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
options {}
  • optional
  • default: {}
successCallback *
failureCallback *

public requestInterstitialAd(options: {}, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
options {}
  • optional
  • default: {}
successCallback *
failureCallback *

public setOptions(options: Object, successCallback: function(), failureCallback: function()) source

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

Set options.

Params:

NameTypeAttributeDescription
options Object
options.publisherId string
options.interstitialAdId string
options.bannerAtTop boolean
  • optional
  • default: false

Set to true, to put banner at top.

options.overlap boolean
  • optional
  • default: true

Set to true, to allow banner overlap webview.

options.offsetTopBar boolean
  • optional
  • default: false

Set to true to avoid ios7 status bar overlap.

options.isTesting boolean
  • optional
  • default: false

Receiving test ad.

options.autoShow boolean
  • optional
  • default: false

Auto show interstitial ad when loaded.

options.forChild boolean | null
  • optional
  • default: null

Default is not calling tagForChildDirectedTreatment. Set to "true" for tagForChildDirectedTreatment(true). Set to "false" for tagForChildDirectedTreatment(false).

options.forFamily boolean | null
  • optional
  • default: null

Android-only. Default is not calling setIsDesignedForFamilies. Set to "true" for setIsDesignedForFamilies(true). Set to "false" for setIsDesignedForFamilies(false).

successCallback function()
  • optional
failureCallback function()
  • optional

public showAd(show: boolean, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
show boolean
  • optional
  • default: true
successCallback *
failureCallback *

public showInterstitial(successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
successCallback *
failureCallback *

public showInterstitialAd(show: boolean, successCallback: *, failureCallback: *) source

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

Params:

NameTypeAttributeDescription
show boolean
  • optional
  • default: true
successCallback *
failureCallback *