Can't call an unskippeable video
Hello, I have an advertisment with the name "rewardedVideo"
For some reason the video shown is still the skippeable one, I believe that I'm calling up the video in the correct method(there isn't too many documentation on the subject)
Could someone give a look to my code and tell me if I missed something important? Thanks!!
if (Advertisement.IsReady("rewardedVideo"))
{
bool resultBool = false;
hasWatchedVideo = false;
Advertisement.Show(null, new ShowOptions
{
resultCallback = result =>
{
switch (result)
{
case (ShowResult.Finished):
resultBool = true;
hasWatchedVideo = true;
DataManager.instance.VideoReward();
break;
case (ShowResult.Failed):
resultBool = false;
hasWatchedVideo = false;
break;
case (ShowResult.Skipped):
//DataManager.instance.VideoReward();
resultBool = false;
hasWatchedVideo = false;
break;
}
}
});
return resultBool;
}
return false;
Comment
Your answer
Follow this Question
Related Questions
reset touch input from C# code? 0 Answers
Can't call an unskippeable video 0 Answers
Play a video with 5.1 embedded surround sound 0 Answers
I want to know if should I make my main menu for my video game first or last? 0 Answers
Need help with issues using the VideoPlayer released in Unity 5.6 1 Answer