Class POBRewardedAd.POBRewardedAdListener
-
- All Implemented Interfaces:
@MainThread() public class POBRewardedAd.POBRewardedAdListener
Static member class for interaction with the POBRewardedAd instance. All methods are guaranteed to occur on the main thread.
-
-
Constructor Summary
Constructors Constructor Description POBRewardedAd.POBRewardedAdListener()
-
Method Summary
Modifier and Type Method Description voidonAdReceived(@NonNull() POBRewardedAd rewardedAd)Notifies the listener that an ad has been received successfully. voidonAdFailedToLoad(@NonNull() POBRewardedAd rewardedAd, @NonNull() POBError error)Notifies the listener of an error encountered while loading an ad. voidonAdFailedToShow(@NonNull() POBRewardedAd rewardedAd, @NonNull() POBError error)Notifies the listener of an error encountered while showing an ad. voidonAppLeaving(@NonNull() POBRewardedAd rewardedAd)Notifies the listener that a user interaction will open another app (e.g. voidonAdOpened(@NonNull() POBRewardedAd rewardedAd)Notifies that the OpenWrap view will open an ad on top of the current view. voidonAdClosed(@NonNull() POBRewardedAd rewardedAd)Notifies that the OpenWrap view has closed the ad on top of the current view. voidonAdClicked(@NonNull() POBRewardedAd rewardedAd)Notifies that the rewarded ad has been clicked voidonAdExpired(@NonNull() POBRewardedAd rewardedAd)Notifies that the rewarded ad has been expired. voidonReceiveReward(@NonNull() POBRewardedAd rewardedAd, @NonNull() POBReward reward)Notifies when an Ad has completed the minimum required viewing, and user should be rewarded. voidonAdImpression(@NonNull() POBRewardedAd rewardedAd)Introduced in SDK v3.5.0 Notifies the rewarded ad Impression. -
-
Method Detail
-
onAdReceived
void onAdReceived(@NonNull() POBRewardedAd rewardedAd)
Notifies the listener that an ad has been received successfully.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
onAdFailedToLoad
void onAdFailedToLoad(@NonNull() POBRewardedAd rewardedAd, @NonNull() POBError error)
Notifies the listener of an error encountered while loading an ad.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.error- The error encountered while attempting to load the ad.
-
onAdFailedToShow
void onAdFailedToShow(@NonNull() POBRewardedAd rewardedAd, @NonNull() POBError error)
Notifies the listener of an error encountered while showing an ad.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.error- The error encountered while attempting to show the ad.
-
onAppLeaving
void onAppLeaving(@NonNull() POBRewardedAd rewardedAd)
Notifies the listener that a user interaction will open another app (e.g. Chrome browser), leaving the current app. To handle user clicks that open the landing page URL in the internal browser, use 'onAdClicked()' instead.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
onAdOpened
void onAdOpened(@NonNull() POBRewardedAd rewardedAd)
Notifies that the OpenWrap view will open an ad on top of the current view.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
onAdClosed
void onAdClosed(@NonNull() POBRewardedAd rewardedAd)
Notifies that the OpenWrap view has closed the ad on top of the current view.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
onAdClicked
void onAdClicked(@NonNull() POBRewardedAd rewardedAd)
Notifies that the rewarded ad has been clicked
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
onAdExpired
void onAdExpired(@NonNull() POBRewardedAd rewardedAd)
Notifies that the rewarded ad has been expired. After this callback, 'POBRewardedAd' instances marked as invalid and may not be presented and no impression counting is considered. After Expiration callback, POBRewardedAd.isReady() returns 'false'.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
onReceiveReward
void onReceiveReward(@NonNull() POBRewardedAd rewardedAd, @NonNull() POBReward reward)
Notifies when an Ad has completed the minimum required viewing, and user should be rewarded. It is called when the Rewarded Ad playback is completed for "OW creative" and based on the ad server SDK's behaviour when they renders it.
Note: For invalid/unspecified reward values, the reward object will have currencyType="" and amount=0
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.reward- Value of reward as an object of POBReward
-
onAdImpression
void onAdImpression(@NonNull() POBRewardedAd rewardedAd)
Introduced in SDK v3.5.0 Notifies the rewarded ad Impression.
- Parameters:
rewardedAd- POBRewardedAd instance invoking this method.
-
-
-
-