Use each advertising platform's own instructions to add every authorized seller account for inventory you control, then publish the finished ads.txt file at the inventory-owning root domain.

The decision is about authorization, not formatting. ads.txt is an inventory owner's public declaration of the seller accounts authorized to sell that inventory; it is not an ad tag or a general SEO ranking signal. The IAB Tech Lab ads.txt 1.1 standard defines the mechanism. A file can pass syntax checks and still be inaccurate if it names the wrong account or relationship.

Begin with the current setup instructions from every platform involved. Do not fill the gap with sample IDs or rows copied from another exchange; an unauthorized or incomplete declaration can harm monetization.

how do i decide whether i need to generate ads txt
How to Decide If You Need to Generate ads.txt

Questions that settle the ads.txt decision

Work through these checks before opening an ads.txt generator:

  • Do you control the inventory-owning domain? Confirm which root domain owns the property, because that is where the public file must be hosted.
  • Has a platform or reseller supplied a seller record? A legitimate record needs an advertising-system domain, publisher account identifier, and relationship.
  • Do current instructions require publication? Some partners supply records for you to publish, while a managed platform may handle its own ads.txt service.
  • Is an existing file missing or outdated? Adding a newly authorized seller is a reason to update the file, not to replace every valid seller.
  • Can you deploy plain text at the root? The file must be publicly accessible as /ads.txt rather than buried in another directory or hidden behind authentication.

Treat a platform's explicit instruction as decisive. If it says ads.txt is handled for its own service and you have no other authorized sellers, do not create a redundant file. If it gives you a seller row, follow that setup guidance. For a Google AdSense-specific source check, see how to get ads.txt from Google AdSense and validate it.

Site ownership alone is not a trigger. The trigger is a seller relationship that must be declared. If you cannot identify a legitimate record from current instructions, pause rather than publishing a sample file.

Compare your publishing situation

Your situation determines whether a separate file is necessary and what it should contain.

Situation What to do Reason
A managed platform handles its own ads.txt service, and you have no other sellers Follow the platform guidance and avoid adding a redundant file unless instructed The platform has already addressed its own service relationship
A reseller controls an account and provides authorized seller details Generate and publish the supplied records The reseller account must be declared with the correct relationship
Several demand partners provide seller records Add one row for every authorized account Each advertising system and publisher ID is a separate declaration
No platform or reseller provides a seller record Do not publish guessed, empty, or placeholder rows There is no verified account to declare
An existing valid file gains a newly authorized account Update the file without deleting valid existing sellers Adding one relationship should not remove other active declarations

This comparison separates a genuine requirement from a file created only because a publishing checklist mentions ads.txt. The relevant question is not “Does my site show ads?” but “Does a current partner relationship require a seller declaration that I can verify?”

Read each field before deciding

A valid row contains three required values and one optional value. Each value must come from the relevant advertising platform's own instructions.

Field Requirement What it represents
Advertising system domain Required The canonical domain where advertising buyers connect, such as google.com. It is not necessarily your website domain.
Publisher account identifier Required The exact seller or publisher ID assigned by that advertising system. Its format varies by platform, so copy it without converting or inventing it.
Relationship Required DIRECT when you directly control the listed account and have a direct business relationship with the system; RESELLER when another entity controls the account and is authorized to resell the inventory.
Certification authority identifier Optional An identifier supplied by the platform for that seller record. Leave it blank unless you have the exact value.

The relationship follows account control, not simply website ownership. Selecting RESELLER for an account you directly control, or DIRECT for an account controlled by another authorized entity, makes the declaration inaccurate even when every character is formatted correctly.

Do not reuse a certification identifier from one exchange on another system's records. Likewise, do not turn an example account number into a real declaration. The zeros in a sample Google-style ID are placeholders and cannot identify your seller account.

Turn verified records into an ads.txt file

  1. Collect the authorized records. Gather one record per seller from each platform's current instructions. In the Ads Txt Generator, add one verified record at a time rather than supplying invented examples.
  2. Enter the advertising-system domain correctly. Use a bare domain such as google.com without https://, a path, port, username, or password. Enter your own website domain only if it is itself the canonical advertising-system domain. The generator lowercases and validates the domain instead of silently extracting a host from a pasted URL.
  3. Add the exact account details. Copy the publisher identifier exactly as assigned by the platform. Select DIRECT or RESELLER according to who controls that account, and include the optional certification authority identifier only when the platform provides it for that record.
  4. Repeat for every authorized seller. Review every visible line and remove obsolete entries before publication. The generator rejects exact duplicate formatted rows and supports up to 200 records; a larger authorized set exceeds this tool's stated limit and should not be treated as a complete one-run output.
  5. Copy or download the finished file. The output is newline-terminated and can be saved locally without sending your account details to the server.
  6. Publish and compare the public result. Back up the prior file, publish the new file as plain text at /ads.txt on the inventory-owning root domain, open the public URL, and compare each line with your verified source instructions.

Separate formatting from authorization

The generator answers a formatting question, but it cannot make the business decision for you.

  • It validates required comma-free fields, the allowed DIRECT or RESELLER relationship, domain format, and the optional certification field.
  • It cannot sign in to an advertising account or confirm that a publisher ID belongs to you.
  • It cannot prove that a reseller is permitted to sell your inventory.
  • It cannot discover every platform that may sell your inventory or whether a particular seller should be declared.

Those checks remain with you and the partner supplying the record. Syntax validation can prevent malformed rows, but a well-formed file remains capable of causing monetization problems when its authorization or relationship information is wrong.

Review the file when seller relationships change

Your need for ads.txt can change as accounts, networks, and sales arrangements change.

  • Recheck partner instructions whenever an account or network relationship changes.
  • Add a newly authorized seller without removing sellers that remain valid.
  • Keep a backup of the previous file and review the difference before replacing it.
  • Open the public URL after deployment and confirm that it returns plain text at the root path.

The final decision rule is straightforward: publish ads.txt when every row maps to a current platform instruction and an exact authorized account. If that mapping cannot be completed, request the missing seller details instead of generating a placeholder file. Once you have verified records, the generator can format the data, but it cannot replace account-level verification.

If you're weighing options, What Details Matter in an llms.txt File Example covers this in detail.