When I try to Load an Ad it shows this an error that says cannot generate sprite texture.

Well I get the following error when I load the Scene:
ArgumentException: Could not create sprite (0, 0, 1600, 1200) from a 256x192 texture.
UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude, UnityEngine.SpriteMeshType meshType, UnityEngine.Vector4 border, System.Boolean generateFallbackPhysicsShape) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude, UnityEngine.SpriteMeshType meshType, UnityEngine.Vector4 border) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude, UnityEngine.SpriteMeshType meshType) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Advertisements.Placeholder.CreateImage (UnityEngine.GameObject canvasGameObject, UnityEngine.Texture2D texture, System.Int32 width, System.Int32 height) (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Platform/Editor/Placeholder.cs:172)
UnityEngine.Advertisements.Placeholder.CreatePlaceholder (UnityEngine.GameObject canvasGameObject, UnityEngine.Texture2D texture, System.Int32 textureWidth, System.Int32 textureHeight) (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Platform/Editor/Placeholder.cs:120)
UnityEngine.Advertisements.Placeholder.Awake () (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Platform/Editor/Placeholder.cs:37)
UnityEngine.Advertisements.Advertisement:Initialize(String, Boolean)
Monetization:Start() (at Assets/Code/Monetization.cs:13)

And when I try to Show Ads it says:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Advertisements.Placeholder.ShowSkipButton (UnityEngine.GameObject canvasGameObject) (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Platform/Editor/Placeholder.cs:184)
UnityEngine.Advertisements.Placeholder.Show (System.String placementId, System.Boolean allowSkip) (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Platform/Editor/Placeholder.cs:75)
UnityEngine.Advertisements.Platform.Editor.EditorPlatform+<>c__DisplayClass15_0.b__0 () (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Platform/Editor/EditorPlatform.cs:188)
UnityEngine.Advertisements.Utilities.CoroutineExecutor.Update () (at Library/PackageCache/com.unity.ads@3.7.5/Runtime/Advertisement/Utilities/CoroutineExecutor.cs:17)

Same here, bumping the thread

Can you try upgrade the Unity Ads SDK to the latest version? Google Play Store will require version 4.0.1 or above for new submission

In Build Settings set Max Texture Size - No override and click Apply button

1 Like

Go to Assets/Editor/Resources there should be demo images for unity ads Like (portrad ad, landscape ad) see if these are missing … If not missing then make sure there compression format is set to default . that solved my problem

i think i love you. THANKS!