InterstitialAd mInterstitialAd; @Override protected void onCreate(Bundle savedInstanceState) { mInterstitialAd = new InterstitialAd(this); mInterstitialAd.setAdUnitId("ca-app-pub-39402xxxx9942544/xxxx173712"); mInterstitialAd.setAdListener(new AdListener() { @Override public void onAdClosed() { requestNewInterstitial(); if (BuildConfig.DEBUG) { Toast.makeText(appState, " посмотрСл Ρ€Π΅ΠΊΠ»Π°ΠΌΡƒ ΠΈ стал ΠΌΠΎΠ»ΠΎΠ΄Ρ†ΠΎΠΌ", Toast.LENGTH_SHORT).show(); } } }); requestNewInterstitial(); } private void requestNewInterstitial() { AdRequest adRequest = null; if (BuildConfig.DEBUG) { adRequest = new AdRequest.Builder() //.addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .build(); Toast.makeText(appState, "Π½Π΅ Π Π΅Π»ΠΈΠ·", Toast.LENGTH_SHORT).show(); } else { adRequest = new AdRequest.Builder() .build(); Toast.makeText(appState, "Π Π΅Π»ΠΈΠ·", Toast.LENGTH_SHORT).show(); } mInterstitialAd.loadAd(adRequest); } 

show so

 if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } 

But the test banner is always displayed.

  • The problem is most likely not in the code, check the advertising settings in your personal office in admob. Wait 6 hours. - pavel
  • I have been waiting for more than 12 hours. What to watch? At first glance, everything is set up. Google released the release version, downloaded and installed, launched, and there comes a test advertisement .. I checked on several phones with different Google accounts, it still comes out test ads - DuosDuo

0