最近,我的android应用程序一直在显示Admob的间隙广告,这些广告是不能被驳回的。似乎取消广告的后退按钮操作已经停止。大多数插入式广告在广告本身上都有一个“关闭”按钮,但并不是所有的广告都有。当没有关闭按钮的间隙广告投放时,关闭广告的唯一方法是杀死应用程序。
以下是我们收到的一个没有关闭按钮的广告的示例:

我正在使用implementation 'com.google.android.gms:play-services-ads:17.0.0'
在我的Gradle版本中。
所以问题是:除了按下广告上的关闭按钮之外,还有什么方法可以关闭间隙广告吗?
发布于 2020-09-22 22:47:13
如果应裁剪间隙以使关闭按钮不显示,则可能是由于AndroidManifest中的max_aspect设置所致。
对于Interstitial,android.resizeableActivity设置必须为真。
在5月份的应用程序中,我在应用程序标签中设置了android.resizeableActivity=true,但将我的android.max_aspect设置为1.8,这是我的游戏所需的。只有在我的主acticity标记中,我才将android:resizeableActivity=设置为“false”。
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:resizeableActivity="true"
>
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="@string/admob_App_id" />
<meta-data android:name="com.google.android.gms.games.APP_ID"
android:value="@string/app_id" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data android:name="android.max_aspect" android:value="1.8" />
<activity
android:name="com.entwicklerx.macedefense.MainActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboardHidden|orientation|screenSize"
android:resizeableActivity="false">我希望这能帮助那些最近遇到和我一样的问题的人。
发布于 2020-06-11 06:19:15
插页广告可以通过后退按钮关闭。
删除所有的minterstitial.loadad代码,还有showad代码,你称之为你实现的框架回调,就像onadclose回调。
mInterstitialAd = new InterstitialAd(this);
mInterstitialAd.setAdUnitId("ca-app-pub-........");
// mInterstitialAd.setAdUnitId("ca-app-pub-......."); /// test ads
MobileAds.initialize(this, new OnInitializationCompleteListener() {
@Override
public void onInitializationComplete(InitializationStatus initializationStatus) {
mInterstitialAd.loadAd(new AdRequest.Builder().build());
mInterstitialAd.setAdListener(new AdListener(){
@Override
public void onAdLoaded() {
super.onAdLoaded();
mInterstitialAd.show();
}
@Override
public void onAdFailedToLoad(int i) {
super.onAdFailedToLoad(i);
}
@Override
public void onAdClicked() {
super.onAdClicked();
}
@Override
public void onAdLeftApplication() {
super.onAdLeftApplication();
}
@Override
public void onAdOpened() {
super.onAdOpened();
}
});
}
});https://stackoverflow.com/questions/62225529
复制相似问题