The plain guide
Three files that protect your inventory.
ads.txt, app-ads.txt and sellers.json are the IAB Tech Lab's answer to domain spoofing and reseller soup: public records of who is allowed to sell your inventory. Buyers read them before they bid, so a wrong or stale file quietly costs you demand. Here is what each file does, the exact lines Press Anchor needs, and how not to get it wrong.
- ads.txtfor websites, hosted at your root domain
- app-ads.txtfor apps, hosted by your developer domain
- sellers.jsonour record, so buyers can verify us
Hosted at https://yourdomain.com/ads.txt. Same lines either way; we issue your real publisher ID at approval.
The supply chain
Who may sell your inventory.
Your file lists authorized paths from your domain to buyers. DIRECT means the named seller is us, selling your inventory directly. RESELLER means a partner we have authorized to re-sell it on documented terms.
example.com1 · Domain: the domain of the exchange or seller. Ours is issued with your approval pack.
PA-0000002 · Publisher ID: your unique ID on that seller. This is the placeholder format Press Anchor uses.
DIRECT3 · Relationship: DIRECT or RESELLER. Must be uppercase.
9f8e2a…4 · Authority ID: required on every RESELLER line; matches the entry in sellers.json.
Error clinic
Run a check on a broken file.
This sample file contains four classic mistakes. Run the check to see how a file review reads, the same review our desk runs with you at go-live.
example.com, PA-000000, DIRECT, 3f81c0e4a1d3b7c9example.com, PA-XXXXXX, DIRECT, 3f81c0e4a1d3b7c9example.com, PA-000000, RESELLEReggsample.com, PA-000000, DIRECT, 3f81c0e4a1d3b7c9example.com , PA-000000 , DIRECT , 3f81c0e4a1d3b7c9
Field notes
Common mistakes.
- Hosting at the wrong path
ads.txt lives at the root,
/ads.txt, not in a subfolder. Redirects to other domains break the lookup too. - Leaving stale lines
Lines for partners you no longer work with keep reselling rights you did not mean to grant. Prune when you prune your stack.
- Confusing ads.txt with app-ads.txt
Apps use app-ads.txt, hosted on the developer domain listed in the store. A web file will not cover your app inventory.
- Hand-editing IDs
One transposed character in a publisher ID silently de-authorizes a whole demand line. Copy, paste, verify.
- Forgetting the update
New demand means new lines. When you go live with Press Anchor we send the exact lines and verify the file with you.