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: 3561129
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 = "3561129";
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;
}
↧