简体   繁体   中英

Rewarded video ads Chartboost - Unity 5

Am trying to integrate video rewarded ads in my game how can I show video ads and handle if the ad is successfully shown to reward the player ? I couldn't find any thing about that on Chartboost docs it only says

Chartboost.showRewardedVideo(CBLocation.MainMenu);

But how to handle success or failure from ad and where to add the code to reward the player if the ad is successfully shown ?

Add in OnEnable() function this code

`Chartboost.didCompleteRewardedVideo += didCompleteRewar;`

After this void didCompleteRewardedVideo(CBLocation location, int reward) will be called if Reward video is completed. For more information you can check this page: https://answers.chartboost.com/en-us/child_article/unity-3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM