Unity ads suddenly stopped working for no apparent reason.

I recently integrated unity ads into my game and I had some issues. However, back then they actually worked. today when I started unity for no reason I got a error telling me that I didn’t have a unity ID set up. But I knew I did so I said I already have one. I selected my game and clicked continue. Then I found out ads was broken. I’ve tried turning unity ads on and off, restarting unity, and copying my project over to another folder. same error every time.

Assets/ContinueAdScript.cs(4,19): error CS0234: The type or namespace name Advertisements' does not exist in the namespace UnityEngine’. Are you missing an assembly reference?

The thing is this used to work just find (In the editor at least) Now It doesn’t work at all. For some reason all references to UnityEngine.Advertisements stopped working and I can’t for the life of me figure out why. any help is a appreciated as unity ads is getting very frustrating to work with at this point.

@Droid_22 I have had the exact same issue before.

Case 1: You need to go to your build settings and either switch your platform to Android or IOS. Standalone does not work with Unity Ads even in the editor.

Case 2: You need to update your Unity Ads.

Case 3: You need to uninstall Unity Ads from your project and reinstall it. (Make sure to move any custom scripts to a different folder so you don’t lose them as they will work when a working version of Unity Ads is reinstalled).

These are the three things that I have had happen to me and fixed it with.