In an Android app that targets Android 13 (SDK 33), I have declared the required AD_ID permission in the app manifest:
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
However, when I upload the app to the play console for release the following error pops up advising me that the permission needs to be declared.
Error
Your declaration on Play Console says that your app uses advertising ID. Your manifest file doesn't include the com.google.android.gms.permission.AD_ID permission.
If you don't include this permission in your manifest file, your advertising identifier will be zeroed out. This may break your advertising and analytics use cases, and cause loss of revenue. Learn more
You can remove these errors by updating your advertising ID declaration
info_outline
Apps that target Android 13 (API 33) without the AD_ID permission will have their advertising identifier zeroed out. This may impact advertising and analytics use-cases. Learn more
Update declaration
Release without permission
I do use an AD_ID for app functionality and don't want it to be zeroed out because I didn't declare the permission, but I have declared the permission in the app manifest Google just doesn't recognize it.
Does it need to be added anywhere else? Is this the correct way to declare it? Any other thoughts or ideas appreciated.
Thanks
aapt dump permissions release.apk | grep AD_ID
orbundletool dump manifest --bundle=release.aab | grep AD_ID
or examine the content ofmanifest-merger-blame-*-release-report.txt
somewhere inapp/build/outputs
– Notional