The Error “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.”, is an error that is invoked when you are working on a google play application and are trying to update it.
Given below is the snippet of the error you might get:
This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn't use advertising ID.
You must update your advertising ID declaration.
I would like to share with you the steps I took to fix the “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.”
Why “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.” Error is Seen?
The error, “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.” is seen when either you or something in your code has manually changed permission, Since doing so could cause problems, you shouldn’t manually remove permissions or analytics sub-modules that contain the AD ID permission.
The advertising ID is a one-of-a-kind, user-resettable advertising ID given by Google Play services.
It offers customers more flexibility and allows developers a simple, standard framework for monetizing their applications.
It allows users to change their identifier or opt out of tailored adverts (formerly known as interest-based ads) inside Google Play applications.
When a user opts out of personalisation using advertising ID in Android Settings, the advertising ID will be erased as part of a Google Play services update in late 2021.
Any efforts to retrieve the identification will result in a string of zeros rather than the identifier itself.
Notifications for opt-out choices will be sent to developers and ad/analytics service providers to assist them with regulatory compliance efforts and to respect user choice.
This gradual release of Google Play services will begin with applications running on Android 12 in late 2021 and will extend to include apps running on all devices that support Google Play on April 1, 2022.
Use App Set ID for non-ad use-cases such as analytics and fraud protection.
Furthermore, when applications are updated to target Android 13 or above, they must declare a Google Play services regular permission in the manifest file as follows:
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
Some SDKs, like the Google Mobile Ads SDK (play-services-ads), may already indicate this permission in the library manifest.
If your app depends on these SDKs, the AD ID permission from the SDK’s library manifest gets merged with your app’s main manifest by default, even if you don’t explicitly specify the permission in your app’s main manifest.
On the Android Developers site, you can learn more about merging manifest files.
This permission will be enforced on all devices from April 1, 2022.
The detailed solution to fix the error “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.”, is given below:
How to fix “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.” Error?
To fix the error, you will have to Select ‘YES’ in the Advertising ID section’s, The AD ID authorization for analytics use case. This would fix the error This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.
To fix the error, “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID”, you will have to follow one the steps mentioned below:
Step 1: Go to the Advertising Setting on Play Store and update your settings.
Step 2: Select ‘YES’ in the Advertising ID section’s, The AD ID authorization for analytics use case.
You shouldn’t manually remove permissions or analytics sub-modules that contain the AD ID permission.
So you will have to select yes even if the your app is not using ads. You can follow the image reference given below for better understanding of this.

This should fix the error “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID.”.
Conclusion
To fix the error, “This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn’t use advertising ID”, you will have to Select ‘YES’ in the Advertising ID section’s, The AD ID authorization for analytics use case.