【发布时间】:2026-02-09 13:20:02
【问题描述】:
Android 广告 SDK 将使用 Android 的新广告客户 ID,这很有意义。
您似乎只能通过使用 google services sdk 获取 id,如下所述: http://developer.android.com/google/play-services/id.html.
使用google play services sdk,需要引用google-play-services_lib项目,这会导致几个问题:
- 很多 SDK 都是 jar,这意味着它们不能按原样使用 google-play-services_lib(因为它们不能包含资源)。
- 如果我只需要广告客户 ID,我需要将 google-play-services_lib 添加到我的项目中,它的大小接近 1 MB。
有没有办法只获取广告客户 ID,而不使用资源?
【问题讨论】:
标签: android uniqueidentifier google-play-services ads