Quantcast
Viewing all articles
Browse latest Browse all 1416

Advertisements v4.0.0 Error: 'Advertisement' does not contain a definition for 'IsReady'

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

Viewing all articles
Browse latest Browse all 1416

Trending Articles