public interface IUnityAdsShowListener
Modifier and Type | Method and Description |
---|---|
void |
onUnityAdsShowClick(java.lang.String placementId)
Callback which notifies that UnityAds has received a click while showing ad for a specific placement.
|
void |
onUnityAdsShowComplete(java.lang.String placementId,
UnityAds.UnityAdsShowCompletionState state)
Callback triggered when the show operation completes successfully for a placement.
|
void |
onUnityAdsShowFailure(java.lang.String placementId,
UnityAds.UnityAdsShowError error,
java.lang.String message)
Callback which notifies that UnityAds has failed to show a specific placement with an error message and error category.
|
void |
onUnityAdsShowStart(java.lang.String placementId)
Callback which notifies that UnityAds has started to show ad with a specific placement.
|
void onUnityAdsShowFailure(java.lang.String placementId, UnityAds.UnityAdsShowError error, java.lang.String message)
placementId
- Placement, as defined in Unity Ads admin toolserror
- If UnityAdsShowError.NOT_INITIALIZED, the show operation failed due to SDK is not initialized
If UnityAdsShowError.NOT_READY, the show operation failed due to placement not ready to show
If UnityAdsShowError.VIDEO_PLAYER_ERROR, the show operation failed due to an error in playing the video
If UnityAdsShowError.INVALID_ARGUMENT, the show operation failed due to invalid placement ID
If UnityAdsShowError.NO_CONNECTION, the show operation failed due to no internet connection
If UnityAdsShowError.ALREADY_SHOWING, the show operation failed due to ad is already being shown
If UnityAdsShowError.INTERNAL_ERROR, the show operation failed due to environment or internal servicesmessage
- Human-readable error messagevoid onUnityAdsShowStart(java.lang.String placementId)
placementId
- Placement, as defined in Unity Ads admin toolsvoid onUnityAdsShowClick(java.lang.String placementId)
placementId
- Placement, as defined in Unity Ads admin toolsvoid onUnityAdsShowComplete(java.lang.String placementId, UnityAds.UnityAdsShowCompletionState state)
placementId
- Placement, as defined in Unity Ads admin toolsstate
- If UnityAdsShowCompletionState.SKIPPED, the show operation completed after the user skipped the video playback
If UnityAdsShowCompletionState.COMPLETED, the show operation completed after the user allowed the video to play to completion before dismissing the ad