【发布时间】:2017-01-24 09:14:34
【问题描述】:
我正在使用 Google AdMob SDK 来显示 DFP 横幅,但它仅适用于 Android
在 6.0+ 设备上出现此错误:
W/Ads: There was a problem getting an ad response. ErrorCode: 0
W/Ads: Failed to load ad: 0
即使使用 Google 提供的示例项目,我也会遇到完全相同的错误消息。
https://github.com/googleads/googleads-mobile-android-examples/tree/master/doubleclick/BannerExample
有什么想法吗?
更新
这是我的 gradle.build
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.google.android.gms.example.bannerexample"
minSdkVersion 9
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.google.android.gms:play-services-ads:10.0.1'
}
【问题讨论】:
-
更新 Androd 支持库和新的 API。更新所有东西,这开始˙s 工作
-
@siddhesh,感谢您的建议,但我不知道该怎么做?
-
从你的 gradle 检查你的依赖是否更新
标签: android admob google-dfp