# AdMob app-ads.txt & Android AD_ID Manifest Generator

> Generate a compliant IAB `app-ads.txt` record for Google AdMob, validate Android 13+ `AD_ID` manifest permission rules (including Families Policy `tools:node="remove"` overrides), and preview test ad unit IDs safe for 14-day closed testing.

- **Interactive Tool URL**: https://gootester.com/tools/app-ads-txt-admob-validator

## How to Use
1. **Enter your AdMob Publisher ID (`pub-xxxxxxxxxxxxxxxx`) and target audience policy**: Provide your 16-digit AdMob publisher identifier and specify whether your app targets Adults/General audiences (`13+`) or Children / Google Play Families Policy.
2. **Generate your exact IAB `app-ads.txt` line and root-domain hosting path**: Copy `google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0` and verify the exact root domain URL that must be entered into `Play Console -> Store settings -> Website`.
3. **Copy the matching `AndroidManifest.xml` `AD_ID` declaration (or Families removal rule)**: Get either the standard `com.google.android.gms.permission.AD_ID` snippet for general apps or the `tools:node="remove"` + `TAG_FOR_CHILD_DIRECTED_TREATMENT` configuration mandatory for Families apps.
4. **Switch Closed Testing builds to official Google Demo Ad Unit IDs or Test Device IDs**: Copy Google's official Android test ad unit IDs (Banner, Interstitial, Rewarded, App Open) so 12–25 human closed testers never trigger AdMob invalid-activity ad-serving limits before Production launch.

## Why Serving Live AdMob Production Units to Closed Testers Risks Account Limits

One of the costliest mistakes an indie developer can make during a 14-day closed test is shipping live production AdMob ad units (`ca-app-pub-xxxx/yyyy`) to a tiny cohort of 12 to 25 human testers who repeatedly open, navigate, and stress-test every screen of a pre-launch app. AdMob's automated Invalid Traffic (`IVT`) systems monitor impression-to-user concentration, rapid repeated screen loads, and pre-production traffic spikes — routinely slapping brand-new AdMob accounts with 30-day 'Ad serving has been limited' holds right before public launch.
Google's official AdMob developer policy explicitly prohibits clicking or generating artificial impressions on live ads during development and pre-launch QA. During your 14-day closed testing window, configure a `closedTesting` build flavor or runtime flag that substitutes Google's official demo ad unit IDs (such as `ca-app-pub-3940256099942544/6300978111` for banners) or initializes `RequestConfiguration.Builder().setTestDeviceIds(...)`.
Using official Google test ad units verifies full layout rendering, safe-area inset spacing, and reward callbacks across both human closed testers and GOOtester's separate physical-device ARM64 ADB QA passes with zero risk to your AdMob standing.

## Resolving `AD_ID` Manifest vs. App Content Mismatches on Android 13+ (API 33+)

Apps targeting Android 13 (`API 33`) or higher that access the Google Advertising ID (`AAID`) must both include `<uses-permission android:name="com.google.android.gms.permission.AD_ID" />` in their merged `AndroidManifest.xml` AND answer `Yes` inside `Play Console -> App content -> Advertising ID`. Notice that Google Mobile Ads SDK (`play-services-ads`) and `firebase-analytics` automatically inject `AD_ID` via Gradle manifest merging!
Two opposite failure modes block releases every day. First, developers using Firebase Analytics without ads answer `No` on the Play Console Advertising ID form, causing an instant upload block because `AD_ID` exists inside their merged `.aab` manifest. Second, developers targeting children under 13 (Google Play Families Policy) forget that children's apps are strictly **prohibited** from transmitting `AD_ID` — requiring `<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" />` plus child-directed AdMob request flags.
This tool generates the exact manifest XML and App Content checklist for whichever audience tier your app targets, eliminating trial-and-error `.aab` rebuilds.

## How AdMob Crawler Resolves `app-ads.txt` Through Your Play Store Listing URL

AdMob does not ask you to type your `app-ads.txt` URL into AdMob directly; instead, AdMob's crawler reads the **Developer Website** field published on your Google Play Store listing (`Store settings -> Store listing contact details -> Website`), extracts the registered eTLD+1 root domain according to the IAB Tech Lab specification, and requests `https://<root-domain>/app-ads.txt`.
If your Play Store listing Website field is blank, points to a social media profile, or points to `https://sub.example.com/myapp` without hosting `app-ads.txt` on `https://example.com/app-ads.txt` (or suitable subdomain crawl chain), AdMob cannot verify inventory ownership and throttles programmatic demand.

## FAQs
### Can AdMob verify `app-ads.txt` while my app is still in 14-day Closed Testing?
AdMob's `app-ads.txt` crawler discovers your developer website from your public Google Play Store listing once your app becomes publicly visible on Google Play Production (typically within 24 to 72 hours after public launch). However, deploying `https://example.com/app-ads.txt` and setting your Store Settings website URL during Closed Testing ensures Day-1 monetization readiness the moment Production rolls out.

### Where do I host `app-ads.txt` if I don't have a custom marketing website yet?
You can host a lightweight static site on Cloudflare Pages, Firebase Hosting, or GitHub Pages (`<username>.github.io/app-ads.txt`) at zero cost, provided the root domain allows direct root-level `GET /app-ads.txt` requests and matches your Play Store developer website URL.

### Why does AdMob show zero fill rate when I test my Closed Testing build?
Brand-new apps not yet live in Production often experience zero or minimal live ad fill until AdMob completes app-readiness review. Using Google's official demo ad unit IDs (`ca-app-pub-3940256099942544/...`) guarantees 100% deterministic fill during Closed Testing while protecting your account from invalid-traffic flags.
