Unity ads invalid configuration request for gameid
Hi all,
I'm currently trying to integrate and test a simple banner ad on my app, and seem to be stuck with these errors appearing when initialising the ads:
Invalid configuration request for gameId: xxxxxxx
The remote server returned an error: (404) Not Found.
I have been following the basic tutorials for this setup, and have my placement and projects set up on the unity dashboard, as well as the following code within the unity environment itself:
private string _androidGameID = "xxxxxxx";
private string _iOSGameID = "xxxxxxx";
private string _gameID { get
{
#if UNITY_IOS
return _iOSGameID;
#else
return _androidGameID;
#endif
} }
private string _bannerID = "bannerPlacement1";
public bool TestMode = true;
public void InitializeAds()
{
Advertisement.Initialize(_gameID, TestMode);
StartCoroutine(ShowBannerWhenReady());
}
IEnumerator ShowBannerWhenReady()
{
while (!Advertisement.IsReady(_bannerID))
{
yield return new WaitForSeconds(0.5f);
}
//Advertisement.Banner.SetPosition(BannerPosition.TOP_CENTER);
Advertisement.Banner.Show(_bannerID);
}
}
This being initialised in a Start method in my main game class as so:
private UnityAdHelpers _adHelper;
void Start()
{
GameConstants.SetGame(this);
_adHelper = GetComponent<UnityAdHelpers>();
_adHelper.InitializeAds();
}
I have the testing modes enabled on both the project settings int he dashboard and the ads area in the Editor. After trying to find results for a long while online, I am at my whits end here, any advice?
Answer by DaveG · May 06, 2020 at 02:21 PM
I'm getting the same error when implementing for the first time in an older game of mine. However I have it implemented the same way on another game and I get no error there. Perhaps there is a waiting period before the ID is valid? I too would like an answer.
I will also note that if I turn on debugging before I initialize, I get another error.
Advertisement.debug$$anonymous$$ode = true;
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback()The remote server returned an error: (404) Not Found.
Could you try, in test mode, your "working" ID in the new project? And vice versa? Just wondering if it's related to our gameID or our project builds, so curious to see if it only occurs with your new game ID.
Confirmed, I had the same issue, I had to wait for 12 hours and then it worked.
Answer by Meatloaf4 · May 06, 2020 at 11:01 PM
Hey guys I found a fairly simple solution to get this working until Unity fixes it.
Kudos to @jmurnanedev and all the other guys for the images and thoughts.
Essentially just roll back to version 3.4.1 in the package manager and the error goes away.
P.S. Yes I did spend far too much time making that image and yes it is horrifyingly ugly haha.
That ruined it for me. its as if I have now got duplicate conflicting files.
Answer by jmurnanedev · May 06, 2020 at 07:55 PM
Also having this issue - I can confirm it happens with the latest version on both the asset store and the package manager, on a fresh project each time. Did you manage to solve it at all?
Seems like an issue on unity's end - is there someone who can be notified regarding this? Any help would be appreciated!
Answer by jamesthewelsh · May 06, 2020 at 11:39 PM
Hi everyone.
I was having the same issue. I tried everything, via the package manager and via the asset store, followed multiple implementations. Nothing worked. I left it alone to play some games.
And now it works, (keep in mind I first enabled unity ads about 12 hours ago) so it would seem @DaveG is right. There is a waiting period.
Hi @Jamesthewelsh,
This was a confirmed bug, and it's likely working now because they're in the processing of fixing it for the affected accounts. I can confirm it's also fixed for me now.
Special thanks to the unity ads $$anonymous$$m for their quick response and fix!
Your answer
![](https://koobas.hobune.stream/wayback/20220612233113im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Video Ads after a few times of gameplay. 0 Answers
I can get unity ads to work can someone help 0 Answers
Rewarded ad only works once 0 Answers