Fix error ‘Your advertising ID declaration in Play Console indicates that your application uses an advertising ID.’ in Google Play console when uploading an application.

Tiempo de lectura: < 1 minuto

Today we’re going to learn how to fix the error that appears on Google Play when uploading an update or a new app that contains advertising:

“Your advertising ID declaration in Play Console indicates that your application uses an advertising ID. A manifest file of one of your active artifacts does not include the com.google.android.gms.permission.AD_ID permission.

If you do not include this permission in the manifest file, your advertising identifier will be set to all zeros. In that case, your advertising and analytics usage may stop working and you may lose revenue. More information.

To remove these errors, update your advertising ID declaration.”

To fix it, we just need to go to our manifest and add the following line:

<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

And if we don’t have advertising in our app, we would put:

<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>

Leave a Comment