Is requesting an ad in onAdFailedToLoad good practice?

I am using Admob and the following code in my app with admob. I want to know if this is good practice or not. as you can see my fill rate is very slow.

adView.setAdListener(new AdListener() {
            @Override
            public void onAdFailedToLoad(int errorCode) {
                super.onAdFailedToLoad(errorCode);
                adView.loadAd(new AdRequest.Builder().build());
            }
});

      

Admob stats

+3


source to share


1 answer


Yes. The best way to counter a low fill rate is to use mediation so that you request an ad from another provider when you don't have one. You can set up multiple networks.



See Admob doco through mediation (it doesn't require any code changes).

0


source







All Articles