ads.txt Generator

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.

Record fields

FieldExampleRequired
Ad system domaingoogle.comYes
Publisher account IDpub-1234567890123456Yes
RelationshipDIRECT or RESELLERYes
Certification authority IDf08c47fec0942fa0No

When to use it

  1. Set up ads.txt when joining AdSense or a header-bidding partner.
  2. Create app-ads.txt for an app on Google Play or the App Store.
  3. Clean up a long ads.txt with duplicates and typos.
  4. Add OWNERDOMAIN and MANAGERDOMAIN for ads.txt 1.1.

How to Use

  1. Choose ads.txt or app-ads.txt.
  2. Add a line for each seller, using a preset or entering the domain, publisher ID, relationship and certification ID.
  3. Add variables such as CONTACT if you need them.
  4. Copy or download the file and upload it to your site's root.

Features

  1. ads.txt and app-ads.txt
  2. Presets for common exchanges
  3. Per-line validation
  4. Duplicate removal
  5. CONTACT, SUBDOMAIN, OWNERDOMAIN and MANAGERDOMAIN variables
  6. Import and edit an existing file
  7. 100% client-side

FAQs

Where do I put ads.txt?

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.

What's the difference between DIRECT and RESELLER?

DIRECT means you control the account named by the publisher ID. RESELLER means another company sells your inventory through its own account.

What is the certification authority ID?

The ad system's TAG ID. It's optional, but buyers use it to verify the seller. The presets include it for common exchanges.

What is the Google AdSense line?

google.com, pub-XXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0 — with your own publisher ID from AdSense.

Can I edit my existing file?

Yes. Paste it into the import box; comments are kept and any lines that can't be read are listed.

Is my data uploaded?

No. The file is built in your browser.

Technical Details

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.

SEO Tools

SEO Tools

  • llms.txt Generator
  • Redirect Chain Planner
  • Slug Generator
  • UTM Builder
  • Open Graph Generator
  • Schema Markup Generator
  • Meta Tag Generator
  • Sitemap Generator