An ads.txt generator cannot discover or confirm your publisher ID; it can only build ads.txt from identifiers you supply.

A publisher ID is an account-level identifier assigned by an advertising platform, and its exact form can differ by platform. Finding it is a source-verification task rather than a formatting task. The Ads Txt Generator begins with records you provide. It assembles an Authorized Digital Sellers file, validates each row's structure, and produces text you can copy or download without sending the account details to a server.

can ads txt generator discover my publisher id
Can Ads Txt Generator Discover My Publisher ID?

Why publisher ID discovery is outside the generator

The generator does not sign into an advertising platform, query an account, or choose a network for you. It cannot confirm that a publisher ID belongs to you, prove that a reseller is permitted, or find every platform that sells your inventory. Those answers require current account records and a direct business relationship with the relevant system.

A successful syntax check is therefore not an authorization check. A valid-looking but unauthorized or incomplete file can still harm monetization, so verify each value before entering it and compare the deployed file with your source records afterward.

TaskWhat the generator doesWhat still needs verification
Find a publisher IDPerforms no account connection or discovery.Use the platform's seller setup instructions or verified account records.
Build a seller recordValidates the row structure, required fields, and relationship.Obtain every value from the correct advertising platform.
Protect against duplicate rowsPrevents exact duplicate formatted rows.Identify obsolete or unauthorized entries during review.
Confirm authorizationChecks syntax only.Confirm the account relationship through platform and business records.

Read the identifier from its authoritative source

The exact ID comes from the advertising platform's seller setup instructions or verified account records. For Google seller accounts, official guidance uses a pub- prefix followed by the account digits. Other exchanges use different identifier formats, so copy the platform's value rather than inventing, shortening, or converting it. The all-zero sample used in examples is a placeholder, not a usable publisher account.

The domain is a separate value. Field one is the canonical domain of the advertising system where buyers connect, not necessarily the website that serves the ads. The root domain that owns the inventory determines where the file must be hosted; the advertising system determines the domain written in the record.

FieldRequired?What to enterSource or restriction
Advertising system domainRequiredThe canonical domain where buyers connect, such as google.com; it may differ from your website.Use a bare host only, with no scheme, path, port, username, or password.
Seller or publisher account identifierRequiredThe exact account identifier assigned by that advertising system.Copy it from current platform instructions rather than inventing or converting it.
RelationshipRequiredDIRECT or RESELLER.Choose it from account control and the business relationship, not formatting preference.
Certification authority identifierOptionalThe exact value identifying the advertising system within a certification authority, when supplied for that seller record.Leave it blank if the platform does not provide an exact value for that record.

The generator trims surrounding input, normalizes domain case, and rejects commas or whitespace inside fields. It accepts only DIRECT and RESELLER as relationship values, prevents exact duplicate rows, supports up to 200 records, and ends the file with a newline. A pasted URL is not silently converted into its host, which prevents a malformed domain from being mistaken for an accepted value.

Use the ads.txt field and publishing reference for a second pass over field meanings. The formal structure is also available in the IAB Tech Lab ads.txt 1.1 specification.

Build and publish ads.txt from verified records

  1. Collect the source values. Open the Ads Txt Generator. From the platform's own instructions, copy the canonical advertising system domain, exact seller or publisher account identifier, relationship, and optional certification authority identifier. Enter a bare domain rather than a full URL, and leave the fourth field blank unless the platform supplies that exact value for the seller record.
  2. Add every authorized seller. Enter one platform-provided record and add it to the visible list, then repeat for every authorized seller account. If several advertising systems are involved, create one verified record for each account. Do not remove existing valid sellers merely to add a new one.
  3. Review the generated lines. Check every comma-separated record against the current instructions from its platform. Confirm the domain, account identifier, and relationship, then remove obsolete entries. The tool prevents exact duplicate rows, but only you can determine whether a record remains authorized.
  4. Copy or download the result. The finished text is newline-terminated and can be copied or downloaded without sending the account details to a server. Keep a backup of the previous ads.txt file and compare the change before deployment.
  5. Publish at the inventory root. Place the file as plain text at /ads.txt on the root domain that owns the inventory. For example.com, the expected public location is https://example.com/ads.txt. Publishing only under /files/ads.txt, inside an HTML page, or behind authentication does not create the same crawler-visible root resource.
  6. Compare the live file. Open the public URL as plain text and compare every line with your verified account records. Confirm that each authorized seller is present and obsolete sellers are absent. Account or network changes may require a later update.

Match the relationship to who controls the account

The relationship field is a statement about control and the business arrangement, not a formatting choice.

  • DIRECT: The site owner directly controls the account in the seller record and has a direct business relationship with the advertising system.
  • RESELLER: Another entity controls the listed account and is authorized to resell the inventory.

The optional fourth field identifies the advertising system within a certification authority. Google's published example includes f08c47fec0942fa0. Do not assume that identifier applies to another exchange; leave the field blank unless the advertising platform provides the exact value for that seller record.

Choosing DIRECT for an account controlled by a reseller, or RESELLER for a directly controlled account, can make the declaration inaccurate even when every character is formatted correctly. The generator validates syntax, not permission.

Check the deployed file, not only the generated copy

The generated text is not the final checkpoint. The deployed file is what buyers and crawlers can inspect, so open the public URL after publication and compare the text line by line with your platform records. That review can expose an incorrect relationship, a copied placeholder, or an account that changed after the file was built.

Treat the root location and the source details as deployment requirements:

  • Wrong path: A working download does not compensate for publishing ads.txt outside the root-level /ads.txt resource.
  • Full URL in the domain field: Enter the bare advertising system domain, not a value beginning with a scheme or containing a path.
  • Copied sample identifier: The all-zero publisher example is not a usable account, and one exchange's ID format cannot be applied automatically to another.
  • Incorrect relationship: Recheck who controls the listed account rather than choosing the label that appears most familiar.
  • Missing existing seller: Compare additions with the prior file so a new record does not cause an authorized seller to disappear.

Refresh records after account changes

Account and network changes may require future updates. When a seller or relationship changes, return to the platform's instructions, obtain the new exact record, rebuild the list, compare it with the previous file, and republish it at the root URL. The generator cannot discover a newly added platform or select the correct network on your behalf.

The practical answer is to use an ads.txt generator for assembly, syntax checks, duplicate protection, and a downloadable file while treating the advertising platform as the source of truth for the publisher ID and authorization.

For a deeper look, see After an AI Bot Robots.txt Check: What to Review.