Admob interstitial ad won't display

前端 未结 7 1874
心在旅途
心在旅途 2020-12-09 16:34

I used to display AdMob banner on my future apps, and I\'d like to give a try to the interstitial ads.

I checked the AdMob SDK for implementation, and I copied their

相关标签:
7条回答
  • 2020-12-09 16:59
    mInterstitialAd = new InterstitialAd(this);
                    mInterstitialAd.setAdUnitId("Your Interstitial Id ca-app-pub-46563563567356235/3452455");
                    AdRequest adRequest1 = new AdRequest.Builder()
                            .build();
                    mInterstitialAd.loadAd(adRequest1);
                    mInterstitialAd.setAdListener(new com.google.android.gms.ads.AdListener() {
                        @Override
                        public void onAdLoaded() {
                            mInterstitialAd.show();
                            super.onAdLoaded();
    
                        }
                    });
    
    0 讨论(0)
提交回复
热议问题