public final class MoPubReward
Represents a reward to the user for completing a rewarded task like watching a video.
public int /getAmount() /+3.5.0
Description: Returns the amount associated with the current reward.
public String /getLabel() /+3.5.0
Description: Returns the label associated with the current reward.
public static MoPubReward /success(String rewardLabel, int amount) /+3.5.0
Description: Create a new
MoPubRewardwith the supplied label and amount. Typically used by mediation adapters to forward reward data defined on the mediation network’s dashboard to the MoPub SDK.
rewardLabel: The label for the reward to be created.
amount: The amount for the reward to be created.
How can we make this article better for you?
Last updated August 28, 2021
TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.
© 2021 MoPub (a division of Twitter, Inc.)