gpt4 book ai didi

android - Admob 横幅广告和插页式广告未在启动器 Activity 中加载

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:14:39 27 4
gpt4 key购买 nike

当我第一次加载我的应用程序时,横幅广告和全屏插页式广告没有加载。每隔一段时间,当我点击那个(或任何其他) Activity 时,广告加载正常。这让我相信这不是填充问题。此外,我没有使用任何中介,仅使用标准的 Admob 网络。

下面是我用来加载横幅广告的代码

AdView bannerAdView = (AdView)this.findViewById(R.id.adView);
if (Settings.SHOW_ADS) {
AdRequest adRequestBanner = new AdRequest.Builder().build();
bannerAdView.loadAd(adRequestBanner);
}

Log cat 返回如下错误

10-11 21:33:51.749  19409-19439/ W/Ads﹕ There was a problem getting an ad response. ErrorCode: 0
10-11 21:33:51.839 19409-19409/ W/Ads﹕ Failed to load ad: 0
10-11 21:33:47.039 19409-19409/ E/Ads﹕ JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined (:1)

我可以做些什么来使广告加载时间接近 100%,尤其是全屏广告?

最佳答案

此外,您的包裹可能被 Google AdMob 拦截。如果您收到这样的电子邮件:

Hello,

This email is to alert you that one of your applications is not currently in compliance with our AdMob program policies and as a result, ad serving has been disabled to your application.

Issue ID#: 33943***

Ad serving has been disabled to: APPNAME (com.example.pack)

Action required: Check all other remaining applications in your account for compliance.

Current account status: Active

Violation explanation

GOOGLE PLAY REMOVAL: AdMob publishers are not permitted to abuse or promote the abuse of any Google product, such as Google Play, YouTube, or Blogger. This includes circumventing, or providing the means to circumvent, the policies or terms of these or other Google products, such as by allowing users to download YouTube videos.

If your app is removed by Google Play policy enforcement, please contact Google Play about an app removal here. If Google Play reinstates your app, please submit an appeal to our team.

Action required: Check account for compliance

While ad serving has been disabled to the above app, your AdMob account remains active. We suggest that you take the time to review the rest of your applications to ensure that they’re in compliance with our policies, and to monitor your apps accordingly to reduce the likelihood of future policy emails from us. Additionally, please note that our team reserves the right to disable accounts at any time if we continue to see violations occurring.

Appeals

If you wish to appeal this disabling then you can do so by using our appeal form.

Thank you for your cooperation.

Sincerely,

The Google AdMob Team

所以现在您需要更改您的应用程序包。在 Eclipse 上它是 AndroidManifest.xml 文件中的 package="com.example"

在 AndroidStudio 上 applicationId "com.example" 在 build.gradle 文件中

关于android - Admob 横幅广告和插页式广告未在启动器 Activity 中加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26313488/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com