Skip to content

← Field manualENTRY 02 / 12Standards

ads.txt

A publisher’s public ledger of who may sell its inventory: a plain text file at the site root that buyers check before they bid.

Also said as: Authorized Digital Sellers · app-ads.txt (for apps)

  • Published by IAB Tech Lab
  • Records: domain, account ID, relationship
  • DIRECT or RESELLER on every line
  • app-ads.txt covers app inventory

In plain English

What it actually means.

Counterfeiting is a problem in any market, and ad tech is no exception. ads.txt fights it with something remarkably simple: a public text file, posted at the root of the publisher’s domain, that names every company allowed to sell that publisher’s inventory.

Each line records an exchange domain, an account ID and the relationship: DIRECT when the exchange sells for the publisher itself, RESELLER when it sells on someone else’s behalf. Buyers crawl these files and match every bid request against them.

If a bid arrives through a route the file does not authorise, a compliant buyer drops it. Legitimate routes stay open, and spend flows to the sellers the publisher actually appointed.

The schematic

Drawn on one sheet.

The whole mechanism on a single field schematic. Follow the numbered callouts.

PUBLISHER-EXAMPLE.COM / ADS.TXT# WHO MAY SELL THIS INVENTORYpartner-a.example, PA-0001, DIRECT,partner-b.example, PA-0002, RESELLERpartner-a.example, PA-0003, DIRECT, f00dc0demobile-seller.example, PA-0004, RESELLERONE LINE PER SELLING ROUTE: KEPT CURRENT1THE EXCHANGE DOMAINwho is being authorised2ACCOUNT ID: PA-0001your seat at that exchange3DIRECT OR RESELLERsells for you, or on your behalfBUYER CHECKPA-0001 LISTED: BID ALLOWEDUNLISTED SEAT: BID DROPPEDAPPS USE THE SAME FILE: APP-ADS.TXT123
  1. The ledgerOne public text file at the site root lists every authorised seller.
  2. The recordDomain, account ID and DIRECT/RESELLER identify each route.
  3. The checkBuyers match each bid against the file and drop unlisted routes.

How it works

Step by step.

The same motion, every impression, no exceptions.

  1. Publish the file

    The publisher (or their SSP) posts ads.txt at the site root and keeps it current as partners change.

  2. Buyers crawl it

    Exchanges and DSPs collect the file regularly and index who is authorised for each domain.

  3. Every bid is matched

    When a request arrives, the buyer checks the seller account against the ledger.

  4. Unlisted routes dropped

    Requests that fail the check are filtered, protecting budgets and the publisher’s yield.

WORKED EXAMPLE: READING A RECORDILLUSTRATIVE NUMBERS
Line
partner-a.example, PA-0001, DIRECT, f00dc0de
Reads as
partner-a may sell this inventory directly, account PA-0001
Second line
partner-b.example, PA-0002, RESELLER: sells on our behalf
Buyer check
PA-0001 appears in the file: bid allowed
Counter-example
Unlisted seat ID: bid dropped

Four fields per line, checked machine-to-machine, keep the selling chain honest.

Why it matters

Two sides, one term.

FOR PUBLISHERS

  • Keeps demand from being blocked because ownership of the inventory looks unclear.
  • Gives the publisher one auditable list of every company selling on its behalf.
  • Pairs with sellers.json on the buyer side for a complete chain of custody.

FOR ADVERTISERS

  • Confirms the inventory behind a bid request is really the publisher’s to sell.
  • Reduces wasted spend on spoofed or hijacked inventory routes.
  • Makes supply-path decisions evidence-based rather than trust-based.

The Press Anchor angle

Where you meet it here.

Every Press Anchor publisher runs a maintained ads.txt (and app-ads.txt for apps) listing our SSP accounts as DIRECT. And our buyers check it before a single bid is placed.

FIELD NOTE: COMMON MISCONCEPTION
MYTH

“ads.txt raises yields by itself.”

FACT

It is an authorisation ledger, not an optimisation tool. What it does is stop buyers from filtering your inventory because its origin cannot be verified, and stop counterfeit sellers from riding on your name.

PUBLISHERS

Sell with it.

ads.txt in production: one tag, every screen, every price visible.

Become a publisher
ADVERTISERS

Buy with it.

Put ads.txt to work against premium inventory: booked, measured, reported.

Book a campaign