admob的间质性匹配请求太低(〜10%)太低、间质、admob

2023-09-08 16:01:44 作者:赵在我心丽的影子

到现在为止过去15天,我的AdMob的间质部ID总是过低匹配的请求。 随着15000间质的要求,我只能〜1500匹配(〜10%)。

我找不到什么是根本原因。无论是低匹配的是AdMob提供的服务器端或客户端来了(这是不是意味着我实现为错误的方法)。

有人能帮助我,这是一些code,我已经实现了:

首先,我创建间隙。

  @覆盖
保护无效的onCreate(包savedInstanceState){
    super.onCreate(savedInstanceState);
     initUI();
    //设置间的AdMob
    间质性=新InterstitialAd(本);
    interstitial.setAdUnitId(interstitial_ad_unit_id);

    interstitial.setAdListener(新AdListener(){
        @覆盖
        公共无效onAdLoaded(){
            super.onAdLoaded();
            Log.d(AdListener,onAdLoaded);
        }

        @覆盖
        公共无效onAdFailedToLoad(INT错误code){
            super.onAdFailedToLoad(错误code);
            Log.d(AdListener,onAdFailedToLoad);
            如果(isNetworkAvailable()){
                interstitial.loadAd(新AdRequest.Builder()建());
            }
        }

        @覆盖
        公共无效onAdOpened(){
            super.onAdOpened();
            Log.d(AdListener,onAdOpened);
        }

        @覆盖
        公共无效onAdClosed(){
            super.onAdClosed();
            Log.d(AdListener,onAdClosed);
            interstitial.loadAd(新AdRequest.Builder()建());
        }

        @覆盖
        公共无效onAdLeftApplication(){
            super.onAdLeftApplication();
            Log.d(AdListener,onAdLeftApplication);
        }

    });

    interstitial.loadAd(新AdRequest.Builder()建());
}
 

然后,每当我需要显示广告,我调用这个方法:

 公共静态无效displayInterstitial(){
    如果(interstitial.isLoaded()){
        interstitial.show();

    } 其他 {
        //示出了另一广告网络,代替admob的,如的startApp
        displayInterstitialStartApp();

        //如果间隙不加载然后重新装入
        如果(!interstitial.isLoading()){
            interstitial.loadAd(新AdRequest.Builder()建());
        }

    }
}
 

解决方案

最好的解决办法是使用调解,这样,如果Admob的无法送达回落到其他广告联盟的广告。 Admob的提供这种开箱,只是AdMob的网页上配置的其他广告网络。

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%).

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

    }
}

解决方案

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.