I have been working on a project and decided to add ads. I was following unity’s tutorial. I started in InitializingTheUnitySDK; once I ran the project I get this error:
" Unity Ads Initialization Failed: INTERNAL_ERROR - Invalid configuration request for gameId: XXXXXXX
UnityEngine.Debug:Log (object)
AdsInitializer:OnInitializationFailed (UnityEngine.Advertisements.UnityAdsInitializationError,string) (at Assets/scripts/ADS/AdsInitializer.cs:31)
UnityEngine.Advertisements.Utilities.CoroutineExecutor:Update () (at Library/PackageCache/com.unity.ads@4.4.1/Runtime/Advertisement/Utilities/CoroutineExecutor.cs:17)"
Hello,
Please DM me or reach out to our support form with the Game ID you’re using and your code snippet so that we can investigate further
Ky6eH
May 21, 2023, 5:23pm
3
I have a very familiar error. Can you help me?
Ky6eH
May 21, 2023, 5:23pm
4
Invalid configuration request for gameId: 52xxx06
0x00007ff68d8b79cd (Unity) StackWalker::GetCurrentCallstack
0x00007ff68d8bc979 (Unity) StackWalker::ShowCallstack
0x00007ff68e89ed31 (Unity) GetStacktrace
0x00007ff68ef606d2 (Unity) DebugStringToFile
0x00007ff68c7b6aa6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x00000232b78a07d3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x00000232b78a070b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
0x00000232b78a0490 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000232b78cdcf5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x00000232b78cdc73 (Mono JIT Code) UnityEngine.Advertisements.Platform.Editor.EditorPlatform/<>c__DisplayClass12_0:b__3 () (at ./Library/PackageCache/com.unity.ads@4.4.2/Runtime/Advertisement/Platform/Editor/EditorPlatform.cs:112)
0x00000232b78cdb74 (Mono JIT Code) UnityEngine.Advertisements.Utilities.CoroutineExecutor:Update () (at ./Library/PackageCache/com.unity.ads@4.4.2/Runtime/Advertisement/Utilities/CoroutineExecutor.cs:15)
0x00000233555ee3d8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffd5ddee434 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffd5dd2eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffd5dd2ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff68d7df054 (Unity) scripting_method_invoke
0x00007ff68d7bf864 (Unity) ScriptingInvocation::Invoke
0x00007ff68d7a71a4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff68d7a72ca (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff68d23d94b (Unity) BaseBehaviourManager::CommonUpdate
0x00007ff68d24519a (Unity) BehaviourManager::Update
0x00007ff68d4749dd (Unity) InitPlayerLoopCallbacks'::
2’::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff68d45398a (Unity) ExecutePlayerLoop
0x00007ff68d453b16 (Unity) ExecutePlayerLoop
0x00007ff68d45a365 (Unity) PlayerLoop
0x00007ff68e40d00f (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff68e404813 (Unity) PlayerLoopController::EnterPlayMode
0x00007ff68e414b66 (Unity) PlayerLoopController::SetIsPlaying
0x00007ff68e418350 (Unity) Application::TickTimer
0x00007ff68e8a562a (Unity) MainMessageLoop
0x00007ff68e8aa3d0 (Unity) WinMain
0x00007ff68fc8e95e (Unity) __scrt_common_main_seh
0x00007ffe11c826ad (KERNEL32) BaseThreadInitThunk
0x00007ffe1316a9f8 (ntdll) RtlUserThreadStart
Could you please tell me what Game ID you’re using so that I can investigate further?
SOLVED:
If anyone is having this “Invalid configuration request for gameId:” error. Double check that Android ID and IOS ID are filled in under Project Settings > Services > Ads (You get these IDs from the Unity Dashboard > Monetization >Ad Units) .
Then after that double check your Ads Initializer Script. If the Android and IOS game ID fields are public or serialized fields, then check the game component that your Ads Initializer Script is attached too. If the fields are empty fill them in with the IDs from the Unity Dashboard.
If that doesn’t work, switch the platform that you are building to something else for example Windows, then switch the build platform back to Android or IOS.
Hope this helps.
1 Like
lanceroy:
SOLVED:
If anyone is having this “Invalid configuration request for gameId:” error. Double check that Android ID and IOS ID are filled in under Project Settings > Services > Ads (You get these IDs from the Unity Dashboard > Monetization >Ad Units) .
Then after that double check your Ads Initializer Script. If the Android and IOS game ID fields are public or serialized fields, then check the game component that your Ads Initializer Script is attached too. If the fields are empty fill them in with the IDs from the Unity Dashboard.
If that doesn’t work, switch the platform that you are building to something else for example Windows, then switch the build platform back to Android or IOS.
Hope this helps.
I’m having the same problem, but in the project setting under services Ads wont apear. Any solution for this?
zox767
July 10, 2024, 12:26am
8
Same im having the same exact problem right now, there is no Ads under services in project settings
zox767
July 10, 2024, 2:35am
9
Try
File---->Build Settings---->Player Settings---->Player---->Identification---->Target API Level switch from 34 to 35 and restart the project. In your case maybe the Target API Level will be different. Put it on highest
This resolved my issue with ads, now they work just fine