UnityAds : Test first if have internet connection?

Hi :), how can i test first if i have internet connection before showing the ads?
or is there any call back for it when you call Advertisement.Initialize(AdId, true); ? TAI :slight_smile:

Here is my code :

`

Advertisement.Initialize(AdId, true);
while (!Advertisement.isReady())
{
   yield return null;
}

    Advertisement.Show(null, new ShowOptions
    {
        pause = false,
        resultCallback = result =>
        {
            res = result;
            if (loader)
            {
                loader.NoOfTimesLoaded = 0;
                loader.FadeInScene();
            }
        }
    });

`

There are a few different solutions discussed to check for internet connection availability: