docs.unity3d.com
    Show / Hide Table of Contents

    Interface IUnityAdsLoadListener

    An interface for executing logic when an ad either loads or fails to load.

    Namespace: UnityEngine.Advertisements
    Syntax
    public interface IUnityAdsLoadListener

    Methods

    OnUnityAdsAdLoaded(String)

    Executes logic for ad content successfully loading to a specified Placement.

    Declaration
    void OnUnityAdsAdLoaded(string placementId)
    Parameters
    Type Name Description
    String placementId

    The unique identifier of the Placement attempting to load content.

    OnUnityAdsFailedToLoad(String, UnityAdsLoadError, String)

    Executes logic for ad content failing to load.

    Declaration
    void OnUnityAdsFailedToLoad(string placementId, UnityAdsLoadError error, string message)
    Parameters
    Type Name Description
    String placementId

    The unique identifier of the Placement attempting to load content.

    UnityAdsLoadError error

    The UnityAdsLoadError that caused the failure.

    String message

    The error message accompanying the UnityAdsLoadError.

    In This Article
    • Methods
      • OnUnityAdsAdLoaded(String)
      • OnUnityAdsFailedToLoad(String, UnityAdsLoadError, String)
    Back to top
    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