如何解决Oreo特定的AdMob测试与Google Play上的真实广告问题?

时间:2018-12-26 19:32:40

标签: android google-play admob

我在运行Android Oreo的最新测试设备之一上使用AdMob遇到“真实广告”问题。

我已经将AdMob与在Google Play上发布的应用结合使用了一年。我已经在代码中定义了一个测试设备列表,并且在所有设备上都看到了测试广告(在广告顶部显示了一个小的“测试广告”标签)。从Android Studio直接编译到测试设备时以及从Google Play下载已发布的发行版时,都是如此。最近,我添加了一个在Android Oreo(8.0.0)上运行的测试设备。问题是,从Android Studio进行编译和安装时,我仍然会收到测试广告,但是从 Google Play 下载相同代码的已发布(签名)版本时,却会收到真实广告

尽管如此,我仍然在所有其他测试设备上收到测试广告。我在下面列出了我正在使用的库。据我所知,它们都是最新版本。是否有人知道与Oreo的某个版本存在冲突?

dependencies {
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:preference-v7:27.1.1'
    implementation 'com.android.support:preference-v14:27.1.1'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:support-annotations:28.0.0'
    implementation 'com.android.support:preference-v14:27.1.1'
    implementation 'com.android.support:palette-v7:27.1.1'
    implementation 'com.github.bumptech.glide:glide:4.7.1'

    annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'

    implementation 'com.google.firebase:firebase-core:16.0.6'
    implementation 'com.google.firebase:firebase-auth:16.1.0'
    implementation 'com.google.firebase:firebase-storage:16.0.5'
    implementation 'com.google.firebase:firebase-database:16.0.5'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.google.android.gms:play-services-ads:17.1.2'
    implementation 'com.firebaseui:firebase-ui-storage:4.1.0'
    implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
}

apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案
相关问题