The type or namespace name 'IUnityAdsListener' could not be found (are you missing a using directive

Help, I switched from an old version of unity to another, and unity gives an error. How to fix? I have the Advertisement package installed
Error:
Assets\Scripts\Game\RewardedAd s.cs(7,43): error CS0246: The type or namespace name ‘IUnityAdsListener’ could not be found (are you missing a using directive or an assembly reference?)

There were many (breaking) changes made in 4.0.0

This explains more…

https://docs.unity.com/ads/DeprecatedAPIClasses.html

Thank you!

1 Like