Displaying Ads
Displaying an Interstitial Ad
public static bool TryShowInterstitial(
string placement,
Action onClosed = null,
Dictionary<string, object> additionalData = null)private void ShowInterstitialAd()
{
const string placement = "level_complete";
if (LionAds.TryShowInterstitial(placement, AdClosed))
{
Debug.Log("Interstitial ad shown.");
}
else
{
Debug.Log("Interstitial ad not available.");
}
}
private void AdClosed()
{
Debug.Log("Interstitial ad closed.");
}Displaying a Rewarded Ad
Displaying Banner Ads

Last updated
Was this helpful?