Why doesnt an ad pop up? it says in the console: UnityAdsEditor: Initialize(1046862,True

So an ad doesnt pop up but it says ‘UnityAdsEditor: Initialize(1046862,True’ in the console.
how to I get an ad to appear?

using UnityEngine;
using System.Collections;
using UnityEngine.Advertisements;

public class ShowAds : MonoBehaviour
{
    void Start()
    {
        StartCoroutine(ShowAdvert());
    }

    IEnumerator ShowAdvert()
    {
        if (Advertisement.IsReady ())
        {
            yield return new WaitForSeconds(3);
            Advertisement.Show ();
        }
    }
}

The true parameter in the initialize() function dictates whether you’re using test ads. Omit the parameter or change the setting in window → unity services → ads to receive live ads.

You’re running Show() too early - Unity Ads probably hasn’t had time to initialize (fetch campaigns). If you run a loop where you test whether the ads are not ready, exit the loop after they are and show the ad after that - you can ensure the ads are actually ready before trying to show them:

while (!Advertisement.IsReady())
    yield return null;

Advertisement.Show();