android - Admob Interstitial 匹配请求太低 (~10%)

标签 android admob google-play-services

过去 15 天到现在,我的 admob 间质性单元 ID 总是获得太少的匹配请求。 对于 15000 个插页式广告请求,我只匹配了 ~1500 个(~10%)。

我找不到根本原因。低匹配是来自 admob 服务器端还是客户端(这意味着我以错误的方式实现)。

有人可以帮助我,这是我实现的一些代码:

首先,我创建插页式广告。

    @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     initUI();
    // setup  interstitial admob
    interstitial = new InterstitialAd(this);
    interstitial.setAdUnitId(interstitial_ad_unit_id);

    interstitial.setAdListener(new AdListener() {
        @Override
        public void onAdLoaded() {
            super.onAdLoaded();
            Log.d("AdListener", "onAdLoaded");
        }

        @Override
        public void onAdFailedToLoad(int errorCode) {
            super.onAdFailedToLoad(errorCode);
            Log.d("AdListener", "onAdFailedToLoad");
            if (isNetworkAvailable()) {
                interstitial.loadAd(new AdRequest.Builder().build());
            }
        }

        @Override
        public void onAdOpened() {
            super.onAdOpened();
            Log.d("AdListener", "onAdOpened");
        }

        @Override
        public void onAdClosed() {
            super.onAdClosed();
            Log.d("AdListener", "onAdClosed");
            interstitial.loadAd(new AdRequest.Builder().build());
        }

        @Override
        public void onAdLeftApplication() {
            super.onAdLeftApplication();
            Log.d("AdListener", "onAdLeftApplication");
        }

    });

    interstitial.loadAd(new AdRequest.Builder().build());
}

然后,每当我需要展示广告时,我都会调用此方法:

    public static void displayInterstitial() {
    if (interstitial.isLoaded()) {
        interstitial.show();

    } else {
        // show another ads network instead of admob, such as StartApp
        displayInterstitialStartApp();

        // if interstitial is not loading then load again
        if (!interstitial.isLoading()) {
            interstitial.loadAd(new AdRequest.Builder().build());
        } 

    }
}

最佳答案

最好的解决方案是使用中介,这样如果 Admob 无法提供广告,它就会回退到其他广告网络。 Admob 开箱即用,只需在 Admob 网页上配置其他广告网络即可。

关于android - Admob Interstitial 匹配请求太低 (~10%),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33495499/

相关文章:

java - 带有 void 参数的 Android 数据绑定(bind)属性

android - 如何将利用 Google Places APS 搜索的搜索 View 添加到 Android Map v2?

java - 适用于 Android 的 Firebase 实时(在线)数据库的安全性如何?

google-play-services - 如果手机上未安装 Play 服务,是否可以使用 Google 条形码阅读器?

android - 使用 Fused Location API 检索位置时无法处理 android.intent.package_ADDED 和 REMOVED 错误

android - 自定义布局在 ActionBarSherlock 上的位置

java - 在非 Activity 类比较器中获取上下文

ios - 连接ViewController和场景来展示广告(SpriteKit)

ios - 被admob广告单元ID中的 "/"和 ":"搞糊涂了

flutter - 如何为 AdMob 正确验证 Flutter GoogleAPIs 包