UnityEngine.Advertisements.Editor expecting mscorlib version 4.0.0.0 ??

I have a project where we imported the Unity Ads library directly.

I am getting this error in VS 2017:

The primary reference “UnityEngine.Advertisements.Editor” could not be resolved because it has an indirect dependency on the .NET Framework assembly “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” which has a higher version “4.0.0.0” than the version “2.0.0.0” in the current target framework.

Any idea how to fix this?

I re-imported the Unity Ads module from the Asset Store. When it asked me to auto-update the APIs I clicked on “No Thanks” and it fixed it. I’m not sure why Unity wanted to do that.