docs.unity3d.com
    Show / Hide Table of Contents

    Interface IInterstitialAd

    Interface of an Interstitial Ad.

    Namespace: Unity.Services.Mediation
    Syntax
    public interface IInterstitialAd : IDisposable

    Properties

    AdState

    Get the current state of the ad.

    Declaration
    AdState AdState { get; }
    Property Value
    Type Description
    AdState

    AdUnitId

    Get the ad unit id set during construction.

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

    Methods

    Load()

    Method to tell the Mediation SDK to load an Ad.

    Declaration
    void Load()

    Show()

    Method to tell the Mediation SDK to show the loaded Ad.

    Declaration
    void Show()

    Events

    OnClicked

    Event to be triggered by the adapter when the user clicks on the Ad.

    Declaration
    event EventHandler OnClicked
    Event Type
    Type Description
    EventHandler

    OnClosed

    Event to be triggered by the adapter when the Ad is closed.

    Declaration
    event EventHandler OnClosed
    Event Type
    Type Description
    EventHandler

    OnFailedLoad

    Event to be triggered by the adapter when an Ad fails to load.

    Declaration
    event EventHandler<LoadErrorEventArgs> OnFailedLoad
    Event Type
    Type Description
    EventHandler<LoadErrorEventArgs>

    OnFailedShow

    Event to be triggered by the adapter when the Ad has an error.

    Declaration
    event EventHandler<ShowErrorEventArgs> OnFailedShow
    Event Type
    Type Description
    EventHandler<ShowErrorEventArgs>

    OnLoaded

    Event to be triggered by the adapter when an Ad is loaded.

    Declaration
    event EventHandler OnLoaded
    Event Type
    Type Description
    EventHandler

    OnShowed

    Event to be triggered by the adapter when an Ad is started.

    Declaration
    event EventHandler OnShowed
    Event Type
    Type Description
    EventHandler
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023