docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUnityAdsShowListener

    An interface for executing logic when an ad either shows or fails to show.

    Namespace: UnityEngine.Advertisements
    Assembly: UnityEngine.Advertisements.dll
    Syntax
    public interface IUnityAdsShowListener

    Methods

    OnUnityAdsShowClick(string)

    Executes logic for a user clicking an ad while it is showing.

    Declaration
    void OnUnityAdsShowClick(string placementId)
    Parameters
    Type Name Description
    string placementId

    The unique identifier of the Placement attempting to show content.

    OnUnityAdsShowComplete(string, UnityAdsShowCompletionState)

    Executes logic for the ad finishing in its entirety.

    Declaration
    void OnUnityAdsShowComplete(string placementId, UnityAdsShowCompletionState showCompletionState)
    Parameters
    Type Name Description
    string placementId

    The unique identifier of the Placement attempting to show content.

    UnityAdsShowCompletionState showCompletionState

    The UnityAdsShowCompletionState result of the show call.

    OnUnityAdsShowFailure(string, UnityAdsShowError, string)

    Executes logic for an ad failing to show.

    Declaration
    void OnUnityAdsShowFailure(string placementId, UnityAdsShowError error, string message)
    Parameters
    Type Name Description
    string placementId

    The unique identifier of the Placement attempting to show content.

    UnityAdsShowError error

    The UnityAdsShowError that caused the failure.

    string message

    The error message accompanying the UnityAdsShowError.

    OnUnityAdsShowStart(string)

    Executes logic for an ad successfully showing.

    Declaration
    void OnUnityAdsShowStart(string placementId)
    Parameters
    Type Name Description
    string placementId

    The unique identifier of the Placement attempting to show content.

    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)