docs.unity3d.com
    Show / Hide Table of Contents

    Enum AdState

    The current state of an Interstitial or rewarded Ad. The current state of an Ad load or show.

    Unloaded: Indicates that an ad unit is ready to be loaded. AdUnits that are Unloaded cannot be showed.

    Set when Ad is instanced, Ad has closed or failed on show, Ad has failed to Load.

    Loading: Indicates that an ad unit is in the process of loading ad data. AdUnits that are Loading cannot be loaded again until a subsequent load has failed or show has completed/failed.

    Set when Ad load is called.

    Loaded: Indicates that an ad unit has loaded ad data and is ready to show. AdUnits that are Loaded cannot be loaded again until a subsequent show has completed/failed.

    Set when a line item has loaded (Ad load has succeeded).

    Showing: Indicates that an ad unit is in the process of showing. AdUnits that are Showing cannot be loaded or showed again until playback has completed/failed.

    Set when Ad show is called.

    Potential State Transitions: Unloaded to Loading to Loaded to Showing to Unloaded Unloaded to Loading to Unloaded

    Namespace: Unity.Services.Mediation
    Syntax
    public enum AdState : int

    Fields

    Name Description Value
    Loaded

    Indicates that an ad unit has loaded ad data and is ready to show. AdUnits that are Loaded cannot be loaded again until a subsequent show has completed/failed.

    Loading

    Indicates that an ad unit is in the process of loading ad data. AdUnits that are Loading cannot be loaded again until a subsequent load has failed or show has completed/failed.

    Showing

    Indicates that an ad unit is in the process of showing. AdUnits that are Showing cannot be loaded or showed again until playback has completed/failed.

    Unloaded

    Indicates that an ad unit is ready to be loaded. AdUnits that are Unloaded cannot be showed.

    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