$begingroup$

I’ve create a Unity recreation, 1st I add an AdMob interstitial advertisements script on recreation object then attempt on my foremost digicam after I take a look at in my cellular earlier than publishing. It has labored like actual time advertisements and mistakenly clicked it and earn 0.3 so I create new advert unit positioned it on my recreation then printed my recreation. But the advertisements usually are not exhibiting in actual time. No error was present in AdMob however 147 advert requests are proven in AdMob and advertisements usually are not seen when my recreation 1st scene opens.

Here is my interstitial advertisements script code:

utilizing UnityEngine;
utilizing System.Collections;
utilizing GoogleMobileAds.Api;

public class AdmobScript : MonoBehaviour
{
   non-public InterstitialAd interstitial;

   non-public void RequestInterstitial()
   {
      #if UNITY_ANDROID
         string adUnitId = "ca-app-pub-3129337025883034/9036322***";
      #elif UNITY_IPHONE
         string adUnitId = "INSERT_IOS_INTERSTITIAL_AD_UNIT_ID_HERE";
      #else
         string adUnitId = "unexpected_platform";
      #endif

      // Create an interstitial.
      this.interstitial = new InterstitialAd(adUnitId);
      // Load an interstitial advert.
      this.interstitial.LoadAdvert(this.CreateAdRequest());
   }

   // Returns an advert request
   non-public AdRequest CreateAdRequest()
   {
      return new AdRequest.Builder().Build();
   }

   non-public void ShowInterstitial()
   {
      if (interstitial.IsLoaded())
      {
         interstitial.Show();
      }
   }

   public void Start()
   {
      RequestInterstitial();
   }

   void Gameover()
   {
      if(interstitial.isloaded){
        ShowInterstitial();
      }
   }
}

$endgroup$

1