AdSense ads.txt: Not Found, Unauthorized, and What the Warning Actually Costs
ads.txt is a plain-text declaration on your root domain listing who is authorized to sell your ad inventory, and an AdSense "ads.txt not found" warning is about protecting revenue rather than the approval decision. Reference only; approval is decided solely by Google.
There is a warning in your AdSense account about ads.txt, it uses the phrase earnings at risk, and it is not obvious whether it has anything to do with being approved. This guide covers what the file declares, why the warning appears, the handful of setups that produce it, and how to verify yours resolves the way a crawler needs it to. These are reference points based on Google's publicly available guidelines; approval is decided solely by Google.
01Is ads.txt part of the approval decision?
It is not presented that way. The published guidance describes ads.txt as a measure that protects your revenue from unauthorized sellers of your inventory, which is a concern that begins once ads are running rather than while an application is pending.
That is worth saying plainly, because the warning is alarming and the phrase earnings at risk suggests something is already going wrong. Applicants regularly arrive convinced that a missing ads.txt caused a rejection, spend a day on it, and reapply with the original cause untouched.
None of which makes the file optional in practice. Once you are approved and serving, an unresolved warning may put ad revenue at risk. The useful order is simply: fix the reason you were declined first, keep this on the list, and do not confuse the two.
02What the file actually declares
The file is a public list, readable by anyone, that names the ad systems authorized to sell advertising on your domain. Buyers check it before bidding, and inventory claimed on your behalf by anyone absent from that list can be disregarded.
For a single AdSense site it is one line, and each field in it has a job. It names the ad system, then your publisher ID, then the nature of the relationship, then an identifier for the certification authority:
- google.com — the ad system domain, identifying who is being authorized.
- pub-0000000000000000 — your own publisher ID, taken from your AdSense account rather than from any example.
- DIRECT — the relationship, meaning you deal with that ad system directly rather than through a reseller.
- f08c47fec0942fa0 — the certification authority ID that identifies Google in this system.
03Where the setup goes wrong
Almost every unresolved warning we see comes down to the file not being retrievable at the exact address a crawler looks at, rather than to the line inside it being wrong. Any of these may apply:
- The file sits on a subdomain — blog.example.com/ads.txt — while the crawler looks at the root, example.com/ads.txt.
- The publisher ID has a typo, a missing pub- prefix, or a digit dropped while retyping it by hand instead of copying it.
- The server returns the file as HTML rather than plain text, which happens when a CMS renders it through a template instead of serving the file.
- The URL redirects — to www, to https, or through a chain — in a way that does not resolve cleanly, the same class of problem covered in redirects and canonical tags.
- A security layer or holding page answers the request with a challenge screen, so a crawler receives an interstitial rather than the file.
- The site is behind a cache that is still serving a previous, empty version of the file hours after it was uploaded.
- Old lines from a network or reseller the site no longer works with are still listed, which does not break the file but does authorize sellers you no longer use.
04The mistake we see most often
The most common version is editing the file in a plugin, seeing a success message, and never opening the URL. The plugin wrote it somewhere the plugin can read; whether the address a crawler visits returns it is a separate question, and the only way to know is to look.
The second version is the subdomain case, and it is genuinely easy to get wrong. If your blog lives at blog.example.com, the file still belongs at example.com/ads.txt — the root — even when nothing else you own is published there.
Both share a shape: the file was created correctly and never verified from outside. Opening the URL in a private window takes ten seconds and settles it.
05Verifying yours resolves
The aim of this pass is to see what a crawler sees rather than what your dashboard reports. Do the last step from a browser you are not logged into.
- Copy your publisher ID from your AdSense account rather than typing it, since a single wrong character invalidates the line.
- Create a plain text file named ads.txt holding one line: google.com, your publisher ID, DIRECT, f08c47fec0942fa0.
- Place it in the web root so it answers at https://yourdomain.com/ads.txt, not on a subdomain and not in a subfolder.
- Open that URL in a private window and confirm the text renders as plain text rather than downloading, redirecting, or landing on a styled page.
- Purge any CDN or caching layer so the new file is the one being served.
- Remove lines for ad systems you no longer work with, keeping the file to sellers you actually authorize.
- Check the warning in your AdSense account again after Google next crawls the file, which does not happen instantly.
06What ads.txt does not address
The file says who may sell your inventory. It says nothing about whether your pages meet the content policies, and it will not move a decision that was made about substance.
If your account has both an ads.txt warning and a policy finding, they are unrelated problems that happen to share a dashboard. The policy side is the one that decides whether ads run at all, and what a policy violation message covers is the closer reading for it.
Frequently asked questions
QIs ads.txt required before AdSense approval?
It is not described as an approval requirement. Google presents ads.txt as a way to stop unauthorized sellers from monetizing your inventory, which is a revenue protection concern that applies once ads are running. It is worth having in place, but a missing file is not the usual explanation for a declined application.
QWhy does AdSense say ads.txt not found when I uploaded it?
In most cases the file is not retrievable at the address the crawler checks. Common causes are placing it on a subdomain instead of the root domain, a redirect that does not resolve cleanly, a server returning it as HTML, or a cache still serving the previous version. Opening yourdomain.com/ads.txt in a private window shows you what the crawler receives.
QWhere exactly does the ads.txt file go?
At the root of your domain, so that it answers at yourdomain.com/ads.txt. If your site is published on a subdomain such as blog.example.com, the file still belongs at the root domain rather than beside the blog. A file in a subfolder will not be found.
QHow long does it take for an ads.txt warning to clear?
It clears after Google next crawls the file, and there is no published schedule for that. Publishers commonly report it taking somewhere between a day and a few weeks. Re-uploading the file repeatedly does not speed it up; confirming the URL resolves correctly once is the useful action.
QWhat if my host does not let me upload files to the root?
Most hosted platforms provide a setting or plugin for it, since the requirement is common. If yours does not, the file can often be served by a redirect at the root or by a rule at your CDN, provided the end result returns plain text at yourdomain.com/ads.txt. You can confirm the result with our free ads.txt checker once it is in place.
See which of these signals your site shows
AdPrepare checks your site against Google's publicly available AdSense guidelines and highlights common risk signals, free to start. Results are reference estimates; approval is decided solely by Google.
Build your recovery route →AdPrepare is an independent tool and is not affiliated with, sponsored by, or endorsed by Google LLC. "Google" and "AdSense" are trademarks of Google LLC. The information here is based on Google's publicly available guidelines and is provided as reference only; it is not a guarantee of AdSense approval, traffic, or earnings, and it is not legal or professional advice. Last updated: 2026-09-04.