# ads.txt

> A file on a site that lists who may sell its ad space.

**Field:** Marketing & SEO  
**Category:** Media & Ad Tech  
**Also known as:** Ads.txt, Authorized Digital Sellers, app-ads.txt

## Think of it like

It is like a list on a shop door. It names the only people allowed to sell for that shop.

## Definition

Ads.txt is a small text file that a site puts on its own web address, like example.com/ads.txt. It lists every company allowed to sell that site's ad space. Each line names the seller, the site's account with it, and whether the seller is direct or a reseller. Buyers check the list before they bid, and skip sellers who are not on it. The IAB Tech Lab released it in 2017 to stop fake sellers.

## Example

Lucy runs a recipe site and adds an ads.txt file with three sellers on it. Buyers that check the file now skip anyone else who claims to sell her space.

## Example code

```console
$ curl https://example.com/ads.txt
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
redssp.com, 57013, RESELLER
```

Two sellers on the list. One sells for the site directly, and one resells its space.

## Why it matters

Without it, anyone can claim to sell a famous site's space. Buyers use it to skip sellers who are not listed.

## Common mistake

Writing the file once and forgetting it. When you add or drop a seller, the list must change too.

## Three principles

- **A public list.** Anyone can read the file.
- **Direct or reseller.** Each line says how the seller sells.
- **Keep it current.** Update it whenever a seller changes.

## Related terms

- [sellers.json](https://learn.benibix.com/term/marketing/sellers-json)
- [Ad Fraud](https://learn.benibix.com/term/marketing/ad-fraud)
- [Supply-Side Platform (SSP)](https://learn.benibix.com/term/marketing/supply-side-platform)
- [Programmatic Advertising](https://learn.benibix.com/term/marketing/programmatic-advertising)
- [Invalid Traffic (IVT)](https://learn.benibix.com/term/marketing/invalid-traffic)

## Told apart from

- [ads.txt vs sellers.json](https://learn.benibix.com/compare/ads-txt-vs-sellers-json): People think ads.txt and sellers.json are the same file, and they are not. A site puts ads.txt on its own web address. It lists who may sell the site's ad space. An ad seller puts sellers.json on its own address. It lists every site it sells for. A buyer checks that both lists agree.

![On the left, a news site with its ads.txt file, which lists the sellers allowed to sell its space. On the right, a seller with its sellers.json file, which lists the sites it sells for. In the middle, a buyer checks both lists. Below, a fake seller that is on neither list gets no bid.](https://learn.benibix.com/diagrams/media-supply-files.svg)

---

Source: https://learn.benibix.com/term/marketing/ads-txt
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
