docs.unity3d.com
    Show / Hide Table of Contents

    Class InterstitialAd

    Class to be instantiated in order to show an Interstitial Ad.

    Inheritance
    Object
    InterstitialAd
    Namespace: Unity.Services.Mediation
    Syntax
    public sealed class InterstitialAd : object, IInterstitialAd, IDisposable

    Constructors

    InterstitialAd(String)

    Constructor for managing a specific Interstitial Ad.

    Declaration
    public InterstitialAd(string adUnitId)
    Parameters
    Type Name Description
    String adUnitId

    Unique Id for the Ad you want to show.

    Properties

    AdState

    Get the current state of the ad.

    Declaration
    public AdState AdState { get; }
    Property Value
    Type Description
    AdState
    Implements
    IInterstitialAd.AdState

    AdUnitId

    Get the ad unit id set during construction.

    Declaration
    public string AdUnitId { get; }
    Property Value
    Type Description
    String
    Implements
    IInterstitialAd.AdUnitId

    Methods

    Dispose()

    Dispose and release internal resources.

    Declaration
    public void Dispose()

    Load()

    Method to tell the Mediation SDK to load an Ad.

    Declaration
    public void Load()
    Implements
    IInterstitialAd.Load()

    Show()

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

    Declaration
    public void Show()
    Implements
    IInterstitialAd.Show()

    Events

    OnClicked

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

    Declaration
    public event EventHandler OnClicked
    Event Type
    Type Description
    EventHandler
    Implements
    IInterstitialAd.OnClicked

    OnClosed

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

    Declaration
    public event EventHandler OnClosed
    Event Type
    Type Description
    EventHandler
    Implements
    IInterstitialAd.OnClosed

    OnFailedLoad

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

    Declaration
    public event EventHandler<LoadErrorEventArgs> OnFailedLoad
    Event Type
    Type Description
    EventHandler<LoadErrorEventArgs>
    Implements
    IInterstitialAd.OnFailedLoad

    OnFailedShow

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

    Declaration
    public event EventHandler<ShowErrorEventArgs> OnFailedShow
    Event Type
    Type Description
    EventHandler<ShowErrorEventArgs>
    Implements
    IInterstitialAd.OnFailedShow

    OnLoaded

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

    Declaration
    public event EventHandler OnLoaded
    Event Type
    Type Description
    EventHandler
    Implements
    IInterstitialAd.OnLoaded

    OnShowed

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

    Declaration
    public event EventHandler OnShowed
    Event Type
    Type Description
    EventHandler
    Implements
    IInterstitialAd.OnShowed
    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