public interface AppLovinAdRewardListener
| Modifier and Type | Method and Description |
|---|---|
void |
userDeclinedToViewAd(AppLovinAd ad)
This method will be invoked if the user selected "no" when asked if they want to view an ad.
|
void |
userOverQuota(AppLovinAd ad,
java.util.Map<java.lang.String,java.lang.String> response)
This method will be invoked if the user has already received the maximum allocated rewards for the day.
|
void |
userRewardRejected(AppLovinAd ad,
java.util.Map<java.lang.String,java.lang.String> response)
This method will be invoked if the user's reward was detected as fraudulent and not awarded.
|
void |
userRewardVerified(AppLovinAd ad,
java.util.Map<java.lang.String,java.lang.String> response)
If you are using reward validation for incentivized videos, this method will be invoked if we contacted AppLovin successfully.
|
void |
validationRequestFailed(AppLovinAd ad,
int errorCode)
This method will be invoked if we were unable to contact AppLovin, therefore no ping will be heading to your server.
|
void userRewardVerified(AppLovinAd ad, java.util.Map<java.lang.String,java.lang.String> response)
ad - An ad for which a validation request was submitted.response - Any response extras sent down by AppLovin. Typically, this includes the keys "currency" and "amount", which point to Strings containing the name and amount of the virtual currency to be awarded.void userOverQuota(AppLovinAd ad, java.util.Map<java.lang.String,java.lang.String> response)
ad - An ad for which a validation request was submitted.response - Any response extras sent down by AppLovin.void userRewardRejected(AppLovinAd ad, java.util.Map<java.lang.String,java.lang.String> response)
ad - An ad for which a validation request was submitted.response - Any response extras sent down by AppLovin.void validationRequestFailed(AppLovinAd ad, int errorCode)
ad - An ad for which a validation request was submitted.errorCode - An error code indicating the cause of failure. Common error codes are defined in AppLovinErrorCodes.void userDeclinedToViewAd(AppLovinAd ad)
If you've disabled the pre-video prompt in the "Manage Apps" UI on our website, then this method won't be called.