Package org.prebid.mobile.eventhandlers
Class GamRewardedEventHandler
java.lang.Object
org.prebid.mobile.eventhandlers.GamRewardedEventHandler
Rewarded event handler for communication between Prebid rendering API and the GAM SDK.
-
Constructor Summary
ConstructorsConstructorDescriptionGamRewardedEventHandler
(android.app.Activity activity, String gamAdUnitId) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Reward
void
void
requestAdWithBid
(Bid bid) void
setRewardedEventListener
(RewardedVideoEventListener listener) void
show()
void
-
Constructor Details
-
GamRewardedEventHandler
Default constructor.- Parameters:
activity
- Android activitygamAdUnitId
- the GAM ad unit id for the rewarded ad unit
-
-
Method Details
-
onEvent
-
setRewardedEventListener
public void setRewardedEventListener(RewardedVideoEventListener listener) -
requestAdWithBid
public void requestAdWithBid(Bid bid) -
show
public void show() -
trackImpression
public void trackImpression() -
destroy
public void destroy() -
getReward
public Reward getReward()
-