requestInterstitialAd

Miquel Martín edited this page Jan 28, 2015 · 2 revisions

Request an interstitial ad.

Note: If options.autoShowInterstitial is set to true (default option), the ad will automatically be displayed. Otherwise you need to call showInterstitialAd() when tappx.events.onAdLoaded event is raised.

If you already called tappx.requestInterstitialAd() but the interstitial has never been shown, the following calls to tappx.requestInterstitialAd() will result in the ad being inmediately available (the one that was obtained in the first call).

tappx.requestInterstitialAd(options, success, fail);
  • options: setup options (see options).
  • success: success callback.
  • failure: failure callback.