Skip to content

1.1 API Overview

Anton Lydike edited this page Jul 6, 2017 · 2 revisions

Methods

AdMob.setOptions(options);

AdMob.createBanner(adId/options, success, fail);
AdMob.removeBanner();
AdMob.showBanner(position);
AdMob.showBannerAtXY(x, y);
AdMob.hideBanner();

AdMob.prepareInterstitial(adId/options, success, fail);
AdMob.showInterstitialAd();
AdMob.isInterstitialReady(callback);

Events

Syntax: document.addEventListener(event_name, function(e){});

// for banner Ad
// for interstitial Ad    
'onAdLoaded'
'onAdFailLoad'
'onAdPresent'
'onAdDismiss'
'onAdLeaveApp'