ShowInterstitial

Description

Display an interstitial ad if available.

Declaration

Multiple versions of ShowInterstitial are available:

public static void ShowInterstitial()

public static void ShowInterstitial(UnityAction interstitialClosed)

Parameters

NameDescription

interstitialClosed

Callback called when interstitial is closed.

Example

public class Test : MonoBehaviour
{
    private void Start()
    {
        Gley.MobileAds.API.Initialize();
    }
    
    public void ShowInterstitial()
    {
        Gley.MobileAds.API.ShowInterstitial();
    }
}

Last updated