Hello,
I updated Advertisements to v4.0.0 through the Package Manager this morning, and I started receiving these two errors:
*'Advertisement' does not contain a definition for 'IsReady'*
*'ShowOptions' does not contain a definition for 'resultCallback'*
This is the script. I wrote it in 2020 and it has worked ever since (and I haven't made any other changes to it)
public void ShowRewardAd()
{
if (Advertisement.IsReady("rewardedVideo"))
{
var options = new ShowOptions { resultCallback = HandleRewardResult };
Advertisement.Show("rewardedVideo", options);
}
}
Should I just revert back to the older Advertisements version?
Thank you,
TG
↧