The right approach is to generate ads.txt only from platform-provided seller records, validate every field and relationship, and publish the reviewed file at the root-domain /ads.txt path.
An ads.txt file is a set of comma-separated seller declarations. Its quality depends less on which software types the rows than on whether each record comes from current platform instructions and represents an account you are authorized to declare.

Choose by source quality and verification
Choose a method based on source quality, formatting consistency, and your ability to audit the deployed file. A method is suitable only if it preserves the platform's exact identifier and relationship values while still producing a crawler-visible plain-text resource.
| Approach | Best fit | Main advantage | Main limitation |
|---|---|---|---|
| Type each record manually | One or two records you can verify character by character | Immediate control over every character | Transcription, spacing, relationship, and omission errors remain entirely manual |
| Maintain a plain-text file | A stable record set maintained by someone comfortable editing text files | Exact control over row order and file content | Syntax, duplicate detection, and authorization review depend on your own process |
| Use the Ads Txt Generator | Publishers who want structured checks before deployment | Field validation, domain normalization, exact-duplicate rejection, and newline-terminated output | Authorization is not verified, and one run supports up to 200 records |
For most publishers, the strongest general approach is generator-assisted but source-verified: use the generator for formatting and output, then compare every row with official account records. Manual entry can work for a very small list, but convenience alone is a poor selection criterion. The important distinction is whether you can trace every published line to an authorized source.
Understand the four fields
Start with the advertising platform's instructions, not with a generic seller ID or a template found elsewhere.
- Advertising system domain: This is the canonical domain where buyers connect, not necessarily the website that owns the inventory. Enter a bare host such as google.com without a protocol, path, port, username, or password. The generator lowercases and validates the domain instead of silently extracting a host from a pasted URL.
- Seller or publisher account identifier: Copy the exact identifier assigned by that platform. Google seller accounts commonly use a pub- prefix followed by account digits, while other exchanges use different formats. Never invent, shorten, or convert an identifier.
- Relationship: DIRECT means you control the listed account and have a direct business relationship with the advertising system. RESELLER means another entity controls the listed account and is authorized to resell the inventory. Selecting the wrong value can make an otherwise well-formatted declaration inaccurate.
- Certification authority identifier: This fourth field is optional. Use it only when the platform supplies the exact value for that seller record. Do not assume that a certification ID shown for one exchange applies to another.
The first three fields are required, the authority identifier is optional, and each seller becomes one comma-separated line. The generator trims surrounding input and rejects commas or internal whitespace inside fields.
Build and publish the file
- List the authorized systems. Identify each advertising system that sells your inventory. If several systems are authorized, plan one verified record for each relevant account rather than assuming one seller identifier covers them all.
- Open the platform instructions. Copy the advertising-system domain, publisher account identifier, relationship, and optional certification authority identifier exactly as supplied.
- Enter one record in the generator. Use a bare domain, the platform-assigned account identifier, DIRECT or RESELLER, and an authority identifier only when the source provides one for that exchange.
- Add the visible record and repeat. Continue for every authorized seller. Keep each input within the 200-record limit; a larger source list cannot be processed as one oversized run.
- Review every generated line. Compare it with the source instructions. Exact duplicate rows are rejected automatically, but obsolete entries and incorrectly copied relationship values still require review.
- Copy or download the file. The completed output is newline-terminated and ready for deployment. Before replacing a live file, keep a backup of the previous version and preserve existing valid sellers when adding a new one.
- Publish at the root path. Host the file as plain text at /ads.txt on the root domain that owns the inventory. A copy stored only at /files/ads.txt, inside an HTML page, or behind authentication does not create the required root resource.
- Compare the public file. Open the public /ads.txt URL, confirm that it displays plain text, and compare each visible line with your verified account records. Review the deployment change as well as the file content.
Account or network changes may require future updates, so keep the downloaded file and the records used to create it together for easier review.
Separate syntax from authorization
A clean generated file proves formatting, not permission. The generator can reject malformed domains, unsupported relationships, internal commas or whitespace, and exact duplicate rows. 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.
Account details are not sent to the server: the finished text can be copied or downloaded locally. That supports a controlled workflow, but the authorization decision still comes from current platform records.
- Review every DIRECT declaration against the account you control and your direct business relationship with the system.
- Review every RESELLER declaration against the reseller's authority and the account it controls.
- Confirm that any certification authority identifier comes from the relevant platform rather than carrying one exchange's value to another.
- Treat a syntactically valid but unauthorized or incomplete file as a risk because it can still harm monetization.
For the underlying record structure, compare the fields with IAB Tech Lab's ads.txt 1.1 specification. For deployment review, follow a focused how to check the result after generating ads.txt process that compares the local output with the public file.
Keep the declaration current
Seller relationships and account structures can change, so treat ads.txt as a maintained declaration rather than a one-time download.
- Keep every existing valid seller when adding a newly authorized system or account.
- Update the file when an account, ownership arrangement, advertising network, or reseller permission changes.
- Back up the prior file and compare the old and new contents before deployment.
- Check the public URL again after each update and remove records that are no longer appropriate.
Use one verified row for each authorized seller account. The generator protects the format, but only current account instructions can tell you which records belong in the file.
Apply a practical selection rule
Automate formatting only after securing authoritative inputs, and keep a human verification loop through deployment.
- Choose manual entry for one or two records only when you can inspect every character and account relationship.
- Choose the generator-assisted workflow for multiple systems, mixed identifier formats, or a stronger need for formatting consistency.
- Use the same publication and verification process in either case: source each value, retain valid sellers, publish at the root path, and inspect the public result.
- Never infer a missing publisher ID, authority identifier, platform relationship, or reseller permission from the formatting of another record.
For a deeper look, see AI Crawler Robots.txt: Why Allow Beats Disallow.