com.google.android.gms.ads.identifier
Stay organized with collections
Save and categorize content based on your preferences.
Contains classes relating to the Android Advertising ID (AAID).
Classes
AdvertisingIdClient
|
Helper library for retrieval of advertising ID and
related information such as the limit ad tracking setting. |
AdvertisingIdClient.Info
|
Includes both the advertising ID as well as the
limit ad tracking setting. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe Android Advertising ID (AAID) enables user privacy controls and advertising personalization.\u003c/p\u003e\n"],["\u003cp\u003eThis page details how to retrieve the AAID and limit ad tracking setting through the \u003ccode\u003eAdvertisingIdClient\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers use \u003ccode\u003eAdvertisingIdClient.Info\u003c/code\u003e to access both the user's advertising ID and their ad tracking preference.\u003c/p\u003e\n"]]],["The provided content details classes for handling the Android Advertising ID (AAID). `AdvertisingIdClient` is a library used to retrieve the AAID and the limit ad tracking setting. `AdvertisingIdClient.Info` is a class that encapsulates both the advertising ID and the user's preference for limiting ad tracking. These classes allow developers to obtain the AAID and respect user privacy settings regarding ad personalization.\n"],null,["# com.google.android.gms.ads.identifier\n\nContains classes relating to the Android Advertising ID (AAID).\n\n### Classes\n\n|---------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| [AdvertisingIdClient](/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient) | Helper library for retrieval of advertising ID and related information such as the limit ad tracking setting. |\n| [AdvertisingIdClient.Info](/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient.Info) | Includes both the advertising ID as well as the limit ad tracking setting. |"]]