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. |
Unity |
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. |
Unity |
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. |