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

Unity ads not showing rewarded add.

$
0
0
Hi, I am using unity ads from service window, normal add ir working fine but when it comes to rewarded add it is not popping up. Debug.Log(Advertisement.IsReady("rewardedVideoZone")); this line always return a false value. This is my configuration in service window. ![alt text][1] [1]: /storage/temp/67619-capture.png And this is the code for showing rewarded add. public void ShowRewardedAd() { Debug.Log(Advertisement.IsReady("rewardedVideoZone")); if (Advertisement.IsReady("rewardedVideoZone")) { var options = new ShowOptions { resultCallback = HandleShowResult }; Advertisement.Show("rewardedVideoZone", options); } } private void HandleShowResult(ShowResult result) { switch (result) { case ShowResult.Finished: Debug.Log("The ad was successfully shown."); // // YOUR CODE TO REWARD THE GAMER // Give coins etc. break; case ShowResult.Skipped: Debug.Log("The ad was skipped before reaching the end."); break; case ShowResult.Failed: Debug.LogError("The ad failed to be shown."); break; } } Any help will be highly appreciated.

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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