Is it possible to get an advertising ID in Android without adding an advertising service advertising dependency?

I use an ad dependency on Google Play to get the ad id.

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

Is there a way to avoid this, since the library has a 6201 counting method.

+5
source share
1 answer

AdvertisingIdClient , and its related classes are also in much smaller

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

if you use Google Play 8.3 services. Until now, you are correct 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 application before sending retail versions of your application.

+9
source

Source: https://habr.com/ru/post/1239174/


All Articles