docs.unity3d.com
    Show / Hide Table of Contents

    Interface IUnityAdsShowListener

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

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

    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