How to fix an ads.txt alert in Google AdSense account

How to Fix ads.txt error message on Google AdSense account

When I logged into my Google AdSense account yesterday, I saw a red warning saying that one or more of my websites does not have an ads.txt file. In this tutorial, you’ll learn how to solve this problem.

How to fix an ads.txt alert in Google AdSense account

What causes this issue

Earnings at risk – One or more of your sites does not have an ads.txt file. Fix this now to avoid severe impact to your revenue.

In my case, the above message appeared spontaneously on June 6th. This message is self explanatory. It means that we have not added an ads.txt file to one or more of our websites. Google strongly recommend that we use an ads.txt file. It can help buyers identify counterfeit inventory and help us receive more advertiser spend that might have otherwise gone toward that counterfeit inventory.

“Authorized Digital Sellers”, or “ads.txt”, is an IAB initiative to improve transparency in programmatic advertising. Publishers can create their own ads.txt files to identify who is authorized to sell their inventory. The files are publicly available and crawlable by buyers, third-party vendors, and exchanges. You can learn more about an ads.txt file at the following links:

How to solve it

To solve this problem, we need to add an ads.txt file to the root level of our domain (for example, Now, step by step guide.

Create a text (.txt) file named ads.txt on your computer (we will move this file later) by using any text editor.


Include the following line in the ads.txt file you just created:, pub-0000000000000000, DIRECT, f08c47fec0942fa0

Important! Make sure you replace pub-0000000000000000 with your own publisher ID

Place your ads.txt file to the root directory of your website. Make sure you save the file.

You can do this by using cPanel or accessing your server via FTP or SFTP. If you aren’t sure how usually your web hosting provider will have instructions somewhere on their website.

Finally, you can visit you website and verify that you have the ads.txt file now. For example,


If you are having trouble fixing this problem with the instructions above, but are being able to solve this problem with any another method Thanks!