android - 如何从常量中找到 Google Play 服务版本?

标签 android admob

我刚收到一封来自 Google 的电子邮件,说他们正在弃用 AdMob 6.4.1 版,我需要升级库才能在应用程序中使用广告:

...we are deprecating versions 6.4.1 and lower of the Android Google Mobile Ads SDK on September 15th, 2016.
In order to ensure that your ads continue to serve after September 15th, 2016, please upgrade to Google Mobile Ads SDK 7.0.0 or higher...

问题是我丢失了整个项目(源代码)和证书,我想知道我的 AdMob 的版本。这是我从逆向工程中得到的:

public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = 6587000;

这是常量值:android:value="@integer/google_play_services_version"

这是 Google Play Services 还是 Admob 的版本? 6587000 代表什么版本 (6.5.8)?与 Google Play 服务发行说明相比,我在互联网上找不到任何内容。

最佳答案

Admob 独立 SDK 的最新版本是 6.4.1。之后所有新版本都带有 Play 服务。我找不到它介绍的是哪个版本,但据我所知是 Play Services 8。

但是 android:value="@integer/google_play_services_version"随 Play Services 13 一起提供。因此,如果您的应用有 integer/google_play_services_version 那么它正在使用新版本的 Admob,因此您不会有任何折旧问题。

还请考虑一下来自 Google 的旧注释; “2014 年 8 月 1 日,Play 商店将停止接受使用独立 Google AdMob SDK 的新的或更新的应用程序。SDK 不使用广告 ID,因此在这一天将不符合 Google Play 广告政策”

版本 6.4.1 没有广告 ID。因此,如果您在 2014 年 8 月 1 日之后更新了您的应用,那么您的应用将拥有更新版本的 Admob。

关于android - 如何从常量中找到 Google Play 服务版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38183032/

相关文章:

java - 键盘向上推admob广告

ios - AdMob 原生高级广告单元 ID

android - 什么是 admob 中的印象点击率、请求 RPM、印象 RPM

Android:如何向主 Activity 添加另一个 fragment

android - 杀死单个 Activity Android 应用程序

java - Android Java IllegalStateException : Could not execute method of the activity

ios - Admob 在 ios 上崩溃

android - 如何在 Android 中正确设置 admob 以区分广告收入

java - 我可以将 List<Model> 传递给采用通用通配符 List<?> 的函数吗?

java - 通过适配器传递MainActivity的数据