
Check your ads.txt before it quietly costs you revenue.
Enter your domain. We fetch the file from your root, read it line by line and tell you what is wrong, with the exact line.
We fetch https://your-domain/ads.txt from our server, parse it line by line and keep nothing.
The line to add to ads.txt
Put the ads.txt file at the root of your site, reachable at https://your-domain/ads.txt.
An ads.txt file is a plain text list, published at the root of your site, of the companies allowed to sell your ad space. Buyers check it to avoid paying a fraudster who pretends to sell your pages. If it is missing or malformed, legitimate demand can skip you, and nobody tells you.
What the file looks like
Each line has up to four fields separated by commas, plus an optional comment after a #:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
- The advertising system’s domain, here Google.
- Your account ID on that system. For Google AdSense it is
pub-followed by 16 digits. - The relationship,
DIRECTwhen you hold the account yourself orRESELLERwhen someone else sells on your behalf. - The certification authority ID, optional in the standard but used by Google. Google’s own is
f08c47fec0942fa0.
The standard also defines variables such as CONTACT=, SUBDOMAIN=, OWNERDOMAIN= and MANAGERDOMAIN=. The checker recognizes them and does not count them as records.
What this checker does
It requests https://your-domain/ads.txt from our server, follows up to six redirects and reports the chain. It then checks:
- the HTTP status and the content type (it should be
text/plain); - whether the file begins with a byte order mark, a common cause of a broken first line;
- whether the server returned an HTML page, which means a soft 404 or a catch-all route;
- every line: field count, domain syntax, relationship value, duplicates, unknown variables;
- every Google line: the publisher ID format and the certification authority ID.
It keeps nothing. The result lives in your browser and the request in a server log that rotates away after about 14 days.
The errors we see most
| Symptom | Usual cause | Fix |
|---|---|---|
| ”No ads.txt found”, HTTP 404 | File uploaded to a subfolder, or not at all | Put it at the root so that https://your-domain/ads.txt works |
| HTML instead of text | The site answers 200 for every URL, or a page builder serves its own route | Add a real file or a rule that returns text for this exact path |
| First line reported invalid | Byte order mark added by an editor | Save as UTF-8 without BOM |
| Wrong content type | Server serves .txt as download or as HTML | Set text/plain for this file |
| Redirect to another domain | File hosted by an ads manager | Fine if your ad partner requires it, but keep the file on your own domain when you can, since some systems accept only same-domain redirects |
| Google line without fourth field | Copied from an old guide | Add f08c47fec0942fa0 |
Publisher ID not pub- plus 16 digits | Typo, or the client ID ca-pub- pasted whole | Remove the ca- prefix |
Where to put the file
On a static host, drop ads.txt into the folder that is served at the root (public/ in most frameworks). On WordPress, upload it through your host’s file manager or use the plugin your ad network provides. On nginx, the file simply lives in the web root; if a catch-all rule such as try_files $uri /index.html serves your single-page app, make sure it does not swallow /ads.txt.
The other tab: write the Google line
If you only need the line, switch to the second tab, paste your publisher ID and copy the result. It checks the format as you type, so a pasted ca-pub- ID is caught immediately.
For the guide that explains how this file fits into an AdSense setup, read ads.txt explained, and if you are still preparing your first application, start with the important pages for AdSense approval.
Frequently asked questions
Do I need an ads.txt file to get approved for AdSense?
Google recommends that publishers use one, and AdSense asks you to add it once your account is active, because it tells buyers which sellers are authorized to sell your inventory. It is not something to build before your first application, but it is worth adding as soon as you have your publisher ID.
How long before AdSense notices a new ads.txt?
Google says changes can take from several days to about a month to be processed, depending on your traffic. A file that checks out here and is still reported missing after a few weeks is worth a closer look at redirects, the content type and the root location.
Can I use one ads.txt for several subdomains?
Systems look for ads.txt on the root domain. A subdomain can have its own file only if the root file declares it with a SUBDOMAIN line, so by default your root file covers the whole site.
The other tools
AdSense eligibility checker
57 tests on your whole site, a score and a fix list.
Check my siteFree SEO checker
One page in depth: up to 53 on-page checks, full report.
Check a pagePrivacy policy generator
A policy with the ad-cookie wording AdSense expects.
Generaterobots.txt tester
See which bots may fetch any URL, and which rule decides.
TestGoogle snippet preview
Check title and description length in pixels.
Preview