Skip to content

ads.txt Generator

Write a valid ads.txt so your ad inventory is not spoofed.

exchange domain | your publisher ID | DIRECT or RESELLER | TAG ID. The TAG ID is optional but recommended.

Add a network

ads.txt

Your generated code appears here.

Quick Tool Overview

The ads.txt Generator writes authorised digital seller records in the exact comma-separated format the IAB specification requires, with the common networks preset so you need only your publisher ID. A single malformed line is skipped silently by buyers, so the validation here is the point of the tool.

What it does
Builds a valid ads.txt or app-ads.txt file
You give it
Your ad partners, publisher IDs and relationships
You get back
Correctly formatted records ready to publish at your root
Best for
Publishers running programmatic ads on a site or in an app
SEO Tools Free, unlimited use No sign-up Runs in your browser

About the ads.txt Generator

Add each ad partner with your publisher ID and the generator writes the ads.txt records in the exact comma-separated format the IAB specification requires. Common networks are preset, so AdSense, Ad Manager, Amazon and the rest need only your ID.

ads.txt exists to stop domain spoofing, where someone sells fake inventory claiming to be your site. Publishing the file at yourdomain.com/ads.txt declares which sellers are authorised, and buyers check it before bidding. The format is unforgiving: each record is exactly the exchange domain, your publisher account ID, the relationship (DIRECT if you have a contract with them, RESELLER if they resell on your behalf), and optionally the TAG certification ID — comma separated, one per line. A single malformed line is skipped silently, which is why an invalid file usually shows up as revenue that quietly does not arrive.

Key features of the ads.txt Generator

Networks preset

AdSense, Ad Manager, Amazon, Criteo, Index Exchange, Magnite, PubMatic, OpenX and more, with the right domains.

DIRECT and RESELLER

The relationship field is explained rather than guessed at, since getting it wrong stops a partner bidding.

Format validation

Malformed records are skipped silently by buyers, so they are caught here instead.

app-ads.txt too

The same records in the app variant, with a note on where that file actually has to live.

Duplicate detection

The same seller and ID listed twice is flagged rather than shipped.

How to use the ads.txt Generator

  1. 1

    Choose your ad partners

    Pick from the presets or add any exchange by its canonical domain.

  2. 2

    Enter your publisher IDs

    The account ID that network knows you by — for AdSense, your pub- number.

  3. 3

    Set each relationship

    DIRECT when you contract with them; RESELLER when they sell on your behalf.

  4. 4

    Publish at your root

    Save as ads.txt at yourdomain.com/ads.txt, served as plain text over https.

Frequently asked questions

At the root of your domain, exactly at yourdomain.com/ads.txt, served as plain text. It cannot be in a subdirectory, and crawlers do not look anywhere else. For subdomains that sell their own inventory, each needs its own file.

Reviews of the ads.txt Generator

What people who use the ads.txt Generator think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the ads.txt Generator. It takes half a minute and no account.

Write the first review

More SEO tools