Integrate with Enhance - Native Android
Interstitial Ads
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
Example Usage
if (Enhance.isInterstitialReady()) { // The ad is ready, show it Enhance.showInterstitialAd(); }
Methods
Enhance.isInterstitialReady
boolean Enhance.isInterstitialReady()
Return Value:
Returns true
if any ad is ready, false
otherwise. When app is not Enhanced, always returns true
.
Enhance.isInterstitialReady
boolean Enhance.isInterstitialReady(
String placement
)
Parameters:
String placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Return Value:
Returns true
if any ad is ready, false
otherwise. When app is not Enhanced, always returns true
.
Enhance.showInterstitialAd
void Enhance.showInterstitialAd()
Enhance.showInterstitialAd
void Enhance.showInterstitialAd(
String placement
)
Parameters:
String placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Properties
String Enhance.PLACEMENT_DEFAULT
The default internal placement of all ad types. Always equal to "default"
.