- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
过去 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/
在对一袋词实现线性回归模型时,python 返回了非常大/非常低的值。 train_data_features 包含训练数据中的所有单词。训练数据包含大约 400 条评论,每条评论少于 500 个字符
当我将 navigationBarHidden 设置为 NO 时,但我使导航栏半透明,当我使用 initWithFrame: 初始化它时,我会打印该框架>,它是 {{0, 0}, {320, 504}
我正在寻找随机森林的应用程序,我在 Kaggle 上发现了以下知识竞赛: https://www.kaggle.com/c/forest-cover-type-prediction . 遵循以下建议
当我尝试运行logging aggregation时,我发现由elasticsearch生成的以下错误: [2018-02-04T13:44:04,259][INFO ][o.e.b.Bootstra
使用 Ubuntu 16.10 docker 1.12.3 docker Composer 1.8官方elastic docker镜像elastic最新标签 docker-compose.yml ve
启动 sonarqube 时出现此错误。 我试过: sudo sysctl -w vm.max_map_count=262144 哪个返回: sysctl: setting key "vm.max_m
当我启动 elasticseach 时,我收到此警告: [2018-08-05T15:04:27,370][WARN ][o.e.b.BootstrapChecks ] [bDyfvVI] ma
我对 ElasticSearch 的 systemd 配置有疑问。 [Unit] Description=platform-elasticsearch After=syslog.target netw
我写了一个视频录制demo,我的实现和Grafika的ContinuousCaptureActivity是一样的。 在 ContinuousCaptureActivity.java 中,作者在 Sur
在使用Docker将EKS节点中的18.09从18.06降级为yum之后,该节点上的ES pod进入崩溃循环,日志中出现以下错误: max file descriptors [4096] for el
我正在构建一个 iOS 应用程序,部署目标 12.1,swift 4.2。该应用程序使用容器 View ,并在主屏幕顶部有一个导航栏,最好位于状态栏下方。在启动屏幕 Storyboard中,我将 Na
我有一个在 14.04.05 LTS 上运行的 Ubuntu 服务器。 此服务器上还安装了几个 ugins mongodb 应用程序。 MongoDB版本为3.4.2 我正在尝试增加 mongodb
我收到此错误: es01 | {"type": "server", "timestamp": "2019-09-18T17:31:42,267+0000", "level": "INFO", "com
标题重复,但我的问题不同。 同一个项目运行良好,允许在其上构建 buildToolsVersion 23.0.3 在我同事的系统上。据我所知,只有 android studio 版本不同。如果我没有将
我是一名优秀的程序员,十分优秀!