Can't dismiss Admob Interstitial Ads by pressing Back key button of Android device

丶灬走出姿态 提交于 2021-02-07 13:01:44

问题


I am using latest Ads library ('com.google.android.gms:play-services-ads:19.3.0')

Recently, It is unable to close an Interstitial ads by pressing Back key button. I have to tap on "Close" button from Ads UI to dismiss the Ads.

Any body had same problem? Is it a new feature of Admob?

  MobileAds.initialize(this);
interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId("ca-app-pub-3940256099942544/1033173712");
interstitialAd.loadAd(new AdRequest.Builder().build());
tvTitle.setOnClickListener(v -> {
if (interstitialAd.isLoaded()) {
interstitialAd.show();
}
});

回答1:


I've this too. I've talked with people at AdMob and asked if they changed the behavior of their ads and they confirmed that they did. It's no longer possible to use the "Back" button to dismiss the interstitial ad and they told me that no changes are required on my side. I guess users must use the "Close" or "X" button within the ad itself to close it.



来源:https://stackoverflow.com/questions/63396249/cant-dismiss-admob-interstitial-ads-by-pressing-back-key-button-of-android-devi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!