Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Google Play Services version from the constants?

Tags:

android

admob

I just got an e-mail from Google saying that they are deprecating the version 6.4.1 of AdMob and I need to upgrade the library in order to use the Ads in the application:

...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...

The problem is that I have lost the entire project (source code) and certificates, and I want to know the version of my AdMob. This is what I got from reverse-engineering:

public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = 6587000;

This is the constants value of: android:value="@integer/google_play_services_version"

Is this the version of the Google Play Services or the Admob? What version 6587000 represents (6.5.8)? I cannot find anything on the internet compared to the Google Play Services release notes.

like image 213
Zbarcea Christian Avatar asked Jul 04 '16 10:07

Zbarcea Christian


People also ask

Is Google Play Services update automatically?

When you turn on automatic updates, Google Play Services updates automatically. However, if you don't like waiting, here's how to update Google Play Services on your Android phone.

What does Google Play Services track?

If a user uses Google apps and services on Android, Google collects data through Google Play services to provide and improve those apps and services. For example: Depending on a user's settings, Google collects data like contacts and bookmarks to sync them across devices and the cloud.

Can I download Google Play Services APK?

To recover Google Play Services on your Android if it's outdated or you've accidentally uninstalled it, download its APK file from Uptodown. Once you've downloaded and installed the file, you can recover Google Play Services on your Android.


1 Answers

Last version of Admob standalone SDK is 6.4.1. After that all new versions comes with Play Services. I could not find which version it was introduced but as far as I remember It was with Play Services 8.

But android:value="@integer/google_play_services_version" comes with the Play Services 13. So if your app has integer/google_play_services_version then it is using new versions of Admob, so you will not have any problem with the depreciation.

Also consider this old note from Google; "On August 1, 2014, the Play Store will stop accepting new or updated apps that use the standalone Google AdMob SDK. The SDK does not use the Advertising ID, and will therefore be non-compliant with the Google Play Ad Policy on this date."

Version 6.4.1 does not have Advertising ID. So if you updated your app after August 1, 2014, then your app will have newer versions of Admob.

like image 156
woltran Avatar answered Oct 16 '22 14:10

woltran