How to use the ads.txt Generator
- Add a record for each ad network — pick a preset or enter the ad system domain manually.
- Enter your publisher account ID exactly as your ad network shows it (for AdSense:
pub-followed by 16 digits). - Choose DIRECT if you have the account yourself, RESELLER if a partner sells on your behalf.
- Download and upload
ads.txtto the root of your domain.
What is ads.txt?
ads.txt (Authorized Digital Sellers) is an IAB Tech Lab standard that lets website owners publicly declare which companies may sell their ad inventory. Advertisers’ platforms check the file before buying, which cuts off domain spoofing and fraudulent resellers. Google AdSense warns you in its dashboard when your ads.txt is missing or incomplete, and missing records can reduce your ad revenue.
Record format
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
- Ad system domain — the network’s canonical domain (google.com for AdSense and Ad Manager).
- Publisher account ID — your ID in that system.
- Relationship —
DIRECT(you control the account) orRESELLER(an intermediary sells your inventory). - Certification authority ID (optional) — the network’s TAG ID; Google’s is
f08c47fec0942fa0.
Variables
contact= gives a contact for the file; OWNERDOMAIN= and MANAGERDOMAIN= (ads.txt 1.1) identify the business that owns the site and any manager that handles its inventory.
Uploading and checking
The file must be at the root of the domain — https://example.com/ads.txt — and return HTTP 200 as plain text. Crawlers may take a few days to pick up changes. Mobile and CTV apps use the same format in an app-ads.txt file on the developer’s website.
Tools that pair well with the ads.txt Generator
- security.txt Generator — Fill in a few fields to generate a standards-compliant /.well-known/security.txt that tells researchers how to report security issues to you.
- humans.txt Generator — Create a humans.txt that credits the team, contributors and technology behind your website.
- Robots.txt Generator — Build a correct robots.txt in seconds: choose a preset, add rules per user-agent, block AI training crawlers and list your sitemaps — with live warnings for mistakes that could de-list your site.
- llms.txt Generator — Write an llms.txt file that gives AI assistants a curated, Markdown map of your site — project name, summary, key pages and optional extras — following the llmstxt.org proposal.
Frequently asked questions
Where do I find my AdSense publisher ID?
pub-1234567890123456.