What is ads.txt and why do publishers need it?

What ads.txt is, how buyers use it, and how publishers keep the file clean.

Written by Samhub with the help of AI·Updated 13 Oct 2026·3 min read
Definition

ads.txt (Authorized Digital Sellers) is a public text file on a publisher’s domain that lists the companies allowed to sell its ad inventory. It was introduced by IAB Tech Lab in 2017.

How it works

01

Publisher lists sellers

At yourdomain.com/ads.txt.

02

Buyers check the file

Before bidding on an impression.

03

Unlisted sellers are skipped

Which stops spoofed inventory.

What a line looks like

FieldExample
Seller domainssp-example.com
Account IDYour account at that seller
RelationshipDIRECT or RESELLER
Certification IDOptional
The Media Monetization Playbook
Free playbook: three foundations for earning more from your audience data

16 pages for publishers, with a checklist for data, programmatic and direct sales.

Keep it clean

Remove partners you no longer use and avoid long lists of resellers. A short, accurate file helps buyers find the direct path to your inventory.

+€1.33

CPM uplift at Stampen Media after activating first-party audiences with Samhub.

Frequently asked questions

Not by law, but many buyers will not buy without it.

The same idea for mobile apps.

Whenever you add or remove a partner.

ads.txt lists who may sell; sellers.json shows who the sellers are.

Related terms

On this page
Monetization Suite
+€1.33
CPM uplift
Stampen Media
Raise your CPMs with audience data

Samhub audiences let you set higher floors and win more data deals, in every channel you sell.

Book a demo
See what your audience data could earn
Free playbook

Turn your audience data into more revenue

Get the Media Monetization Playbook: how media houses turn first-party data into higher CPMs, data deals and direct sales. With checklists for every step.

The Media Monetization PlaybookFREE GUIDE · PDF
  • Platform
  • Solutions
  • Resources
  • Pricing