无法通过按 Android 设备的后退键按钮关闭 Admob 插页式广告

Can#39;t dismiss Admob Interstitial Ads by pressing Back key button of Android device(无法通过按 Android 设备的后退键按钮关闭 Admob 插页式广告)
本文介绍了无法通过按 Android 设备的后退键按钮关闭 Admob 插页式广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最新的广告库 ('com.google.android.gms:play-services-ads:19.3.0')

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

最近,无法通过按返回键按钮关闭插页式广告.我必须点击关闭";广告 UI 中的按钮以关闭广告.

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.

任何身体有同样的问题?它是 Admob 的新功能吗?

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();
}
});

推荐答案

我也有这个.我曾与 AdMob 的人员进行过交谈,询问他们是否改变了广告的行为,他们证实确实如此.不再可以使用后退"按钮.按钮关闭插页式广告,他们告诉我不需要更改.我猜用户必须使用关闭".或X"广告本身内的按钮将其关闭.

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.

这篇关于无法通过按 Android 设备的后退键按钮关闭 Admob 插页式广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)