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.