Quantcast
Channel: Unity Ads & User Acquisition
Viewing all articles
Browse latest Browse all 6164

Unity reward ad [detect when they finished and player clicked close button]

$
0
0
Hi, how can I check to see if the the reward ad has finished and player clicked close button ? i have this code but I dont think it works in the editor so I want to know for sure if it will work when I will implement this on app store .. :

Code (CSharp):
  1. public void ShowRewardedAd()
  2.     {
  3.         if (Advertisement.IsReady("rewardedVideo"))
  4.         {
  5.             var options = new ShowOptions { resultCallback = HandleShowResult };
  6.            
  7.             if (i <= 1)
  8.             {...
Unity reward ad [detect when they finished and player clicked close button]

Viewing all articles
Browse latest Browse all 6164


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