This morning I updated Unity from 2019.3.6 to 2019.4.6 and I noticed that my ads were no longer playing in my game.
I checked that Ads were active in the editor.
I had using UnityEngine.Advertisements in the script
I also added logging in my script to confirm everything else was working properly:
- Advertisement.isSupported returns true
- Advertisement.isInitialized returns true
- Advertisement.IsReady(RewardedPlacementId) returns true
but the ad never shows. I then noticed that the code in the #IF UNITY_ADS block was greyed out. So I removed the directive and the ads show again.
Any ideas on what causes the compiler to start skipping the UNITY_ADS block even when ads are enabled?