The safest way to avoid ads.txt generation mistakes is to verify each field against the advertising platform, remove stale or duplicate records, and compare the live /ads.txt file with those verified records.
An ads.txt file can have clean punctuation and still be wrong if a publisher ID belongs to another account, the relationship is inaccurate, a legitimate seller is missing, or the file is published in the wrong location. Treat formatting, authorization, completeness, and deployment as separate checks.
The Ads Txt Generator can standardize the three- and four-field records you supply, but it validates syntax rather than permission. It cannot sign in to an ad account, confirm that a publisher ID belongs to you, prove a reseller is authorized, or discover every platform selling your inventory.

Use four gates to catch errors early
Use a four-gate review before treating a generated record as finished. A record should not advance merely because it fits the expected line format.
| Review gate | What to check | Pass condition |
|---|---|---|
| Source of truth | The origin of every domain, account ID, relationship, and authority ID | Each value matches current instructions from the relevant advertising platform |
| Field structure | The number, order, and separation of fields | Three required fields are present, with the optional fourth field used only when supplied |
| Meaning | Account control and the DIRECT or RESELLER designation | The relationship accurately describes who controls the listed seller account |
| Scope and deployment | The complete seller list and public file location | All authorized sellers are retained and the file will be available at the inventory root |
The generator can check domain form, relationship labels, separators, and exact duplicate formatted rows. It cannot decide whether a direct account really belongs to you, whether a reseller has permission, whether an authorized partner is missing, or whether deployment succeeded. Those checks still require a review against verified records.
Keep each field in its proper role
The IAB Tech Lab ads.txt 1.1 specification defines the record structure, while current instructions from each advertising platform supply the actual values. Keep those two sources separate instead of inferring an identifier or relationship from general ads.txt examples.
| Position | Required | Correct value | Frequent error |
|---|---|---|---|
| Advertising-system domain | Yes | The canonical domain of the advertising system where buyers connect, such as google.com | Using your website domain or pasting a full URL with a scheme, path, port, or credentials |
| Publisher account identifier | Yes | The exact seller or publisher ID assigned by that advertising system | Inventing an ID, changing its prefix, or converting it into another platform's format |
| Relationship | Yes | DIRECT or RESELLER, according to who controls the listed account | Selecting a familiar label without checking the actual account relationship |
| Certification authority ID | No | The exact value supplied for that advertising system's seller record | Reusing Google's published example with another exchange |
Enter the advertising-system domain as a bare host, with no https:// prefix, path, port, username, or password. The generator lowercases and validates this field instead of silently extracting a host from a pasted URL. For example, https://google.com/path is input to correct, not a domain that should be converted automatically.
Do not confuse the first field with the domain where the file is published. The first field identifies the advertising system, such as google.com. The public ads.txt file belongs on the root domain that owns the advertising inventory, which may be a completely different domain.
Copy the seller or publisher account identifier exactly as assigned. For Google seller accounts, official guidance uses a pub- prefix followed by the account digits. Other exchanges use different identifiers, so copy the value from the relevant platform instead of inventing or converting it. The test value pub-0000000000000000 contains placeholder zeros and is not a usable publisher account.
Choose DIRECT when you directly control the listed seller account and have a direct business relationship with the advertising system. Choose RESELLER when another entity controls that account and is authorized to resell the inventory. A relationship can be formatted correctly while remaining factually inaccurate, so check account control separately from syntax.
The certification authority ID is optional and identifies the advertising system within a certification authority. Google's published example includes f08c47fec0942fa0, but that value does not automatically apply to another exchange. Leave the fourth field blank unless the advertising platform provides the exact value for that seller record.
Generate and verify ads.txt step by step
- Make a source checklist. Open each authorized platform's own instructions and note the advertising-system domain, publisher account ID, relationship, and, only when supplied, certification authority ID. Keep those instructions available for the final comparison.
- Enter one verified record in Ads Txt Generator. Use a bare domain, the exact account identifier, DIRECT or RESELLER, and the optional fourth field only when the platform supplied it.
- Confirm the relationship from account control. Verify who owns or controls the seller account and whether another entity is reselling that inventory. Do not choose the relationship merely because it appears in an unrelated example.
- Add the record to the visible list. Repeat the process for every authorized account. If several advertising systems are authorized, include one verified record for each account. The generator supports up to 200 records, so do not paste an oversized batch into one run.
- Review every generated line. Remove duplicate or obsolete entries that remain in your review. The generator rejects exact duplicate formatted rows, but that protection cannot determine whether an entry has expired or lost authorization.
- Copy or download the completed file. Each seller occupies one comma-separated line, and the output ends with a newline. The finished text can be copied or downloaded locally without sending account details to the server.
- Back up and deploy the reviewed file. Save the previous ads.txt, publish the new file at the root-domain /ads.txt path, and open the public URL as plain text. Compare every public line with your source checklist before treating deployment as finished.
Check the generated text for scope errors
Formatting checks answer whether a line can be parsed. They do not answer whether the declaration is complete, current, or authorized. Review the entire file instead of inspecting only the record you have just added.
- Confirm that every line represents one seller and contains the advertising-system domain, exact publisher account ID, and relationship, followed by the optional certification authority ID only when required.
- Check that the output contains a bare, lowercase domain. Surrounding input spaces are trimmed, while commas or whitespace inside a field are rejected rather than silently incorporated into the record.
- Verify that the relationship label is supported and factually correct. An unsupported label is rejected, but a supported label can still describe the wrong arrangement.
- Match each account ID character-for-character with the platform instructions. Look for invented placeholders, changed prefixes, copied test values, and identifiers belonging to another account.
- Confirm that every authorized seller remains represented. Adding one platform must not silently displace another, and obsolete sellers should be removed according to current partner instructions.
The generator trims surrounding input, normalizes domain case, prevents exact duplicate rows, and ends the file with a newline. These controls reduce mechanical errors, but they do not replace account-level verification. Use the ads.txt format, fields, and publishing reference as a companion while checking the final values.
Publish the file where crawlers can read it
The generator ends with a local text file; it does not publish that file for you. Upload or serve the reviewed content as plain text at the root of the domain that owns the advertising inventory. For example.com, the expected public location is https://example.com/ads.txt. This publishing location is separate from the advertising-system domain entered in the first record field.
Publishing only under /files/ads.txt, embedding the records in an HTML page, or placing the file behind authentication does not create the same crawler-visible root resource. Check the actual public address rather than relying on a local preview, CMS draft, or successful upload message.
After deployment, open the public URL and confirm that it returns the plain-text file. Compare the public body with the reviewed output, then compare each line with the current platform instructions.
- The downloaded source file has been backed up before replacement.
- The public URL ends in /ads.txt on the domain that owns the inventory.
- The visible records match the intended seller list, including all valid existing sellers.
- Each domain, publisher ID, relationship, and optional authority ID matches its source instructions.
- Obsolete records have been removed deliberately rather than disappearing during an unstructured bulk edit.
Account or network changes may require future updates. When a partner adds an authorized seller, add the new verified record without deleting unrelated valid sellers, compare the changed file with the previous version, and repeat the public-root check after deployment.
For a deeper look, see When to Check AI Bot Robots.txt Instead of Manual Review.