I implemented an ads banner at the bottom of my main menu.
While implementing I could see the banner in the editor.
I wanted to check it on my phone, so I disabled all test modes and created an iOS release.
I’ve run the app in my iPhone successfully but no banner was showing up.
I think I misconfigured something. e.g. the bundle id must be a specific one or sth like this, but in the resources of Unity they are only talking about placement and game ids which I used as described.
Xcode logs:
2020-07-17 14:31:37.905132+0200 SnakeReloaded[3741:1274602] I/UnityAds: +[USRVApiSdk WebViewExposed_logInfo:callback:] (line:67) :: Requesting configuration from https://publisher-config.unityads.unity3d.com/games/CENSORED/configuration?bundleId=CENSORED&encrypted=true&rooted=false&platform=ios&sdkVersion=3460&osVersion=13.5.1&deviceModel=iPhone11%2C2&language=de_DE&connectionType=cellular&screenHeight=812&screenWidth=375&test=false&analyticsUserId=CENSORED&analyticsSessionId=CENSORED&advertisingTrackingId=CENSORED&limitAdTracking=false&frameworkName=Unity&frameworkVersion=2019.4.4f1&adapterName=Packman&adapterVersion=3.4.6
2020-07-17 14:31:38.297836+0200 SnakeReloaded[3741:1274602] E/UnityAds: +[USRVApiSdk WebViewExposed_initError:code:callback:] (line:42) :: Web application failed to load with error : Unity Ads SDK fail to initialize due to configuration error
2020-07-17 14:31:38.301038+0200 SnakeReloaded[3741:1274602] E/UnityAds: +[USRVApiSdk WebViewExposed_logError:callback:] (line:57) :: Initialization error: Unity Ads SDK fail to initialize due to configuration error
Oh man, it was a copy mistake in my code above.
In line 21 I initialize a second time with the game id for Android…
I removed this line and the error disappeared.
Now I’m getting No fill for placement banner
But it seems, that this is a expected behaviour to protect users for getting spammed with too much ads.
Hi, I am getting the same error: Unity Ads SDK fail to initialize due to configuration error. I only have initialization for ios, so there cannot be such errors in the code
Hi all, unfortunately, some regions have a lower banner supply than demand. This means that it’s possible for your games to request banners when none are available - and this is when the “no fill” error happens. There is unfortunately nothing we can do about this, but it does mean you have set up everything correctly and banners will show when they become available
I have the same error: “Unity Ads SDK fail to initialize due to configuration error”
When I follow your link to publisher-config I get the message:
{“error”:“not found”}
What does this mean?
In Unity editor test ads work fine. They pop up and I’m able to reward the player.
When I build and run on my device the ads don’t work anymore.
I tested the app. All was good.
Then the same issue happened accidentally: Unity Ads SDK fail to initialize due to configuration error.
Then - good.
Then - issue.
What is it?
I check the internet connection with [Internet Reachability Verifier] asset to check true connection before initializing Unity Ads.
Thanks! Log received. Interestingly, it looks like you are seeing a http 500 error that is preventing the config call from succeeding. This means our server is producing an internal server error when your app is trying to initialize the SDK.
This means your app is working as expected, but the source of the error is on our end.
I’ll submit a bug report to the engineering team. Thanks for reporting!