,

What is Ads.txt? Syntax Guide & Real WordPress Troubleshooting Tips

By

·

·

1–2 minutes

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.

Publisher programmatic display campaign serving example

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 (DIRECT vs. RESELLER): Use exact uppercase DIRECT when you own the account directly, and RESELLER when 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

  1. Managed WordPress Read-Only Root Directories: On managed hosting (such as WordPress.com Atomic or VIP), plugins that try to write a physical ads.txt file to disk often fail silently and return a 404 Not Found. Using a virtual-routing plugin like Ads.txt Manager by 10up serves the file cleanly with HTTP 200 OK and Content-Type: text/plain.
  2. Lowercase direct or Missing Commas: Strict DSP parsers reject lines written as Direct instead of DIRECT or pasted from Word with smart quotes.
  3. Redirect Loops (www vs. root domain): Google’s crawler always checks the root domain first. Confirm both https://yourdomain.com/ads.txt and https://www.yourdomain.com/ads.txt resolve 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.

AdOpsPedia Practical Toolkit

Written by Ganesh — Senior AdOps & Programmatic Specialist

Troubleshooting live Google Ad Manager, Campaign Manager 360, or DV360 delivery? Use our free browser-based Interactive AdOps Tools Suite (CPM/vCPM Calculator, Discrepancy Diagnostics, CM360 Macro Wrapper, and IAB Ads.txt Validator) or read more about our editorial standards on the About page.

Leave a Reply