docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ILevelPlayInterstitialAd

    APIs for LevelPlay Interstitial Ad in the Unity package.

    Inherited Members
    IDisposable.Dispose()
    Namespace: com.unity3d.mediation
    Assembly: Unity.LevelPlay.dll
    Syntax
    public interface ILevelPlayInterstitialAd : IDisposable

    Properties

    AdUnitId

    Gets the ad unit id of the ad.

    Declaration
    string AdUnitId { get; }
    Property Value
    Type Description
    string

    Methods

    DestroyAd()

    Destroys the Interstitial Ad.

    Declaration
    void DestroyAd()

    IsAdReady()

    Checks if the interstitial ad is ready

    Declaration
    bool IsAdReady()
    Returns
    Type Description
    bool

    Returns true if the interstitial ad is ready, returns false if not.

    LoadAd()

    Loads the Interstitial Ad.

    Declaration
    void LoadAd()

    ShowAd(string)

    Shows the Interstitial Ad.

    Declaration
    void ShowAd(string placementName = null)
    Parameters
    Type Name Description
    string placementName (Optional) Placement Name for the Interstitial Ad.

    Events

    OnAdClicked

    Invoked when the interstitial ad when the user clicks on the ad.

    Declaration
    event Action<LevelPlayAdInfo> OnAdClicked
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdClosed

    Invoked when the interstitial ad is closed.

    Declaration
    event Action<LevelPlayAdInfo> OnAdClosed
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdDisplayFailed

    Invoked when the interstitial ad fails to display.

    Declaration
    event Action<LevelPlayAdDisplayInfoError> OnAdDisplayFailed
    Event Type
    Type Description
    Action<LevelPlayAdDisplayInfoError>

    OnAdDisplayed

    Invoked when the interstitial ad is displayed.

    Declaration
    event Action<LevelPlayAdInfo> OnAdDisplayed
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdInfoChanged

    Invoked when the interstitial ad info is changed.

    Declaration
    event Action<LevelPlayAdInfo> OnAdInfoChanged
    Event Type
    Type Description
    Action<LevelPlayAdInfo>

    OnAdLoadFailed

    Invoked when the interstitial ad fails to load.

    Declaration
    event Action<LevelPlayAdError> OnAdLoadFailed
    Event Type
    Type Description
    Action<LevelPlayAdError>

    OnAdLoaded

    Invoked when the interstitial ad is loaded.

    Declaration
    event Action<LevelPlayAdInfo> OnAdLoaded
    Event Type
    Type Description
    Action<LevelPlayAdInfo>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)