How To

How to Fix Google AdSense ads.txt Notification

0 Shares

Google Adsense is no doubt the most popular ad network in the world. However, the purpose of this post is not to focus on the stats and data of Adsense users in the world but how to solve this little but scary message on your AdSense dashboard: ‘earnings at risk – One or more of your sites does not have an ads.txt file. Fix this now to avoid a severe impact on your revenue.’ an issue which often comes up within publishers’ Adsense account.

In this post, we will show you how to fix ads.txt issue in Adsense which results in the message: ‘Earnings at risk – One or more of your sites does not have an ads.txt file. Fix this now to avoid a severe impact on your revenue.’

What is ads.txt file

ads.txt (Authorized Digital Sellers) is a tiny file that companies/publishers can host on their web servers, indicating other companies that are authorized to sell their services or products. The essence of the file is to curb internet fraud by allowing online buyers to check the validity of the sellers from whom they buy. The ads.txt file was introduced by the Interactive Advertising Bureau (IAB) in June of 2017.

Why you get the ads.txt notification in Adsense

You get the notification because AdSense perceives it is not found on your website while your Adsense codes are present on your site. AdSense notifies you because the ads.txt is missing on a website that has ad units on it or that the ads.txt on the website is not correct. Ignoring it would mean earnings from that website would be severely impacted and the publisher running at a loss.

When you see this within your Adsense account, don’t panic. There are two major ways to fix ads.txt issue within Adsense we shall discuss them below:

How to Fix AdSense ads.txt in WordPress

There are two ways of fixing AdSense ads.txt issue. The first is by using a plugin and the second is by going through cPanel. But first, let’s talk about how to create your own ads.txt for AdSense.

How to Create ads.txt file for AdSense

  1. Create a text (.txt) file.
  2. Include the following line:google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

Note: You are to replace ‘pub-0000000000000000' with your own publisher ID.

How to Get Your Adsense Publisher ID

Your Adsense publisher ID is a private ID that unique to you alone. The publisher ID is your personal identifier that AdSense uses to identify your account rather than use your name. Follow the below steps to get your AdSense publisher ID:

  1. Login to your AdSense dashboard
  2. Navigate to ‘Settings’ – ‘Account Information’ and you will see your publisher ID, just like in the image below.

Adsense Publisher ID

Copy your publisher ID and replace yours with the sample publisher ID as seen above.

Fixing Adsense ads.txt issue via Plugin

Fixing ads.txt issue via plugin is pretty much simple. Go to your plugin repository (the section where you download plugins from on WordPress), install and activate the ads.txt Manager plugin. Look for the plugin within your ‘settings’, and paste your created ads.txt code therein. Click save when you are done and that is it.

Adsense Plugin

Note: The plugin must not be uninstalled from your website. Doing this would mean your ads.txt file would not be found and your AdSense dashboard might show the message again.

Fixing AdSense ads.txt issue via cPanel

If you are one of those who don’t fancy installing too many plugins on your website and you fairly know your way around cPanel, then you’d no doubt find this method much more comfortable. Hosting your ads.txt file at the root level of your domain is convenient and does not require any plugin. To do this:

  1. Visit your the cPanel account of the website you would love to add the ads.txt file to
  2. Navigate to public_html, your root folder.
  3. Create a new file; name it ads.txt and save.
  4. Edit the newly created file and paste your earlier created ads.txt code and save. You are done!

While it is possible that the warning message in your AdSense dashboard won’t go away immediately, be rest assured you have done the needful. AdSense bots will detect the file within a few days and the notification would disappear.

To be sure that your ads.txt file has been properly added, type your domain name in this format: https://domainname.com/ads.txt. You should see your ads.txt file.

0 Shares

Leave a Comment