Ads Initialization Failed: INTERNAL_ERROR - Invalid configuration request for gameId:

Hi, I am trying to use Unity Ads, but i get this error

Invalid configuration request for gameId:
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

The remote server returned an error: (404) Not Found.
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

Unity Ads Initialization Failed: INTERNAL_ERROR - Invalid configuration request for gameId:
UnityEngine.Debug:Log (object)

Here is a script ( I just copy and paste the script from guide page… but why i get an error? )

using UnityEngine;
using UnityEngine.Advertisements;

public class sdk : MonoBehaviour, IUnityAdsInitializationListener
{
    [SerializeField] string _androidGameId;
    [SerializeField] string _iOsGameId;
    [SerializeField] bool _testMode = true;
    [SerializeField] bool _enablePerPlacementMode = true;
    private string _gameId;

    void Awake()
    {
        InitializeAds();
    }

    public void InitializeAds()
    {
        _gameId = (Application.platform == RuntimePlatform.IPhonePlayer)
            ? _iOsGameId
            : _androidGameId;
        Advertisement.Initialize(_gameId, _testMode, _enablePerPlacementMode, this);
    }

    public void OnInitializationComplete()
    {
        Debug.Log("Unity Ads initialization complete.");
    }

    public void OnInitializationFailed(UnityAdsInitializationError error, string message)
    {
        Debug.Log($"Unity Ads Initialization Failed: {error.ToString()} - {message}");
    }
}

@sbankhead

Hi AzeFrost,

May I know what your gameId is? Before you test your codes, have you fill in your gameId into the Inspector panel?

Problem solved. So, i was not filled ios gamids on inspector. I filled it now even i am not using it. Problem solved

Also i have a question about the payment . So, may i use my card payment detaisl to get payout on my father’s account too? So My father and me will use the same card details

Hi AzeFrost,

I am glad that your problem has been solved. About the bank detail, I think it is okay to use that.

Hi again. I have problem about adding app-ads.txt file. So, the problem is i can not add website url to the unity dashboard . It only allow me to add my website url without “/app-ads.txt”, for example if i add www.domain.com/app-ads.txt it tells “This is not a base URL” . It only allow me to add like www.domainname.com without /app-ads.txt word. But this time another error appears. “You are missing some app-ads.txt entries. Please include the missing strings below in your app-ads.txt file”

Please check screenshot
https://imgur.com/a/M0GjlYa

Thanks

Hi @AzeFrost !

It only allow me to add my website url without “/app-ads.txt”, for example if i add www.domain.com/app-ads.txt it tells “This is not a base URL” . It only allow me to add like www.domainname.com without /app-ads.txt word.

Yes, this is expected. Please double-check that you’ve included all of the app-ads.txt entries that are listed. It’s worth noting that this webcrawler is case-sensitive. If you’re still having troubles, can you please include some information we can use to identify your account (such as your organization ID) so that we can take a closer look? If you’re uncomfortable sharing this information in a public forum, please create a ticket with us directly by clicking on the question mark at the top right of the dashboard and scrolling down to the “File a ticket” section.

I checked today. Problem solved. It looks i should wait some hours to get verified.

1 Like

In my case, it’s because of my game ID. I paste it twice into the inspector.