Ads Not Showing

Hi i’m trying To Get Unity Ads For testing but it’s not working

    public void PlayAd()
    {
        Debug.Log(gameId);
        if (Advertisement.IsReady())
        {
            Debug.Log("Ad is ready");
            Advertisement.Show("video");
        }
        else
        {
            Debug.Log("Ad is not ready");
        }
    }

i get Ad is ready in log everything seems fine but test ads not showing until i changed game ids with random Android Game id from youtube i have tried to make my owns and make it in test mod but still test ads not showing dose it take time or where is the problem

Hi Kareimovich,

Thanks for reaching out. You can upgrade your SDK to the latest version, and use the IUnityAdsLoadListener and IUnityAdsShowListener callbacks to implement the logic for when content succeeds or fails to load or show respectively. Please refer to the code in our Unity developer integration guides#.

Thanks

  • Advertisement.Initialize( sUnityAdsAndroidGameID );
  • Advertisement.Load( “Android_Interstitial” );
    • public void PlayAd()
  • {
  • if (Advertisement.IsReady())
  • {
  • Advertisement.Show( “Android_Interstitial” );
  • }
  • else
  • {
  • Advertisement.Load( “Android_Interstitial” );
  • }
  • }