Admob Interstitial matched requests is too low (~10%)(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%)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Admob 插页式匹配请求太低 (~10%)
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- android 4中的android RadioButton问题 2022-01-01