Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get the android advertising id without adding play services ads dependency?

I am using the google play ads dependency just to get the advertising id.

com.google.android.gms:play-services-ads:7.8.0

Is there any way to avoid this as the library has a method count of 6201.

like image 844
rahulrv Avatar asked Dec 25 '15 00:12

rahulrv


People also ask

How do I find my Android advertising ID?

Android – Find your Advertising ID Simply open the Google Settings app on your Android device and click on “Ads.” Your Advertising Identifier will be listed at the bottom of the screen.

Does your app use an advertising ID in Google Play console?

YES. Admobs uses Advertising ID. even if you did not put it in the manifest -> latest google ads sdk "play-services-ads" have it in their manifest and it is imported to yours.

How do I get a new advertising ID?

To reset your Android advertising ID, Open Google Settings on your Android device by tapping on menu and then on Google Settings once all apps are displayed on the screen. Locate and tap on the Ads menu under Services. Tap on “reset advertising ID” on the new page.

Is it OK to delete advertising ID?

The ad identifier - aka “IDFA” on iOS, or “AAID” on Android - is the key that enables most third-party tracking on mobile devices. Disabling it will make it substantially harder for advertisers and data brokers to track and profile you, and will limit the amount of your personal information up for sale.


1 Answers

AdvertisingIdClient and its associated classes are also found in the much smaller

com.google.android.gms:play-services-basement:8.3.0

if you use Google Play services 8.3. Prior to that point, you are correct in that it was part of play-services-ads.

In any case, it is strongly recommended that you use ProGuard to remove unused code from your app before shipping retail versions of your app.

like image 90
ianhanniballake Avatar answered Nov 15 '22 18:11

ianhanniballake