Integrate with Enhance - Native iOS
Interstitial Ads
Interstitial Ads are short static or video ads, usually shown between levels or when game is over.
Example Usage
bool isInterstitialReady = [Enhance isInterstitialReady]; if(isInterstitialReady) { [Enhance showInterstitialAd]; }
Methods
Enhance isInterstitialReady
BOOL [Enhance isInterstitialReady]
Check if an ad from any of the included SDK providers is ready to be shown.
Return Value:
Returns true
if any ad is ready, false
otherwise. When app is not Enhanced, always returns true
.
Enhance.isInterstitialReady
BOOL [Enhance.isInterstitialReady:
(NSString*) placement
]
Check if an ad from any of the included SDK providers is ready to be shown.
Parameters:
NSString* 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]
Display an ad if any is currently available. The ad provider is selected based on your app's mediation settings.
Enhance showInterstitialAd
void [Enhance showInterstitialAd:
(NSString*) placement
]
Display an ad if any is currently available. The ad provider is selected based on your app's mediation settings.
Parameters:
NSString* placement
- Specifies the internal placement of the ad (from the Enhance mediation editor).
Properties
NSString* PLACEMENT_DEFAULT
The default internal placement of all ad types. Always equal to "default"
.