- Home /
Question by
MonqoStudios · May 17, 2019 at 04:12 PM ·
c#mobileadscoins
Rewarded ads don't give rewards
Hello,
The rewarded videos (UnityAds) don't give rewards. The videos do show up though.
using UnityEngine.Advertisements;
public void Start()
{
Advertisement.Initialize(GameId);
}
public void ShowRewardedAd()
{
if (Advertisement.IsReady("rewardedVideo"))
{
var options = new ShowOptions { resultCallback = HandleShowResult };
Advertisement.Show("rewardedVideo");
}
}
public static void HandleShowResult(ShowResult result)
{
switch (result)
{
case ShowResult.Finished:
Debug.Log("The ad was successfully shown.");
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;
}
}
Thanks!
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Showing unity ads from other script? 1 Answer
IAds Banner help. If IAds isn't showing show admob. 1 Answer