Stay organized with collections
Save and categorize content based on your preferences.
Advertising ID
If your app uses the IMA SDK version 3.25.1 or higher, the SDK already
automatically declares the com.google.android.gms.permission.AD_ID permission
and is able to access the Advertising ID whenever it's available.
For apps that use the IMA SDK version 3.24.0 or lower and are targeting Android
13, you must add the com.google.android.gms.permission.AD_ID permission in the
AndroidManifest.xml file for the Google Mobile Ads SDK to access the
Advertising ID:
<manifest>
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
...
</application>
<!-- For apps targeting Android 13 or higher & IMA SDK version 3.24.0 or lower -->
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
</manifest>
To learn more about the com.google.android.gms.permission.AD_ID permission
declaration, including how to disable it, please refer to this
Play Console
article.
App Set ID
Starting with Android 12 devices, Google Play will zero out the advertising ID
when a user opts out of personalization in their Android Settings. Google Play
has also introduced the App Set ID,
which offers a privacy-friendly way to correlate usage or actions across a set
of apps owned by the same organization.
IMA version 3.25.1 or higher includes the App Set ID SDK by default. App Set ID
is essential to support non ads use-cases such as analytics and fraud
prevention, when the advertising ID is zeroed out. For more information on the
App Set ID see this
Android developer guide.
[[["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 2025-08-20 UTC."],[[["\u003cp\u003eIMA SDK versions 3.25.1 and higher automatically declare the \u003ccode\u003ecom.google.android.gms.permission.AD_ID\u003c/code\u003e permission, granting access to the Advertising ID when available.\u003c/p\u003e\n"],["\u003cp\u003eFor apps using IMA SDK versions 3.24.0 or lower and targeting Android 13, you must manually add the \u003ccode\u003ecom.google.android.gms.permission.AD_ID\u003c/code\u003e permission to your \u003ccode\u003eAndroidManifest.xml\u003c/code\u003e file to enable Google Mobile Ads SDK to access the Advertising ID.\u003c/p\u003e\n"],["\u003cp\u003eOn Android 12 and later, Google Play zeroes out the Advertising ID when users opt out of personalization, introducing the App Set ID as a privacy-focused alternative for correlating app usage within the same organization.\u003c/p\u003e\n"],["\u003cp\u003eIMA SDK version 3.25.1 and higher includes the App Set ID SDK by default, supporting non-ads use cases like analytics and fraud prevention when the Advertising ID is unavailable.\u003c/p\u003e\n"]]],["Apps using IMA SDK 3.25.1+ automatically declare and access the Advertising ID. Apps with IMA SDK 3.24.0 or lower, targeting Android 13, must add the `com.google.android.gms.permission.AD_ID` permission to their `AndroidManifest.xml`. Android 12+ devices will zero out the advertising ID if the user disables personalization. The App Set ID, included by default in IMA 3.25.1+, allows usage correlation across apps from the same organization when the advertising ID is zeroed.\n"],null,["Advertising ID\n\nIf your app uses the IMA SDK version 3.25.1 or higher, the SDK already\nautomatically declares the `com.google.android.gms.permission.AD_ID` permission\nand is able to access the Advertising ID whenever it's available.\n\nFor apps that use the IMA SDK version 3.24.0 or lower and are targeting Android\n13, you must add the `com.google.android.gms.permission.AD_ID` permission in the\n`AndroidManifest.xml` file for the Google Mobile Ads SDK to access the\nAdvertising ID: \n\n \u003cmanifest\u003e\n \u003capplication\u003e\n \u003cmeta-data\n android:name=\"com.google.android.gms.ads.APPLICATION_ID\"\n android:value=\"ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy\"/\u003e\n\n ...\n\n \u003c/application\u003e\n \u003c!-- For apps targeting Android 13 or higher & IMA SDK version 3.24.0 or lower --\u003e\n \u003cuses-permission android:name=\"com.google.android.gms.permission.AD_ID\"/\u003e\n \u003c/manifest\u003e\n\nTo learn more about the `com.google.android.gms.permission.AD_ID` permission\ndeclaration, including how to disable it, please refer to this\n[Play Console](//support.google.com/googleplay/android-developer/answer/6048248)\narticle.\n\nApp Set ID\n\nStarting with Android 12 devices, Google Play will zero out the advertising ID\nwhen a user opts out of personalization in their Android Settings. Google Play\nhas also introduced the [App Set ID](//developer.android.com/training/articles/app-set-id),\nwhich offers a privacy-friendly way to correlate usage or actions across a set\nof apps owned by the same organization.\n\nIMA version 3.25.1 or higher includes the App Set ID SDK by default. App Set ID\nis essential to support non ads use-cases such as analytics and fraud\nprevention, when the advertising ID is zeroed out. For more information on the\nApp Set ID see this\n[Android developer guide](//developer.android.com/training/articles/app-set-id#scope)."]]