ads.txt Validator & Generator

Validate a site's ads.txt for syntax errors and duplicates, or generate a clean file from your ad partners.

What ads.txt is for

ads.txt (Authorized Digital Sellers) is a plain text file at the root of your domain that lists the companies allowed to sell your ad inventory. Advertisers and ad platforms read it to avoid buying fraudulent or spoofed inventory. If you use Google AdSense and the file is missing or wrong, AdSense shows an ads.txt warning and your earnings can be affected.

What the validator checks

  • That the file exists, returns HTTP 200 and is served as plain text rather than an HTML page.
  • Each record has the format domain, account ID, DIRECT or RESELLER, and an optional certification authority ID.
  • Variables such as contact, ownerdomain and subdomain are well formed.
  • Duplicate lines, lowercase relationship values and a malformed Google publisher ID.
  • Whether Google lines carry the standard certification ID f08c47fec0942fa0.
  • Redirects to another domain, which crawlers only follow within the same root domain.

Using the generator

Enter your AdSense publisher ID (pub- followed by sixteen digits) and the tool writes the standard Google line for you. You can paste in lines supplied by other ad networks, then copy the result or download it as ads.txt. Upload the file to the root of your site so it is reachable at yourdomain.com/ads.txt, and wait for AdSense to re-crawl it, which can take some time.

Limits

The validator checks syntax and common mistakes. It cannot confirm that a publisher ID belongs to you or that an ad network has authorised your account, so verify those details in the network's own dashboard. It also does not read a sellers.json file.

Câu hỏi thường gặp

Where does ads.txt need to be uploaded?

At the root of your domain, so it opens at yourdomain.com/ads.txt. A file in a subfolder is not read.

Is the Google certification ID the same for everyone?

Yes. f08c47fec0942fa0 is Google's certification authority ID and appears at the end of the AdSense line. Your own value is the publisher ID.

How long until AdSense notices my change?

Google re-crawls ads.txt periodically, so it can take hours or longer before the warning clears.

Does this tool check sellers.json?

No. It validates the ads.txt file on your domain only.

Why does the tool say my file is HTML?

Your server or CMS is probably returning a custom 404 or a catch-all page at /ads.txt. Upload a real text file or add a rewrite exception for it.

Xem thêm trong Technical SEO & Site Management