NullReferenceException upon enabling Unity Services and ads

I recently enabled the unity services as well as ads. I have not added any code as of yet. However upon pressing the play button I am greeted with

NullReferenceException: Object reference not set to an instance of an object
System.Net.AutoWebProxyScriptEngine.InitializeRegistryGlobalProxy () (at :0)
System.Net.AutoWebProxyScriptEngine.GetWebProxyData () (at :0)
System.Net.WebProxy.UnsafeUpdateFromRegistry () (at :0)
System.Net.WebProxy…ctor (System.Boolean enableAutoproxy) (at :0)
System.Net.WebProxy.CreateDefaultProxy () (at :0)
System.Net.Configuration.DefaultProxySectionInternal.GetSystemWebProxy () (at :0)
System.Net.Configuration.DefaultProxySectionInternal.GetDefaultProxy_UsingOldMonoCode () (at :0)
System.Net.Configuration.DefaultProxySectionInternal.GetSection () (at :0)
System.Net.WebRequest.get_InternalDefaultWebProxy () (at :0)
System.Net.HttpWebRequest…ctor (System.Uri uri) (at :0)
(wrapper remoting-invoke-with-check) System.Net.HttpWebRequest…ctor(System.Uri)
System.Net.HttpRequestCreator.Create (System.Uri uri) (at :0)
System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) (at :0)
System.Net.WebRequest.Create (System.String requestUriString) (at :0)
UnityEngine.Advertisements.Editor.Platform.Initialize (System.String gameId, System.Boolean testMode) (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Editor/Platform.cs:89)
UnityEngine.Advertisements.Advertisement.Initialize (System.String gameId, System.Boolean testMode) (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Advertisement.cs:229)
UnityEngine.Advertisements.Advertisement.Load () (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Advertisement.cs:73)
UnityEngine.Advertisements.Advertisement.LoadEditor (System.String extensionPath, System.Boolean supportedPlatform) (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Advertisement.cs:65)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[ ] parameters) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
UnityEditor.Advertisements.UnityAdsEditor.EditorOnLoad () (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAdsEditor/UnityAdsEditor.cs:29)

I have had no luck finding any answers to what this could be any help would be greatly appreciated.

Thank you in advance.

@kalecjason

Which version of Unity were you using? If it is after 2018.1, can you check which version of Unity Ads you have installed in Package Manager?

I am using Unity 2019.1.8f1 and i am using Ads version 2.0.8

I’ve not seen these error before, but it looks like there is some issue when the Ads SDK tries to initialize in the Editor.

I would recommend disabling Ads from the Services Window and downloading the Asset Store package: