I updated my unity project from 2017.1.1 too 2017.2 and now my script files cant find UnityEngine.Advertisment
Are you using Ads from the services window?
Is this thread helpful: Issues with Ads from Services window? Missing assemblies? - look here
Have you tried the Asset Store package yet?