Use ads-identifier library instead of play-services-ads to fetch advertising ID
See original GitHub issueSummary
Right now the SDK uses the big play-services-ads
library to fetch the advertising ID. However, Google has introduced the much smaller and better scoped ads-identifier
library for exactly that task: https://developer.android.com/training/articles/ad-id
Motivations
The new Advertising ID library is smaller and better scoped. Especially apps which don’t already display Google Ads would benefit from switching to the Advertising ID library. Also, using the new library now is Google’s recommended approach to fetch the Advertising ID on Android.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Advertising ID - Play Console Help
The advertising ID is a unique, user-resettable ID for advertising, provided by Google Play services. It gives users better controls and provides developers ......
Read more >Get a user-resettable advertising ID
Get the ad identifier details, including the advertising ID, by calling AdvertisingIdClient.getAdvertisingIdInfo() . The Advertising ID library ...
Read more >How to get Advertising ID in android programmatically
Get GAID(Google's advertising ID) 1. Download latest Google Play Services SDK. 2. Import the code and add it as a library project.
Read more >AdvertisingIdClient.Info | Google Play services
Stay organized with collections Save and categorize content based on your preferences. Includes both the advertising ID as well as the limit ad...
Read more >How to Disable Ad ID Tracking on iOS and Android ...
Settings app and navigate to · Privacy > · Ads. Tap “ · Delete advertising ID,” then tap it again on the next...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My bad. I ran into a combination of strange Gradle dependency issues and misread your proposal. I did investigate and yeah, it looks like
AdvertisingIdClient
is the only actual library class we are using. I ran into some other deprecated libraries likecom.google.android.gms.common.GooglePlayServicesUtil
that I’ll investigate more into. I’ve seen the new package you are referring to inandroidx...
and I’ll be testing that again.@ubuntudroid This’s a really good point! We will take a look.