public class MoPubRewardedEventHandler
extends com.pubmatic.sdk.rewardedad.POBRewardedAdEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
MoPubRewardedEventHandler.MoPubConfigListener
Class to get the MoPub SDK specific configuration (like request parameter details) for
Rewarded Ad.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
com.pubmatic.sdk.openwrap.core.POBRewardedAdInteractionListener |
getAdInteractionListener() |
java.util.Map<java.lang.String,java.lang.String> |
getAdServerConfig()
Returns MoPub specific workflow configurations to be used by OpenWrapSDK
|
java.util.List<com.pubmatic.sdk.openwrap.core.POBReward> |
getAdServerRewards() |
static MoPubRewardedEventHandler |
getHandler(java.lang.String adUnitId)
Gets a single handler instance stored against adUnitId from handler store.
|
com.pubmatic.sdk.openwrap.core.POBReward |
getSelectedReward() |
void |
onRewardedVideoClicked() |
void |
onRewardedVideoClosed() |
void |
onRewardedVideoCompleted(java.util.Set<java.lang.String> adUnitIds,
com.mopub.common.MoPubReward reward) |
void |
onRewardedVideoLoadFailure(com.mopub.mobileads.MoPubErrorCode errorCode) |
void |
onRewardedVideoLoadSuccess() |
void |
onRewardedVideoPlaybackError(com.mopub.mobileads.MoPubErrorCode errorCode) |
void |
onRewardedVideoStarted() |
void |
requestAd(com.pubmatic.sdk.openwrap.core.POBBid bid) |
void |
setConfigListener(MoPubRewardedEventHandler.MoPubConfigListener listener)
Sets instance of class as a listener to get MoPub SDK specific configuration (like request parameter details)
|
void |
setCustomData(java.util.Map<java.lang.String,java.lang.Object> customData) |
void |
setEventListener(com.pubmatic.sdk.rewardedad.POBRewardedAdEventListener eventListener) |
void |
show() |
@NonNull public static MoPubRewardedEventHandler getHandler(@NonNull java.lang.String adUnitId)
adUnitId - MoPub rewarded ad unit idpublic void setConfigListener(@NonNull
MoPubRewardedEventHandler.MoPubConfigListener listener)
listener - Instance of MoPubConfigListener@Nullable public java.util.Map<java.lang.String,java.lang.String> getAdServerConfig()
getAdServerConfig in class com.pubmatic.sdk.rewardedad.POBRewardedAdEvent@Nullable public com.pubmatic.sdk.openwrap.core.POBReward getSelectedReward()
getSelectedReward in class com.pubmatic.sdk.rewardedad.POBRewardedAdEventpublic void requestAd(@Nullable
com.pubmatic.sdk.openwrap.core.POBBid bid)
requestAd in class com.pubmatic.sdk.openwrap.core.POBBaseEventpublic void destroy()
destroy in class com.pubmatic.sdk.openwrap.core.POBBaseEventpublic void setEventListener(@NonNull
com.pubmatic.sdk.rewardedad.POBRewardedAdEventListener eventListener)
setEventListener in class com.pubmatic.sdk.rewardedad.POBRewardedAdEventpublic void setCustomData(@Nullable
java.util.Map<java.lang.String,java.lang.Object> customData)
setCustomData in class com.pubmatic.sdk.rewardedad.POBRewardedAdEventpublic void show()
show in class com.pubmatic.sdk.rewardedad.POBRewardedAdEvent@Nullable public com.pubmatic.sdk.openwrap.core.POBRewardedAdInteractionListener getAdInteractionListener()
getAdInteractionListener in class com.pubmatic.sdk.rewardedad.POBRewardedAdEvent@Nullable public java.util.List<com.pubmatic.sdk.openwrap.core.POBReward> getAdServerRewards()
getAdServerRewards in class com.pubmatic.sdk.rewardedad.POBRewardedAdEventpublic void onRewardedVideoLoadSuccess()
public void onRewardedVideoLoadFailure(@NonNull
com.mopub.mobileads.MoPubErrorCode errorCode)
public void onRewardedVideoStarted()
public void onRewardedVideoClicked()
public void onRewardedVideoPlaybackError(@NonNull
com.mopub.mobileads.MoPubErrorCode errorCode)
public void onRewardedVideoClosed()
public void onRewardedVideoCompleted(@NonNull
java.util.Set<java.lang.String> adUnitIds,
@NonNull
com.mopub.common.MoPubReward reward)