Interstitials

MAS 4.3.2 and below

In order to integrate the Interstitial ads, you need to use the Yodo1MasInterstitialAdDelegate delegate.

1. Set the Interstitial Ad Delegate Method

[Yodo1Mas sharedInstance].interstitialAdDelegate = self;
#pragma mark - Interstitial Delegate - (void)onAdOpened:(Yodo1MasAdEvent *)event {
} - (void)onAdClosed:(Yodo1MasAdEvent *)event {
} - (void)onAdError:(Yodo1MasAdEvent *)event error:(Yodo1MasError *)error { }
Yodo1Mas.sharedInstance().interstitialAdDelegate =
self func onAdOpened(_ event: Yodo1MasAdEvent) {}
func onAdClosed(_ event: Yodo1MasAdEvent) { }
func onAdError(_ event: Yodo1MasAdEvent, _ error: Yodo1MasError) { }

2. Check the Loading Status of Interstitials

BOOL isLoaded = [[Yodo1Mas sharedInstance] isInterstitialAdLoaded];
let isLoaded = Yodo1Mas.sharedInstance().isInterstitialAdLoaded()

3. Show Interstitial Ad

[[Yodo1Mas sharedInstance] showInterstitialAd];
Yodo1Mas.sharedInstance().showInterstitialAd()

CONTENTS