Search Unity

Question Invalid configuration request for gameId:

Discussion in 'Unity Ads & User Acquisition' started by suhailunity1234, Jan 26, 2023.

  1. suhailunity1234

    suhailunity1234

    Joined:
    Jul 5, 2021
    Posts:
    1
    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)"
     
  2. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    153
    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 :)
     
  3. Ky6eH

    Ky6eH

    Joined:
    Jun 22, 2017
    Posts:
    7

    I have a very familiar error. Can you help me?
     
  4. Ky6eH

    Ky6eH

    Joined:
    Jun 22, 2017
    Posts:
    7


    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:<Initialize>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<BehaviourManager>
    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
     
  5. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    153
    Could you please tell me what Game ID you're using so that I can investigate further?
     
  6. lanceroy

    lanceroy

    Joined:
    Nov 2, 2021
    Posts:
    8
    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.
     
    Yasuyuki likes this.