-
- All Implemented Interfaces:
public interface IUnityAdsShowListener
-
-
Method Summary
Modifier and Type Method Description abstract voidonUnityAdsShowFailure(String placementId, UnityAds.UnityAdsShowError error, String message)Callback which notifies that UnityAds has failed to show a specific placement with an error message and error category. abstract voidonUnityAdsShowStart(String placementId)Callback which notifies that UnityAds has started to show ad with a specific placement. abstract voidonUnityAdsShowClick(String placementId)Callback which notifies that UnityAds has received a click while showing ad for a specific placement. abstract voidonUnityAdsShowComplete(String placementId, UnityAds.UnityAdsShowCompletionState state)Callback triggered when the show operation completes successfully for a placement. -
-
Method Detail
-
onUnityAdsShowFailure
abstract void onUnityAdsShowFailure(String placementId, UnityAds.UnityAdsShowError error, String message)
Callback which notifies that UnityAds has failed to show a specific placement with an error message and error category.
- Parameters:
placementId- Placement, as defined in Unity Ads admin toolserror- If UnityAdsShowError.NOT_INITIALIZED, the show operation failed due to SDK is not initializedIf UnityAdsShowError.NOT_READY, the show operation failed due to placement not ready to showIf UnityAdsShowError.VIDEO_PLAYER_ERROR, the show operation failed due to an error in playing the videoIf UnityAdsShowError.INVALID_ARGUMENT, the show operation failed due to invalid placement IDIf UnityAdsShowError.NO_CONNECTION, the show operation failed due to no internet connectionIf UnityAdsShowError.ALREADY_SHOWING, the show operation failed due to ad is already being shownIf UnityAdsShowError.message- Human-readable error message
-
onUnityAdsShowStart
abstract void onUnityAdsShowStart(String placementId)
Callback which notifies that UnityAds has started to show ad with a specific placement.
- Parameters:
placementId- Placement, as defined in Unity Ads admin tools
-
onUnityAdsShowClick
abstract void onUnityAdsShowClick(String placementId)
Callback which notifies that UnityAds has received a click while showing ad for a specific placement.
- Parameters:
placementId- Placement, as defined in Unity Ads admin tools
-
onUnityAdsShowComplete
abstract void onUnityAdsShowComplete(String placementId, UnityAds.UnityAdsShowCompletionState state)
Callback triggered when the show operation completes successfully for a placement.
- Parameters:
placementId- Placement, as defined in Unity Ads admin toolsstate- If UnityAdsShowCompletionState.SKIPPED, the show operation completed after the user skipped the video playbackIf UnityAdsShowCompletionState.
-
-
-
-