Ads.txt Generator - Authorized Seller Line for AdSense
Generate one authorized-seller line for ads.txt from a domain, publisher ID, account type, and certification ID.
Invalid Publisher ID format (must start with pub-)
Your generated code will appear here...
Ads.txt generator
This tool builds one authorized-seller line for an ads.txt file: an ad network's domain, your account ID with that network, whether the relationship is direct or resold, and an optional certification ID. A real ads.txt file needs one line per authorized ad network, so the tool is typically run once per network and the resulting lines combined by hand. The finished line can be copied or downloaded as ads.txt.
How the line is built
The IAB Tech Lab published the ads.txt standard in 2017 so publishers could list, in plain text, which sellers are authorized to offer their ad inventory; buyers can then check a bid against that list before paying for it. Each line holds four comma-separated values: the ad system's domain, the publisher's account ID with that system, the relationship type, and an optional certification authority ID. This generator writes exactly that line from the Ad Network Domain, Publisher ID, Account Type, and Certification Authority ID fields. Leaving the domain field empty falls back to example.com as a placeholder. The Publisher ID is checked against the pub- prefix Google uses for AdSense and Ad Manager accounts; entering anything else marks the field invalid, though the line still generates. Account Type is either DIRECT, meaning the domain owner sells its own inventory straight to that ad system, or RESELLER, meaning the inventory reaches that ad system through an authorized intermediary. The Certification Authority ID is the TAG-ID some ad systems register with the Trustworthy Accountability Group; leaving it blank drops that value from the line entirely instead of leaving an empty slot. The goal is to stop domain spoofing, in which someone falsely claims to sell a publisher's inventory without permission.
Worked example
Take an entry with google.com as the domain, pub-7692169171701705 as the Publisher ID, DIRECT as the Account Type, and f08c47ddf11505de as the Certification Authority ID, the value Google publishes for its own Authorized Buyers marketplace. The generator joins all four values with comma-space separators into a single line, ready to paste into an existing ads.txt file or download as a new one.
Example output
google.com, pub-7692169171701705, DIRECT, f08c47ddf11505de