[ad_1]
I’m building an incremental game where the user can see Rewarded Videos Ads with Admob and then receive some coins. Also, I have a Game Laboratory Screen where the user can upgrade some specifics things such as the score they earn per party and the coins they earn per party.
I wonder if I can set in my Laboratory an upgrade that can increase the number of Ads the user can watch and the amount of the coins the user can earn. On Android in Kotlin, I can simply get the rewards by the following method:
fun showRewardedAds(context: Context, onRewardedAdShowed: (Int) -> Unit) {
if (mRewardedAd != null) {
mRewardedAd?.show(context.getActivity()!!) { rewardItem ->
val rewardAmount = rewardItem.amount
var rewardType = rewardItem.type
Log.d("TAG", "User earned the reward.")
onRewardedAdShowed.invoke(rewardAmount)
}
} else {
Log.d("Admob", "showInterstitial: The interstitial ad wasn't ready yet.")
onRewardedAdShowed.invoke(-1)
}
}
and then multiply the rewardAmount by a value stored in DataStore or Database.
I want to know if it doesn’t violate the admob policies.
[ad_2]