If you have ever logged into Google AdSense or Google Ad Manager and seen the red banner “Earnings at risk – You need to fix some ads.txt file issues”, you already know how critical a single plain-text file at your domain root can be. Ads.txt (Authorized Digital Sellers) is the IAB Tech Lab standard that tells DSPs like DV360 and The Trade Desk which SSP accounts are legitimately authorized to sell your site’s ad space.

How Every Ads.txt Line Is Parsed by DSP Crawlers
Every non-comment line inside https://yourdomain.com/ads.txt contains three required fields and one optional TAG ID:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
- Advertising System Domain: Canonical domain of the SSP or exchange (e.g.,
google.com,pubmatic.com,rubiconproject.com). - Publisher Account ID: Your exact Seller ID inside that exchange (must match the SSP’s public
sellers.json). - Relationship (
DIRECTvs.RESELLER): Use exact uppercaseDIRECTwhen you own the account directly, andRESELLERwhen an MCM partner or third-party yield network sells your inventory under their seat. - TAG Certification Authority ID: Optional hex ID verifying the exchange (Google’s TAG ID is always
f08c47fec0942fa0).
Real WordPress & Hosting Gotchas I Have Seen Break Ads.txt
- Managed WordPress Read-Only Root Directories: On managed hosting (such as WordPress.com Atomic or VIP), plugins that try to write a physical
ads.txtfile to disk often fail silently and return a404 Not Found. Using a virtual-routing plugin like Ads.txt Manager by 10up serves the file cleanly withHTTP 200 OKandContent-Type: text/plain. - Lowercase
director Missing Commas: Strict DSP parsers reject lines written asDirectinstead ofDIRECTor pasted from Word with smart quotes. - Redirect Loops (
wwwvs. root domain): Google’s crawler always checks the root domain first. Confirm bothhttps://yourdomain.com/ads.txtandhttps://www.yourdomain.com/ads.txtresolve cleanly in one hop.
Test your file now: Paste your lines into our Free Interactive Ads.txt Syntax Validator to catch formatting errors, casing bugs, and duplicate seller entries before uploading.

Leave a Reply