ads.txt Format and Common Errors
The ads.txt 1.1 format explained: record fields, variables such as OWNERDOMAIN and MANAGERDOMAIN, common errors and what app-ads.txt adds.
ads.txt is a text file on a publisher’s domain that lists who may sell its inventory. Each line names an advertising system, the publisher’s account ID there, and whether the relationship is DIRECT or RESELLER. The current version is 1.1.
The record format
# domain, account ID, relationship, certification authority ID
google.com, pub-1234567890, DIRECT, f08c47fec0942fa0
example-exchange.com, 9876, RESELLER- Field 1: the canonical domain of the advertising system. It must be a valid DNS name.
- Field 2: the account ID, which must equal the ID used in transactions, typically
publisher.idin OpenRTB. - Field 3:
DIRECTorRESELLER, in upper or lower case. - Field 4: optional certification authority ID, such as a TAG ID. It may be deprecated in a future version.
# starts a comment. Extension data must come after a ; separator, so a fifth comma-separated field isn’t valid.
Variables
| Variable | Use |
|---|---|
CONTACT | A human contact: email, phone or link. |
SUBDOMAIN | Points to a subdomain with its own ads.txt. Only root domains should use it. |
INVENTORYPARTNERDOMAIN | A partner allowed to monetize the content. Crawlers follow it one hop only. |
OWNERDOMAIN | The business that owns the site or app. If there is more than one, only the first is used. |
MANAGERDOMAIN | The main monetization partner, with an optional country. Only one per country. |
Common errors
- Wrong content type: the file must be served as
text/plain, and anything else is an error. An HTML page at/ads.txtis a common cause. - Redirects off the domain: redirects may stay within the root domain, but only one hop outside it is allowed. If that third party redirects again, it is an error.
- A 404: crawlers assume there are no declarations, so nobody counts as unauthorized.
- An empty file: this no longer means “no sellers”. Use
placeholder.example.com, placeholder, DIRECT, placeholderinstead. - Spaces in a field: fields must not contain tabs, commas or whitespace.
Crawlers cache a file for 7 days by default if no expiry is set, so changes may take time to appear.
What app-ads.txt adds
app-ads.txt uses the same format for apps. Crawlers find it through the developer website listed in the app store, then look for /app-ads.txt on that domain. SUBDOMAIN is ignored. SSPs must pass the store URL in app.storeurl.
Try it
Check any domain with the ads.txt Validator, which also cross-checks lines against sellers.json. The next guide covers how these files work together.
Try it
Sources
Last checked 2026-11-07.