A listener for receiving notifications during the lifecycle of a rewarded ad.
| int | ERROR_CODE_AD_REUSED | The rewarded ad has already been shown. |
| int | ERROR_CODE_APP_NOT_FOREGROUND | The rewarded ad can not be shown when app is not in foreground. |
| int | ERROR_CODE_INTERNAL_ERROR | Something happened internally. |
| int | ERROR_CODE_NOT_READY | The rewarded ad is not ready. |
| void |
onRewardedAdClosed()
Called when a rewarded ad is closed.
|
| void |
onRewardedAdFailedToShow(int errorCode)
Called when a rewarded ad failed to show.
|
| void |
onRewardedAdOpened()
Called when a rewarded ad opens a overlay that covers the screen.
|
| abstract void |
The rewarded ad has already been shown.
The rewarded ad can not be shown when app is not in foreground.
Something happened internally.
The rewarded ad is not ready.
Called when a rewarded ad is closed.
Called when a rewarded ad failed to show. The error code is usually
ERROR_CODE_INTERNAL_ERROR,
ERROR_CODE_AD_REUSED, {ERROR_CODE_NOT_READY.
Called when a rewarded ad opens a overlay that covers the screen.
Called when a rewarded ad triggers a reward. The app is responsible for crediting the user with the reward.
| reward | the reward to grant the user. This value will never be null. If the ad does not
specify a reward amount and no override is provided for this ad unit on the Admob
UI, the default reward (DEFAULT_REWARD)
will have an amount of 1 and a type of "". |
|---|