How to activate ads in a game?

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.

You appear to have installed the newer Ads Mediation Package but you’re still following the instructions for the legacy Advertisement package.

You need to instead follow IronSource documentation:

Alternatively, install the legacy advertisement package instead and continue following the documentation you are following currently.

Thank you for pointing me in the right direction.
Originally, IronSource had a link that sent me to Unity Dashboard which had a link to what must have been Unity Docs Legacy Ads. The Unity Docs page isn’t dated or titled with LEGACY so I had no idea. Thank you so much.

Its difficult to know where to begin with ads. I will try IronSource again.