Interstitial Ads - API Reference

Available Methods


/// <summary>
/// Asks the mediations to load an extra interstitial with the given placement
/// ID <b>on top of the default one, with the default placement ID</b> 
/// </summary>
/// <param name="placementId">THe placement ID of the new interstitial</param>
void LoadExtraInterstitial([NotNull] string placementId);
/// <summary>
/// Loads a high value interstitial ad, will do nothing if no high value ad is configured in the manifest.
/// </summary>
void LoadHighValueInterstitial();
/// <summary>
/// Shows the latest interstitial loaded ad
/// </summary>
/// <param name="placementName">The ad placement name for analytics</param>
/// <param name="placementId">(optional) The ad placement</param>
void ShowInterstitial(string placementName, string placementId = null);
/// <summary>
/// Requests to show a high value interstitial ad
/// </summary>
void ShowHighValueInterstitial(string placementName);
/// <summary>
/// Determines if the interstitial ad is available
/// </summary>
/// <returns></returns>
bool IsInterstitialAvailable(string placementId = null);

Callbacks


/// <summary>
/// Invoked when the Interstitial is Ready to shown after load function is called
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdReadyEvent += OnInterstitialAdReadyEvent;
 
/// <summary>
/// Invoked when the initialization process has failed.
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdLoadFailedEvent += OnInterstitialAdLoadFailedEvent;
 
/// <summary>
/// Invoked right before the Interstitial screen is about to open.
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdShowSucceededEvent += OnInterstitialAdShowSucceededEvent;
 
/// <summary>
/// Invoked when the ad fails to show.
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdShowFailedEvent += OnInterstitialAdShowFailedEvent;
 
/// <summary>
/// Invoked when end user clicked on the interstitial ad
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdClickedEvent += OnInterstitialAdClickedEvent;
 
/// <summary>
/// Invoked when the Interstitial Ad Unit has opened
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdOpenedEvent += OnInterstitialAdOpenedEvent;
 
/// <summary>
/// Invoked when the interstitial ad closed and the user goes back to the application screen.
/// <typeparam name="AdInfo">See <see cref="AdInfo"/></typeparam>
/// </summary>
HomaGames.HomaBelly.Events.onInterstitialAdClosedEvent += OnInterstitialAdClosedEvent;


/// <summary>
/// Asks the mediations to load an extra interstitial with the given placement
/// ID <b>on top of the default one, with the default placement ID</b> 
/// </summary>
/// <param name="placementId">THe placement ID of the new interstitial</param>
void LoadExtraInterstitial([NotNull] string placementId);
/// <summary>
/// Loads a high value interstitial ad, will do nothing if no high value ad is configured in the manifest.
/// </summary>
void LoadHighValueInterstitial();
/// <summary>
/// Shows the latest interstitial loaded ad
/// </summary>
/// <param name="placementName">The ad placement name for analytics</param>
/// <param name="placementId">(optional) The ad placement</param>
void ShowInterstitial(string placementName, string placementId = null);
/// <summary>
/// Requests to show a high value interstitial ad
/// </summary>
void ShowHighValueInterstitial(string placementName);
/// <summary>
/// Determines if the interstitial ad is available
/// </summary>
/// <returns></returns>
bool IsInterstitialAvailable(string placementId = null);