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 |
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 |
String | message | The error message accompanying the |
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. |