# Fix Play Console 'Advertising ID Declaration Mismatches AD_ID Permission' Error

> Exact Error: `Advertising ID declaration in Play Console mismatches com.google.android.gms.permission.AD_ID`

- **Canonical URL**: https://gootester.com/errors/advertising-id-manifest-declaration-mismatch

## Step-by-Step Resolution
1. **Inspect your compiled .aab manifest for com.google.android.gms.permission.AD_ID**: Run bundletool dump manifest --bundle=app-release.aab | grep AD_ID to confirm definitively whether the permission exists in your binary.
2. **Option A (Keep Analytics/Ads): Answer 'Yes' in Play Console -> Advertising ID**: If your app targets users 13+ and uses Firebase Analytics, AdMob, or attribution, go to App content -> Advertising ID, select 'Yes', and check 'Analytics' (and 'Advertising or marketing' if showing ads).
3. **Option B (Privacy-First / Zero AAID): Strip AD_ID via tools:node="remove"**: If you do not want Advertising ID collection (or target under-13 audiences), add <uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" /> and disable Firebase ad-id collection in Manifest metadata.
4. **Align your Data Safety 'Device or other IDs' disclosure to match**: If you select Option A ('Yes' to AD_ID), ensure Data Safety -> Device or other IDs is also checked as collected/shared (encrypted in transit) so Data Safety and AD_ID forms never contradict.
5. **Roll out the aligned bundle and submit held changes in Publishing Overview**: If choosing Option B, increment versionCode, upload the stripped .aab across all active tracks, set Advertising ID to 'No', and send changes for review.

```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <!-- ONLY use Option B below if you answered "No" to Advertising ID in Play Console! -->
    <uses-permission
        android:name="com.google.android.gms.permission.AD_ID"
        tools:node="remove" />

    <application>
        <meta-data
            android:name="google_analytics_adid_collection_enabled"
            android:value="false" />
    </application>
</manifest>
```

## Why Apps Without Ads Still Contain `com.google.android.gms.permission.AD_ID`

When rolling out your very first Closed Testing release in Google Play Console, a sudden red blocker right at the final confirmation screen catches countless developers off guard: `Advertising ID declaration in Play Console mismatches com.google.android.gms.permission.AD_ID`. You know for a fact your app displays zero banner, interstitial, or rewarded ads, so you answered **No** inside `App content -> Advertising ID` — why is Play Console insisting your `.aab` uses an Advertising ID?
On Android 13 (API 33) through Android 16 (API 36), apps cannot read the resettable Google Play Services Advertising ID (`AAID`) unless `<uses-permission android:name="com.google.android.gms.permission.AD_ID" />` is explicitly merged into `AndroidManifest.xml`. Because `firebase-analytics` (`com.google.android.gms:play-services-measurement-api`), OneSignal, Facebook SDK, AppsFlyer, and several crash/analytics packages include that `<uses-permission>` inside their library manifests for install attribution and cohort analytics, Gradle merges `AD_ID` into your final `.aab` automatically.
Inspect `android/app/build/outputs/logs/manifest-merger-release-report.txt` right after compiling your release bundle to identify every AAR coordinate contributing `com.google.android.gms.permission.AD_ID` before deciding whether to declare or strip it.

## Choosing Cleanly Between Option A (Declare Analytics) and Option B (Strip AD_ID)

You have two 100%-compliant ways to clear this blocker in under ten minutes, depending on your target audience and analytics stack. **Option A (Fastest — Zero Rebuild Required):** If your Target Audience is strictly `13+` (or `16+` / `18+`) and you use Firebase Analytics or AdMob, open `Play Console -> Monitor and improve -> Policy and programs -> App content -> Advertising ID`, change your answer to **Yes**, and check **Analytics** (plus **Advertising or marketing** only if serving ads). Remember to also tick **Device or other IDs** inside your **Data safety** questionnaire so both forms remain consistent. You can immediately finish rolling out your existing `.aab` without recompiling!
**Option B (Zero-Identifier Privacy / Families Compliance):** If your app has zero ads, doesn't need cross-app AAID attribution, or includes **any under-13 age group** in Target Audience, strip `com.google.android.gms.permission.AD_ID` with `tools:node="remove"` and set `google_analytics_adid_collection_enabled = false`, bump `versionCode`, upload the clean `.aab` across Internal and Closed tracks, and keep the Play Console Advertising ID declaration set to **No**.
If serving Google AdMob banners in EU/UK/EEA countries under Option A, also initialize the Google User Messaging Platform (`com.google.android.ump:user-messaging-platform`) IAB TCF v2.2 consent dialog before requesting personalized ads so regional privacy checks pass cleanly.

## Pre-Flight Manifest Checks Keep Your 14-Day Closed Test on Schedule

Catching `AD_ID` and Families Policy mismatches before submitting your initial Closed Testing track prevents unnecessary multi-day policy rejections prior to tester onboarding. Remember that GOOtester's service clock ($6 Basic for 12 testers/14d, $12 Standard for 15 testers/16d + separate ADB QA, $20 Premium for 25 testers/24d + separate ADB QA) never starts until your Closed Testing release is approved and `testers@gootester.com` Google Group access is verified live.
Whenever you upgrade Expo SDKs, Flutter Firebase plugins, or RevenueCat billing dependencies mid-way through closed testing, re-run `bundletool dump manifest` before uploading your next `versionCode` to guarantee `AD_ID` did not silently reappear.
