docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUnityAdsLoadListener

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

    Namespace: UnityEngine.Advertisements
    Assembly: UnityEngine.Advertisements.dll
    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
    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)