unityscript – Unity Banner ads overlap with the next scene and display a 5 second delay

  • I use 2 ads. an advertising banner in my 1st scene and interstitial ads in my 2nd scene. every time I opened my game banner ads with a 5 second delay and when I pressed the play button, interstitial ads were displayed when I pressed the back button, I played my game .

  • if i do not wait for 5 seconds and click the play button interstitial ads button not show and its game directly in that time banner advertising showing on my screen. Complete my button.

my question is why ads showing a 5 second delay using bannerView.Destroy (); code why his overlap at the next scene
please help here is my banner banners code

using System.Collections;

using System.Collections.Generic;
use UnityEngine;
using GoogleMobileAds;
using GoogleMobileAds.Api;
using the system;

Public class BannerScript: MonoBehaviour
{

BannerView private banner;

empty Start ()
{
bannerView = new BannerView ("ca-app-pub-3129337025883034/4797068 ***", AdSize.Banner, AdPosition.Bottom);
AdRequest request = new AdRequest.Builder (). Build ();
bannerView.LoadAd (request);
bannerView.Show ();
}


void OnDestroy ()
{
bannerView.Destroy ();
}

}

and here is my interstitial ads code

use UnityEngine;

using System.Collections;
using GoogleMobileAds.Api;

Public class AdmobScript: MonoBehaviour
{
Interstitial Interstitial Ad;

public channel InterstitialId;

// Use this for initialization
empty Start ()
{
// Request ads
// RequestBanner ();
RequestInterstitial ();
}

public void showInterstitialAd ()
{
// show the ad
if (interstitial.IsLoaded ()) {
interstitial.Show ();
}

}



private void RequestInterstitial ()
{
#if UNITY_ANDROID
string adUnitId = InterstitialId;
#elif UNITY_IPHONE
string adUnitId = "INSERT_IOS_INTERSTITIAL_AD_UNIT_ID_HERE";
#other
string adUnitId = "expected_platform";
#end if

// Initialize an interstitial address.
interstitial = new InterstitialAd (adUnitId);
// Create an empty ad request.
AdRequest request = new AdRequest.Builder () .Build ();
// Load the interstitial with the query.
interstitial.LoadAd (request);
}

}