Free tool

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.

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
  1. The advertising system’s domain, here Google.
  2. Your account ID on that system. For Google AdSense it is pub- followed by 16 digits.
  3. The relationship, DIRECT when you hold the account yourself or RESELLER when someone else sells on your behalf.
  4. 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

SymptomUsual causeFix
”No ads.txt found”, HTTP 404File uploaded to a subfolder, or not at allPut it at the root so that https://your-domain/ads.txt works
HTML instead of textThe site answers 200 for every URL, or a page builder serves its own routeAdd a real file or a rule that returns text for this exact path
First line reported invalidByte order mark added by an editorSave as UTF-8 without BOM
Wrong content typeServer serves .txt as download or as HTMLSet text/plain for this file
Redirect to another domainFile hosted by an ads managerFine 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 fieldCopied from an old guideAdd f08c47fec0942fa0
Publisher ID not pub- plus 16 digitsTypo, or the client ID ca-pub- pasted wholeRemove 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.