1.5 Events

Raymond Xie edited this page Jun 15, 2015 · 4 revisions


  • onAdFailLoad
  • onAdLoaded
  • onAdPresent
  • onAdLeaveApp
  • onAdDismiss

All following events will come with a data param, with properties:

  • data.adNetwork, the Ad network name, like 'AdMob', 'Flurry', 'iAd', etc.
  • data.adType, 'banner' or 'interstitial'
  • data.adEvent, the event name

Tips: You can use 2 or more Ad PluginPro together, and distinguish the events by checking data.adNetwork.


Triggered when failed to receive Ad.

    console.log( data.error + ',' + data.reason );
    if(data.adType == 'banner') AdMob.hideBanner();
    else if(data.adType == 'interstitial') interstitialIsReady = false;


Triggered when Ad received.

    if(data.adType == 'banner') AdMob.showBanner();
    else if(data.adType == 'interstitial') interstitialIsReady = true;
    adId: admobid.interstitial,
    autoShow: false


Triggered when Ad will be showed on screen.


Triggered when user click the Ad, and will jump out of your App.


Triggered when dismiss the Ad and back to your App.