Admob 插页式匹配请求太低 (~10%) [英] Admob Interstitial matched requests is too low (~10%)

查看:41
本文介绍了Admob 插页式匹配请求太低 (~10%)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到现在为止的过去 15 天,我的 admob 插页式广告单元 ID 的匹配请求总是太少.有 15000 个插页式请求,我只得到了 ~1500 个匹配(~10%).

Last 15 days until now, My admob interstitial unit id always get too low of matched requests. With 15000 Interstitial requests, i just got ~1500 matched (~10%).

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

I can't find what is the root cause. Whether low matched is coming from admob server side or client side (it's mean i implement as wrong way).

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

Someone can help me, and this is some the code that i have implemented:

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

Firstly, i create interstitial.

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

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

And then, whenever i need to show Ads, i call this method:

    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 网页上配置其他广告网络.

The best solution is to use mediation so that if Admob cannot serve an ad it falls back to other ad networks. Admob provides this out of the box, just configure the other ad networks on the Admob web page.

这篇关于Admob 插页式匹配请求太低 (~10%)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆