Package com.yandex.mobile.ads.rewarded
Interface RewardedAdEventListener
-
- All Superinterfaces:
com.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
,com.yandex.mobile.ads.fullscreen.FullscreenLoadListener
@MainThread public interface RewardedAdEventListener extends com.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
A listener for receiving notifications during the lifecycle of a rewarded ad.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAdClicked()
Called when user clicked on the ad.void
onAdDismissed()
Called when a rewarded ad has been dismissed.void
onAdFailedToLoad(AdRequestError error)
Called when a rewarded ad request failed.void
onAdLoaded()
Called when a rewarded ad has been loaded.void
onAdShown()
Called when a rewarded ad has been shown.void
onImpression(com.yandex.mobile.ads.common.ImpressionData impressionData)
Called when an impression was observedvoid
onLeftApplication()
Called when user is about to leave application (e.g., to go to the browser), as a result of clicking on the ad.void
onReturnedToApplication()
Called when user returned to application after click.void
onRewarded(Reward reward)
Called when the user can be rewarded.
-
-
-
Method Detail
-
onAdLoaded
void onAdLoaded()
Called when a rewarded ad has been loaded.- Specified by:
onAdLoaded
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
- Specified by:
onAdLoaded
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenLoadListener
-
onAdFailedToLoad
void onAdFailedToLoad(@NonNull AdRequestError error)
Called when a rewarded ad request failed.- Specified by:
onAdFailedToLoad
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
- Parameters:
error
- see errors hereAdRequestError
-
onAdShown
void onAdShown()
Called when a rewarded ad has been shown.- Specified by:
onAdShown
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
-
onAdDismissed
void onAdDismissed()
Called when a rewarded ad has been dismissed.- Specified by:
onAdDismissed
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
-
onRewarded
void onRewarded(@NonNull Reward reward)
Called when the user can be rewarded.- Parameters:
reward
- AReward
contains amount and type.
-
onAdClicked
void onAdClicked()
Called when user clicked on the ad.- Specified by:
onAdClicked
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
-
onLeftApplication
void onLeftApplication()
Called when user is about to leave application (e.g., to go to the browser), as a result of clicking on the ad.- Specified by:
onLeftApplication
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
-
onReturnedToApplication
void onReturnedToApplication()
Called when user returned to application after click.- Specified by:
onReturnedToApplication
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
-
onImpression
void onImpression(@Nullable com.yandex.mobile.ads.common.ImpressionData impressionData)
Called when an impression was observed- Specified by:
onImpression
in interfacecom.yandex.mobile.ads.fullscreen.FullscreenAdEventListener
- Parameters:
impressionData
- - impression level revenue data
-
-