PGO
← News

PGO / ARTICLE

AdSense ads.txt Not Found: What It Means and How to Fix It

AdSense says ads.txt not found? Copy the line from your Sites page, publish it at yourdomain.com/ads.txt, check robots.txt and ask for a recheck.

Green graphic reading Fix the ads.txt Not Found Warning, AdSense step by step

“ads.txt not found” means AdSense could not read an ads.txt file at the root of your site. To fix it, copy the line AdSense gives you, save it in a plain text file named ads.txt, make it load at yourdomain.com/ads.txt, then wait for Google to recheck.

It is one of the most common warnings new publishers see, and it is usually a ten minute job. The catch is that the file has to be in exactly the right place and format, which is where most people slip.

What is an ads.txt file?

Ads.txt stands for Authorized Digital Sellers. It is a public text file on your site that lists the companies allowed to sell ads on your pages. Advertisers use it to check that an ad slot they are buying really belongs to you, which cuts down on fraud. AdSense wants you to have it set up so its ads can be matched to your account properly.

A basic AdSense line looks like this, with your own publisher ID in place of the zeros:

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

The four fields are Google’s ad system domain, your publisher ID (the pub number from your account), the relationship type (DIRECT, because you own the site) and Google’s certification authority ID. Do not type the zeros. Copy the exact line from your own AdSense account.

Step by step: how to fix ads.txt not found

1. Get your line from AdSense

In AdSense, open Sites, click the site showing the warning, and copy the ads.txt line shown there. If an alert appears on your homepage, its Fix now button leads to the same place.

2. Create the file

Open a plain text editor (Notepad, TextEdit in plain text mode), paste the line, and save the file as ads.txt. Not ads.txt.txt, and not a Word document.

3. Put it at the root of your site

The file must load at yourdomain.com/ads.txt. On cPanel hosting, upload it to the public_html folder with File Manager. Not inside a subfolder, and not inside wp-content.

4. Open the address in a browser

Type yourdomain.com/ads.txt. You should see your line as plain text. If you do, AdSense will most likely find it too. Try both the http and https versions, and the www version if you use one.

5. Check that robots.txt is not blocking it

If your robots.txt file blocks the crawler that checks ads.txt, the file gets ignored. Open yourdomain.com/robots.txt and look for rules that disallow it, or that block Google’s ad crawlers. Remove them if they are there.

6. Give Google time to recheck

AdSense will not clear the warning the second you upload the file. Look for the option to recheck on the Sites page, and be patient if it still shows the old status for a while.

WordPress users

Some WordPress setups and plugins let you edit ads.txt from the dashboard. Whichever way you do it, always confirm the result by opening yourdomain.com/ads.txt in a browser. A file saved through a plugin that does not actually appear at that address is the same as having no file at all.

Common reasons the fix does not work

  • Wrong location. The file sits in a subfolder instead of the root.
  • Wrong name or format. A hidden .txt extension, a Word file, or stray characters around the line.
  • Wrong publisher ID. A typo, or the ID from a different account.
  • Redirects. The address bounces to another page or domain before showing the file.
  • Blocked by robots.txt. See step 5.
  • Impatience. The file is fine, but Google has not rechecked yet.

Does ads.txt affect approval or earnings?

Ads.txt is part of getting your site set up properly in AdSense, and Google flags a missing file in the Sites page. It is not a trick that makes approval or earnings happen. Content quality and policy compliance matter far more. If you are still waiting for approval, read how to get AdSense approval on a new blog, and if you have been turned down, our guide to AdSense rejection emails explains what each message means.

Common questions

Where does the ads.txt file go?

In the root folder of your domain, so it opens at yourdomain.com/ads.txt.

Is ads.txt compulsory?

AdSense flags sites without it and asks you to create one. Treat it as part of setup rather than an optional extra.

Can I add other ad networks to the same file?

Yes. The file can list several authorized sellers, one per line, each in the same four field format. Add only lines your partners actually give you.

Why does AdSense still say not found after I uploaded it?

Usually the file is in the wrong place, blocked, or Google has not recrawled yet. Check the address in your browser first.

Do I need hosting access to add it?

You need a way to put a file in your site’s root, which is normally cPanel File Manager, FTP or a WordPress plugin. See how to host a website if you are new to that part.


More from PGO. Read the arbitrage blogging guide, avoid the mistakes that get AdSense accounts banned, or learn more at Trispark Academy.

Share

Share this article.