Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

ChartBoost how to add video rewards?

$
0
0
Im having major trouble with this and i cant seem to figure it out, i have test ads showing perfectly but the reward isnt going through! void OnEnable() { Chartboost.didCompleteRewardedVideo += didCompleteRewardedVideo; } public void FREECOIN() { Chartboost.cacheRewardedVideo(CBLocation.MainMenu); if (Chartboost.hasRewardedVideo(CBLocation.MainMenu)) { Chartboost.showRewardedVideo(CBLocation.MainMenu); } else { // We don't have a cached video right now, but try to get one for next time Chartboost.cacheRewardedVideo(CBLocation.MainMenu); } } public void didCompleteRewardedVideo(CBLocation location, int reward) { float CoinsFloat = PlayerPrefs.GetFloat("Coins"); PlayerPrefs.SetFloat("Coins", CoinsFloat + 5000); } void OnDisable() { Chartboost.didCompleteRewardedVideo -= didCompleteRewardedVideo; } "FREECOIN" gets called whenever i press a button. ALSO time scale is set to 0! but ive tested with 0 and 1 and same result!

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>