Interstitials

1. Configure the ad events

				
					private void InitializeInterstitialAds()
{
    Yodo1U3dMasCallback.Interstitial.OnAdOpenedEvent +=    
    OnInterstitialAdOpenedEvent;
    Yodo1U3dMasCallback.Interstitial.OnAdClosedEvent +=      
    OnInterstitialAdClosedEvent;
    Yodo1U3dMasCallback.Interstitial.OnAdErrorEvent +=      
    OnInterstitialAdErorEvent;
}

private void OnInterstitialAdOpenedEvent()
{
    Debug.Log("[Yodo1 Mas] Interstitial ad opened");
}

private void OnInterstitialAdClosedEvent()
{
    Debug.Log("[Yodo1 Mas] Interstitial ad closed");
}

private void OnInterstitialAdErorEvent(Yodo1U3dAdError adError)
{
    Debug.Log("[Yodo1 Mas] Interstitial ad error - " + adError.ToString());
}
				
			

2. Show the ad

				
					bool isLoaded = Yodo1U3dMas.IsInterstitialAdLoaded();

if(isLoaded) Yodo1U3dMas.ShowInterstitialAd();

				
			

3. Create an ad placement (optional)

You can use the ad placements to analyze the performance of your ads or run an A/B test to help you optimize your monetization strategy.

Simply add the placement name when you show the ad.

				
					Yodo1U3dMas.ShowInterstitialAd("Placement_Name");
				
			

You can find more details about the ad placements here.

4. Video tutorial

CONTENTS