Integrate with Enhance - Xamarin
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
bool Enhance.IsInterstitialReady(
optional string placement = "default"
)
Parameters:
optional 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(
optional string placement = "default"
)
Parameters:
optional string placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Properties
string Enhance.DEFAULT_PLACEMENT
The default internal placement of all ad types. Always equal to "default"
.