- Home /
Ads errors while starting game offline.
In my recent project and newly installed Unity and other tools, I am getting these errors whenever internet is turned off.
Invalid configuration request for gameId: xxxxxxx System.Threading._ThreadPoolWaitCallback:performWaitCallback()
Error: NameResolutionFailure System.Threading._ThreadPoolWaitCallback:performWaitCallback()
Please help as I need to upload ASAP. The game still works but if I start without internet, ads are never displayed even when internet is reconnected. I am using this code
string gameId = "xxxxxxx"; string placement = "rewardedVideo"; bool testMode = true; void Start() {
Advertisement.AddListener(this); Advertisement.Initialize(gameId, testMode); }
public void rewardAdClicked() { flagAd = true; Advertisement.Show(placement); }
public void OnUnityAdsDidFinish(string placementId, ShowResult showResult) { MovControl.lives = 1; }
Why won't anyone reply! Also I have got into a number of errors after trying to change advertisement version in the package manager. Duplicate files now exist
Answer by youbek123 · May 10, 2021 at 09:22 AM
Same here, and when the internet is back I am trying to reinitialize advertisement, so I am calling Advertisement.Initialize
again, but it's not doing anything, I can't see any ads. I read about that SDK will handle reconnection, but SDK is reconnection is very slow, it's reconnecting after 10-15 seconds. And I am pretty sure it's not about internet speed, because if I launch app with internet, I can see ads within 1-2 seconds.
So, I think reason that calling Advertisement.Initialize
isn't doing anything is error in the start of the game. Have you solved the error? @coolamigo
Your answer
Follow this Question
Related Questions
Does Android build in Unity 5.2 always require internet connection? 0 Answers
Simulating a loss of internet connection 0 Answers
BCE0044: expecting EOF, Found 'var' 1 Answer
Unsupported enum type 2 Answers