I would like to include ads in my game.
I have tried to follow Unity’s docs for integrating ads found here:
https://docs.unity.com/ads/en-us/manual/UnityDeveloperIntegrations
Ad Mediation with Level play is installed from Unity’s Package Manager.
My game has an ad manager to initialize the ads, and an ad reward button with script to load the ads.
Unity docs found here (initialize).
And here (reward button)
An example error:
Error CS0246 The type or namespace name ‘IUnityAdsInitializationListener’ could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharp D:\Documents\Unity Storage\FlowerMustGrow 23071101\Assets\Scripts\AdManager.cs 6 Active
Unity support has troubleshooting here:
https://support.unity.com/hc/en-us/articles/115000251286-Why-do-I-get-a-Advertisements-does-not-exist-in-the-namespace-UnityEngine-error-#:~:text=Unity Ads (Publishers)-,Why do I get a “Advertisements” does not exist in,namespace “UnityEngine” error"?&text=This error is typically caused,package into your project yet.
From the website:
"This error is typically caused by one of two issues:
- You are building for a platform that is not supported by Unity Ads
- You have not imported the Unity Ads package into your project yet.
To resolve the problem:
- Ensure that you have installed Unity Ads by using the Package Manager
- Ensure that you have selected iOS or Android as a build target (File > Build Settings).
- If you are building your Project for an unsupported platform, you can add a UNITY_ADS conditional define that allows you to build with Unity Ads without affecting other platforms."
The game is being built in Unity for the Google play store so the platform should not be an issue. So is the issue the Ads package? Is Ad Mediation with Level Play correct or not?
I think the answer is a missing script. Any reference to ads or advertisement is not found. Where can I find an advertising script or where can I learn about it? What and where is the missing information?
Two screenshots are attached showing some of the errors and the Unity Package manager and build / project settings.

