Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Bor

Junior Member
Registered:
Posts: 3
Reply with quote  #1 
Hello everybody,

I´m having a problem with Chartboost rewarded videos.I have a button and on click after watching a video,I reward the user with an extra life. Now the problem is, when I start the game and try to play the ad, everything works fine but then no matter how many times I restart the scene, I can still play the video but I would not receive any rewards.


public void ShowChartboostRewardedVideo()
    {
        if (Chartboost.hasRewardedVideo(CBLocation.Default))
        {
            Chartboost.showRewardedVideo(CBLocation.Default);
        }
        else { Chartboost.cacheRewardedVideo(CBLocation.Default); }
    }
void OnEnable()
    {
        // Listen related event
        Chartboost.didCompleteRewardedVideo += didCompleteRewardedVideo;
    }
    void OnDisable()
    {
        // Remove handler
        Chartboost.didCompleteRewardedVideo -= didCompleteRewardedVideo;
    }
    void didCompleteRewardedVideo(CBLocation location, int reward)
    {
        afterWatchingPlayOnAd();
    }


Thanks for all the answers.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.