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;
↧