What Is ads.txt and How to Add It (AdSense's Quiet Dealbreaker)
ads.txt is a tiny file that can quietly hurt your AdSense standing if it's missing. Here's what it is, why Google flags it, and exactly how to add it.
If you've poked around AdSense, you've probably seen a warning about ads.txt — often the ominous "Earnings at risk" banner — and wondered what this little file is and whether it actually matters. Short version: it's a plain text file that tells the ad world which companies are allowed to sell ads on your site, and a missing one is a small-but-real strike against you. The good news is it's one of the easiest things on your whole site to fix.
What ads.txt actually is
ads.txt stands for "Authorized Digital Sellers." It's a simple text file at the root of your domain — yoursite.com/ads.txt — listing the ad networks (like Google) authorized to sell ad inventory on your site. It exists to fight ad fraud: without it, scammers can spoof your domain and sell fake inventory "from" your site. Google flags accounts that don't have one — which is why the absence of a two-line file can show up as "Earnings at risk."
Why it matters
For a site applying to or running AdSense, a missing ads.txt is a quiet negative signal — it's exactly the kind of easy structural gap that adds up alongside missing pages and thin content. Once you're approved, an absent or misconfigured ads.txt can limit which advertisers bid on your inventory, costing real revenue. Low-effort, high-return.
(Not sure whether yours is set up right? Our free ads.txt checker tells you in seconds.)
How to add it
- Get your publisher ID — AdSense → Account → Settings; it looks like
pub-0000000000000000. - Create a plain text file named exactly
ads.txt(lowercase). For AdSense the standard line is:google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0(replace the pub number with yours; the last value is Google's cert ID, same for everyone). - Upload it to your site root so it's reachable at
yoursite.com/ads.txt(thepublic_htmlfolder on most hosts; on WordPress upload to root or use an ads.txt plugin). - Verify by visiting
yoursite.com/ads.txt— you should see your line as plain text, not a 404. Google may take time to re-crawl and clear the warning.
If you use multiple ad networks, each gets its own line.
Reality check
Adding ads.txt won't approve you on its own, but it's one of the cleanest, fastest structural wins — a two-minute fix that removes a real warning Google puts in front of you. Then move to the bigger pieces — the required pages and content depth — where most approval decisions are actually made.
See your site's structural issues — free
NicheAudit runs a read-only scan and shows the concrete, evidence-backed reasons a content site trips AdSense's structural checks — thin and duplicate content, leftover AI/template boilerplate, missing required pages, broken links, and more. It never touches your site, and it won't promise approval.
Run a free scan →