app-ads.txt is a public text file, hosted on the developer website named in your store listing, that lists the companies allowed to sell ad space in your apps. Missing or malformed files are a common cause of reduced ad demand and confusing console warnings. This guide explains what the file does, how to write and host it, the mistakes to avoid, and how to check your status. It is written for publishers, including those with many apps on one domain.
What app-ads.txt is
In the file, a publisher lists the companies authorised to sell advertising space in its apps. IAB Tech Lab, the industry body behind the specification, describes it as an extension of the ads.txt standard used on websites, built for apps distributed through app stores. Advertisers and the platforms that buy on their behalf can fetch the file and check whether the seller offering an impression is on the publisher’s approved list.
In short: you publish a list of authorised sellers, and buyers use it to confirm they are buying from someone you approved.
Why it exists
Ad fraud often involves someone pretending to sell inventory they do not own, for instance by spoofing an app’s name. Without a way to verify who may sell what, buyers cannot easily tell a real app’s inventory from a fake. The file gives buyers a public, publisher-controlled source of truth. Apps that publish a correct file are generally easier for buyers to trust, which can help your inventory remain eligible for demand. The precise effect on revenue depends on the buyers and platforms involved, so avoid assuming a specific uplift.
How the system finds your file
The connection works like this:
- Your store listing contains a developer website address.
- A crawler takes the host from that address, removes a leading
www.orm., and looks for/app-ads.txtat the root of the domain. - The crawler reads the lines and records which sellers are authorised.
- When an ad request arrives from your app, the buyer checks the seller against what was recorded.
Because step one depends on the store listing, the website field must hold a real, working domain, and it must be the domain where you host the file. Google’s AdMob help names the fields it reads: the developer website in the contact details of your Google Play store settings, and the marketing URL of an App Store listing. AdMob’s crawler also checks up to one subdomain level: for support.help.example.com it tries help.example.com, then example.com.
Where the file lives
- It must be reachable at the root path of the website domain, named exactly
app-ads.txt, for examplehttps://your-domain.example/app-ads.txt. - It must be a plain text file. The ads.txt specification asks servers to send it with the
Content-Type: text/plainheader, not as an HTML page that happens to contain the text. - It should be reachable without login, scripts or a bot filter that blocks crawlers. Crawlers try HTTPS first, and AdMob checks both HTTPS and HTTP.
- Redirects have limits. The ads.txt specification allows any number of redirects that stay within the original root domain, such as HTTP to HTTPS, but only a single redirect to a different domain. AdMob says its crawler follows a redirect to a file on a
www.host, another subdomain or path, or a different domain. The safest setup is still a direct response with a success status at the root.
If you run many apps under one brand, list them all in the stores with the same developer website so the one file covers them. If different clients’ apps sit under your account, see the note on client separation in the portfolio checklist.
The line format
Each line describes one authorised seller relationship. It has comma-separated fields:
advertising-system-domain, account-id, relationship, certification-authority-id
A line for Google’s advertising systems looks like this:
google.com, pub-XXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0
Field by field:
- google.com is the domain of the advertising system.
- pub-XXXXXXXXXXXXXXXX stands for your own publisher ID. Replace the X characters with your real publisher ID, which AdMob shows under Settings; the example above is a placeholder, not an ID to copy.
- DIRECT means you hold the account yourself. The other allowed value, RESELLER, means the account belongs to a party who resells your inventory.
- f08c47fec0942fa0 is the certification authority ID in Google’s own sample line. The specification marks this fourth field as optional and names the Trustworthy Accountability Group (TAG) as a current certification authority. Keep it, because Google documents this exact value for its lines.
Other ad networks publish their own lines. Copy them from the network’s help page or dashboard, because the account IDs and sometimes the certification IDs differ. Do not guess a line, and never use somebody else’s ID.
Anything after a # on a line is a comment. Blank lines are ignored. The specification also defines variables, such as CONTACT and, since version 1.1, OWNERDOMAIN and MANAGERDOMAIN. Add them only when you know what they declare for your business.
Mediation
If you run mediation, add the lines for every network that can bid on or serve your impressions, not only your primary one. The mediation provider and each network usually document the lines to add. Missing one of them means that network’s demand may be treated as unauthorised.
Common mistakes
- Wrong location. Putting the file in a subfolder or on the wrong domain, or only on the
www.host while the bare domain neither serves nor redirects to it. Crawlers dropwww.and ask the bare domain. - The store listing points elsewhere. The website field holds a social page or a link-in-bio service, so crawlers never reach your domain.
- Typos in the publisher ID. One wrong character breaks the match. Copy from the console.
- Using the placeholder. Leaving
pub-XXXXXXXXXXXXXXXXor similar in the live file. - HTML instead of text. A content management system wrapping the file in a page template.
- Blocked crawlers. A firewall, bot protection, or
robots.txtrule preventing access. - Wrong relationship. Marking an account as RESELLER when it is DIRECT, or the reverse.
- Missing networks. Adding Google’s line but forgetting other mediated networks.
- Stale lines. Leaving lines for networks you no longer use. Remove them to keep the list accurate.
- Fancy formatting. Smart quotes, stray characters, or unusual encodings copied from a document. Keep to simple text.
How long crawlers take
Crawlers do not fetch your file the moment you upload it. For AdMob, Google’s help says crawling and verification can take up to 24 hours, and a change to your developer website or Google Play listing can take up to 24 hours to be detected; its developer guide says to wait at least 24 hours. Other platforms run their own crawlers on their own schedules, so check their help centres. Make changes well before launches, and avoid repeated edits while you wait.
Checking your status in AdMob
The AdMob console reports on app-ads.txt for apps linked to your account. Go to Apps, then View all apps, then the app-ads.txt tab, and expand an app’s row for details and the Check for updates option. The same area shows the personalised line to copy. If it flags a problem:
- Open the file in a browser and confirm it loads as plain text at the root of the domain you gave the store.
- Compare your line with the one shown in the console character by character.
- Confirm the store listing’s website field matches the host.
- Wait for the next crawl, then check again.
Other ad platforms offer comparable checks. Use theirs for their lines.
Maintaining the file
Treat the file as part of your configuration. Store it in version control, review it when you add or drop an ad network, and include it in your regular site checks. Pair it with a stable privacy policy URL on the same domain, since a credible developer site supports both. If your app changes how it handles ad identifiers, update your store disclosures as described in the Data safety guide.
For deadlines and technical shifts that can affect your apps, see our article on the Android 16 target API deadline, and find related material in the publishers hub.
