Integrate with Enhance - Cordova
Interstitial Ads
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
Example Usage
var callback = function(result) { if(!result) { app.writeLog('Interstitial ad is not ready'); return; } Enhance.showInterstitialAd(); }; Enhance.isInterstitialReady(callback);
Methods
Enhance.isInterstitialReady
void Enhance.isInterstitialReady(
Function resultCallback,
optional String placement = "default"
)
Parameters:
Function resultCallback
- Specifices the callback function.
optional String placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Return Value:
Returns true
to the callback function if any ad is ready, false
otherwise. When app is not Enhanced, always returns true
.
Enhance.showInterstitialAd
void Enhance.showInterstitialAd(
optional String placement = "default"
)
Parameters:
optional String placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).