If you run ads in your apps and your AdMob earnings look weaker than they should, the cause is sometimes a tiny text file you have never opened: app-ads.txt. It takes a few minutes to set up. The trickier part is doing it right when you have more than one Google Play Console account or more than one AdMob account.
Part 1: What app-ads.txt is for
app-ads.txt is a plain text file that lists who is allowed to sell ad space in your apps. Advertisers and ad platforms read it to confirm that an ad request really comes from an authorised seller, which cuts down on fraud. Apps without it can see lower fill rates and weaker demand, because buyers prefer inventory they can verify. Google explains the standard in its AdMob help page on app-ads.txt, and the specification itself comes from the IAB Tech Lab.
Part 2: Where the file must live
It must be served at the root of your developer website, for example https://yourdomain.com/app-ads.txt, as plain text, with no login and no redirect chain. Crawlers find that website from the "developer website" field on your Google Play listing, so the domain in the listing and the domain hosting the file must match.
Part 3: The format of a line
Each line names an ad system, your publisher ID there, the relationship, and for Google a certification ID:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0Replace the numbers with your own publisher ID, which you will find in your AdMob account settings. The last value is Google's fixed certification ID.
Part 4: Several Play Console and AdMob accounts
- List every publisher ID: if you have more than one AdMob account, put each publisher ID on its own line in the same file.
- Use one file per domain: one file serves all your apps on that domain, so you do not need a separate file per Play Console account.
- Point every listing to the same site: in each Play Console account, set the developer website to the domain hosting the file.
- Add partners exactly as told: for every other ad network or mediation partner you use, copy the line as that partner provides it. Remove lines for networks you no longer use.
Part 5: Checking that it works
Open the URL in a private window and confirm that you see plain text. Then check AdMob's app-ads.txt report for each app. Verification is not instant: allow some time after the first crawl, and re-check after you change the developer website on the listing.
Part 6: Mistakes to avoid
| Mistake | What happens |
|---|---|
| File is in a subfolder | The crawler never finds it |
| Saved as .txt.txt | Not found |
| Listing points to a different domain | The file is never read |
| Pub ID from the wrong account | That account's ads are not authorised |
| Moved domains and forgot to update the listing | Verification fails |
Frequently asked questions
Do I need app-ads.txt if I use AdMob only?
It is strongly recommended. Without it, buyers may hesitate to bid on unverified inventory.
How long does verification take?
It varies, so give it some time and check the AdMob report rather than refreshing constantly.
Can I use a subdomain?
Crawlers look at the root domain of your developer website, so use the root.
What if I have no website?
You need a developer website for the file to be read. A simple site is enough.
How long until AdMob notices my changes?
Google says to allow up to 24 hours after you add or change the developer website on your listing. Crawling and verification of the file itself can take longer.
What goes wrong when accounts get mixed up?
If one app listing points to a website whose file lists only the publisher ID of a different account, the first account can show a warning. List every publisher ID you use.
Official and outside resources:
Related reading
- AdMob for beginners: how to earn from ads without risking your account: the basics of running ads safely
- What every Android app privacy policy must include: what to say about ads and the advertising ID
- How to publish your first Android app on Google Play: where the developer website field lives
Set it up once, keep it tidy when you add or drop ad networks, and it quietly does its job.