Iam using the latest unity version is : 2020.1.0 and Unity Monetization 3.4.6 but when i try to use ads in the game ( android platform, both jdk and sdk are use from unity recomend) i get this kind of error. I even try to use the package manager 3.4.7 but it is not work nether .
private void Start()
{
Advertisement.Initialize(gameId);
}
NullReferenceException: Object reference not set to an instance of an object
System.Net.AutoWebProxyScriptEngine.InitializeRegistryGlobalProxy () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.AutoWebProxyScriptEngine.GetWebProxyData () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.WebProxy.UnsafeUpdateFromRegistry () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.WebProxy…ctor (System.Boolean enableAutoproxy) (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.WebProxy.CreateDefaultProxy () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.Configuration.DefaultProxySectionInternal.GetSystemWebProxy () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.Configuration.DefaultProxySectionInternal.GetDefaultProxy_UsingOldMonoCode () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.Configuration.DefaultProxySectionInternal.GetSection () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.WebRequest.get_InternalDefaultWebProxy () (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.HttpWebRequest…ctor (System.Uri uri) (at <525dc68fbe6640f483d9939a51075a29>:0)
(wrapper remoting-invoke-with-check) System.Net.HttpWebRequest…ctor(System.Uri)
System.Net.HttpRequestCreator.Create (System.Uri uri) (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) (at <525dc68fbe6640f483d9939a51075a29>:0)
System.Net.WebRequest.Create (System.String requestUriString) (at <525dc68fbe6640f483d9939a51075a29>:0)
UnityEngine.Advertisements.Platform.Editor.EditorPlatform.Initialize (System.String gameId, System.Boolean testMode, System.Boolean enablePerPlacementLoad) (at Library/PackageCache/com.unity.ads@3.4.5/Runtime/Advertisement/Platform/Editor/EditorPlatform.cs:85)
UnityEngine.Advertisements.Platform.Platform.Initialize (System.String gameId, System.Boolean testMode, System.Boolean enablePerPlacementLoad) (at Library/PackageCache/com.unity.ads@3.4.5/Runtime/Advertisement/Platform/Platform.cs:64)
UnityEngine.Advertisements.Advertisement.Initialize (System.String gameId) (at Library/PackageCache/com.unity.ads@3.4.5/Runtime/Advertisement/Advertisement.cs:57)
AdManager.Start () (at Assets/Scripts/Shop/AdManager.cs:24)