ads.txt is a plain-text file that website publishers place at their domain root to declare which advertising systems and seller accounts are authorized to sell their ad inventory.
The name stands for Authorized Digital Sellers. The format is defined in the IAB Tech Lab's ads.txt 1.1 standard. Its purpose is transparency: a publisher lists approved sellers, and buying systems can compare that declaration with the seller information presented to them. Listing a seller in the file does not itself authorize that seller; it records authorization that has already been granted by the relevant platform or business partner.
An ads.txt file is therefore not a list of advertising networks to test. It is a declaration built from verified seller records supplied through each advertising platform's account or setup instructions.
What the ads.txt declaration controls
ads.txt sits at the boundary between a publisher's inventory and the sellers authorized to offer that inventory. Each line identifies a seller account associated with a particular advertising system. This gives buyers and publishers a shared record they can use to detect a seller that has not been declared by the publisher.
The file does not create ad campaigns, select demand sources, configure ad tags, or manage bidding. It also serves a different purpose from robots.txt: robots.txt contains crawler instructions, while ads.txt contains seller declarations. Create ads.txt when an advertising platform provides you with seller information or its setup instructions require an Authorized Digital Sellers file.
If several advertising systems sell your inventory, each verified account may require its own record. A single line is not a universal approval for every service connected to the account.
How each ads.txt record is built
Each authorized seller occupies one comma-separated line. The first three fields identify the advertising system, its assigned account, and the type of seller relationship. A fourth certification field is available when the platform supplies it.
| Field | Required | What to enter |
|---|---|---|
| Advertising system domain | Yes | The canonical domain of the advertising system where buyers connect, not your website domain. |
| Publisher account ID | Yes | The exact seller or publisher account identifier assigned by that advertising system. |
| Relationship | Yes | DIRECT or RESELLER, according to the platform's instructions. |
| Certification authority ID | No | The exact certification authority identifier supplied for that seller record, if applicable. |
The advertising-system domain should be a bare hostname such as google.com. Do not paste a complete URL containing https://, a path, port number, username, or password. The Ads Txt Generator validates the domain as a host and normalizes its case rather than silently converting a pasted URL into a different value.
The account identifier is platform-specific. Google seller accounts use a pub- prefix followed by the account digits, while other exchanges can use different identifier formats. Copy the complete value from the platform rather than converting it, shortening it, or constructing one from a visible account name.
The optional fourth field identifies the advertising system within a certification authority. Its value is not portable between exchanges. Leave it blank unless the instructions for that particular seller record provide the exact identifier. A record can therefore contain either three or four fields.
Choosing between DIRECT and RESELLER
The relationship field describes who controls the listed seller account and how the inventory is authorized for sale.
| Relationship | Meaning | Use it when |
|---|---|---|
| DIRECT | The site owner controls the listed seller account and has a direct business relationship with the advertising system. | The platform's seller record identifies you or your business as the direct account holder. |
| RESELLER | Another authorized entity controls the listed account and is authorized to resell the inventory. | The platform's instructions explicitly identify an intermediary or reseller as the account controller. |
Choose the relationship based on the platform's record, not on assumptions about who manages the website. Selecting the wrong value can make the declaration inaccurate even when every character has the correct format. If your records come from Google AdWords, How to Authorize Google AdWords Sellers in ads.txt provides a focused companion for that platform-specific case.
Why valid syntax does not prove authorization
A formatter can check that an ads.txt record has the expected structure. It cannot establish the truth of the business information inside that record. The Ads Txt Generator validates syntax, but it cannot sign into an advertising account, confirm that a publisher ID belongs to you, prove that a reseller is permitted, or discover every platform selling your inventory.
This limitation matters because a syntactically valid but unauthorized or incomplete file can still harm monetization. A missing seller may not receive the declaration it requires, while an obsolete or incorrectly characterized record can misrepresent the current arrangement. Treat the instructions supplied by each platform as the source of truth and use the generator to assemble those confirmed details.
The tool also cannot select a network for you or prefill a real publisher ID. If the account value is missing, look it up in the relevant advertising account or official setup instructions rather than inventing a plausible identifier.
Build, publish, and verify an ads.txt file
For the formatting step, the Ads Txt Generator creates a standards-shaped file from explicit authorized-seller details. It offers strict field validation, duplicate protection, and a downloadable result. The finished text can be copied or downloaded without sending account details to the server. Its record limit is 200, so the complete authorized-seller list must fit within that boundary for this workflow to produce the entire file in one run.
- Collect one verified platform record. Open the advertising platform's own account or setup instructions. Copy the advertising-system domain, publisher account ID, DIRECT or RESELLER relationship, and optional certification authority ID. Enter the domain without a scheme or path, and preserve the account identifier exactly as supplied.
- Add every authorized seller. Enter one platform-provided record, select its relationship, and add it to the visible list. Repeat the process for each authorized seller account. Include systems that have provided you with a seller record, but do not invent entries for platforms you have not verified.
- Review every generated line. Compare each row with the current platform instructions. The generator trims surrounding input, normalizes domain case, rejects commas or whitespace inside fields, restricts relationships to DIRECT or RESELLER, and prevents exact duplicate formatted rows. It cannot identify an obsolete or unauthorized record, so remove stale entries during this review.
- Copy or download the completed text. The output ends with a newline and is ready to save locally. Keep a backup of the previous file before replacing it. When adding a new seller, preserve existing valid records instead of removing them merely because the list has changed.
- Deploy and compare the public file. Publish the text as /ads.txt on the root domain that owns the inventory. Open the public URL and compare every published line with your verified platform records and the downloaded file.
Deploy the file where buyers can inspect it
The expected public location for example.com is https://example.com/ads.txt. Place the file on the root domain that owns the inventory and make sure it is returned as plain text. Publishing it only under /files/ads.txt, embedding the records in an HTML page, or placing them behind authentication does not create the required crawler-visible root resource.
After deployment, open the public address yourself and inspect it as plain text. Confirm that the response contains the intended records, that no old seller remains, and that every line matches the source instructions. With multiple advertising systems, check that each authorized account has a verified record. Account or network changes may require later updates, so revisit the file whenever a seller relationship, account identifier, or platform setup changes.
A reliable ads.txt file is therefore not merely one that passes a formatter. It is a current, sourced declaration that has been placed at the correct public URL and checked again after publication.
If you're weighing options, Before You Check AI Bot Robots.txt: 7 Key Facts covers this in detail.