Build an ads.txt or app-ads.txt file without hand-editing comma-separated lines. Add each ad seller with its domain, your publisher ID, DIRECT or RESELLER and its certification ID — presets fill these in for Google, Amazon, Magnite, PubMatic and others — and add variables like CONTACT or OWNERDOMAIN. Every line is validated as you type, duplicates are removed, and you can paste an existing file to edit it. It runs in your browser.
| Field | Example | Required |
|---|---|---|
| Ad system domain | google.com | Yes |
| Publisher account ID | pub-1234567890123456 | Yes |
| Relationship | DIRECT or RESELLER | Yes |
| Certification authority ID | f08c47fec0942fa0 | No |
At the root of your domain: https://example.com/ads.txt. For apps, app-ads.txt goes at the root of the developer website listed in your store entry.
DIRECT means you control the account named by the publisher ID. RESELLER means another company sells your inventory through its own account.
The ad system's TAG ID. It's optional, but buyers use it to verify the seller. The presets include it for common exchanges.
google.com, pub-XXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0 — with your own publisher ID from AdSense.
Yes. Paste it into the import box; comments are kept and any lines that can't be read are listed.
No. The file is built in your browser.
An ads.txt file, defined by the IAB Tech Lab, lists every company authorized to sell a site's ad inventory so buyers can reject spoofed supply; app-ads.txt is the same format for mobile and CTV apps, hosted on the developer's website. Each record is one line of comma-separated fields: the ad system's domain, the publisher's account ID on that system, the relationship — DIRECT when the publisher controls the account, RESELLER when an intermediary does — and an optional Trustworthy Accountability Group certification ID. The generator validates each record as it's typed: the domain must be a bare domain, the account ID can't contain commas, spaces or #, the relationship must be exactly DIRECT or RESELLER, and the certification ID must be alphanumeric. Presets fill in the domain and TAG ID for common exchanges. Duplicate records, compared case-insensitively on domain, account and relationship, are removed. Variables such as CONTACT, SUBDOMAIN, OWNERDOMAIN and MANAGERDOMAIN are appended in name=value form. An existing file can be pasted back in; comments are kept and unreadable lines are reported by number. Everything runs in the page.