How To Add Ads.Txt File To Blogger And WordPress


Facing Challenge on How to Fix ads.txt issues, Publisher ID missing from ads.txt files for Google Adsense. OR How to Fix the red notification popup (Earnings at risk - One or more of your ads.txt files doesn't contain your AdSense publisher ID. Fix this now to avoid severe impact on your revenue.) at the Top of your Adsense dashboard. Maybe you've gotten email notification like this from google:

Dear Publisher,
We’ve noticed that the ads.txt file on one or more of your sites that you monetize through this AdSense account (pub-0000000000000000) is missing the correct publisher code.
From mid-October, Google will stop buying ads on sites with ads.txt files which don’t include the correct publisher IDs. We recommend you update your ads.txt files immediately to prevent impact to your earnings. Make sure that the ads.txt file for each site you want to monetize through this account contains the snippet below:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0.  
Earnings at risk – One or more of your ads.txt files doesn't contain your AdSense publisher ID. Fix this now to avoid severe impact to your revenue.

Even at some point, Google advertisements migh have stop serving / displaying on your site or blog (the ad's space will go blank). I know exactly how you are feeling right now because I was also in your shoe, It's really frustrating not knowing what is wrong.

Worst is that, Before now there has been NO Solution to this problem on the Internet, Greatest surprise is that solution to the problem wasn't found on Google products forums which are supposed to be the number one solution center for all Google problems.

Anyway I finally found a solution to this my self, and I am going to show You how exactly how I fix the notification or warning message on my Adsense account which reads Earnings at risk - One or more of your ads.txt files doesn't contain your AdSense publisher ID. Fix this now to avoid severe impact on your revenue. Now need You to read this article to the end carefully.


How to Setup ads.txt file from Blogspot Dashboard

  1. Sign in to Blogger.
  2. In the top left, click the Down arrow.
  3. Click the blog you want to set up an ads.txt file on.
  4. On the left, click Settings.
  5. Under “Settings,” click Search preferences.
  6. Under “Monetization,” find “Custom ads.txt” and click Edit.
  7. Click Yes.
  8. Open your Adsense Account, you will see notification at the top of the dashboard telling you that Earnings at risk - One or more of your ads.txt files doesn't contain your AdSense publisher ID. Fix this now to avoid severe impact on your revenue. It in red color, 
  9. Click on the action button and you'll be taken to your Adsense sites management page.
  10. Google will automatically generate an Adt.txt file for you, now copy the code which will look similar to this google.com, pub-XXXXXXXXXX, DIRECT, XXXXXXX (please note that each Adsense account has his own unique code). Yours is different from mine.
  11. Paste the copied settings from your third-party monetization provider into the text box.
  12. Now Click Save settings.


Please note: If your blog or website is monetized with third-party providers or you’ve manually integrated AdSense in your blog, you will need to manually set up the content of the ads.txt file. 

On the other hand, If your blog is not manually integrated AdSense, i.e if you have directly linked your blog with your adsense account from the adsense Tab in blogger dashboard, then you do not need to manually set up ads.txt. Blogger will do this for you.

How to add ads.txt File to the Root Directory for Custom Domain from cPanel

1. Log into your cPanel.

2. Navigate to the section Files > File Manager:

3. If you wish to edit .htaccess file for your main domain, navigate to public_html folder. If you need to make some changes to the addon domain, move to public_html/youraddondomain.com folder. Once there, make sure that Show Hidden files (dotfiles) option is enabled in Settings menu:

4. Locate .htaccess file, right-click > Edit:

5. If there is no .htaccess file located in your File manager, feel free to create a new one using File option:

6. You are ready to add .htaccess code in htaccess file as follows:
  • RewriteCond %{REQUEST_URI} !^/ads.txt$
  • RewriteCond %{HTTP_HOST} ^qposter\.com [NC]
  • RewriteRule ^(.*)$ http://www.qposter.com/$1 [L,R=301]

7. Now, configure the above rules and save them by replacing your own website name.

8. DNS Setting: Go to your Domain registrar Dashboard and change DNS RECORD according to your hosting server. In my case, I changed as follows:

9. Now, Go to Basic settings on your Blogger Dashboard and uncheck the redirect option.


Sample of ads.txt files and How to check content of Ads.Txt File On Blogger

➤To check the content of your ads.txt file, go to http://www.yourblog.com/ads.txt

Example for publishers working with Google products

Ads.txt files from publishers working with Google products should contain lines in the following format, always using google.com as the domain name. Here are sample lines, based on the format above: 
  • google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

  • google.com, pub-0000000000000000, RESELLER, f08c47fec0942fa0
Note: Your own publisher ID will be replaced with pub-0000000000000000.

How to Setup ads.txt file for Wordpress

I hope to write more detailed article on this soon. But for now, You can add ad.txt file to WordPress via Ads.txt Manager Plugin.

How To Find Adsense Publisher ID

If you publish ads on your blog or website through Google AdSense and want to implement ads.txt, You need to locate your publisher ID. This can be found by
  1. Logging in to AdSense account.
  2. Then navigating to Settings => Account => Account information. 
  3. You will see Your publisher ID is in the format of pub-99999999999 with the nines replaced by your own 16 id digit number.
  4. The entry of ads.txt for a publisher’s own Google AdSense account will then look like: google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
  5. Please note that the TAGID for Google is always f08c47fec0942fa0. 

Also, don’t forget to include the pub- part of your publisher ID, as this is apparently one of the common errors in ads.txt implementation for AdSense publishers. So with the ads.txt feature, this kind of advertisements will not be displayed on unauthorized site.

Note: You don't need to Panic if Google stops ads serving on your blog or website. It was also STOPPED on my blog. Ads serving will automatically resume once Google has processed your changes and the notification will disappear in your blogger dashboard.


Also read: How To Easily Fix Missing Ads.txt File Notification in Adsense

About Ads.txt File

What is Ads.txt

The "ADS.TXT" (Authorized Digital Seller) is a list made by a website owner that contains publisher accounts and the names of ads networks that the publisher authorized to be showing of ads on his/her website.

How does ads.txt work?

Ads.txt is simply a text file that sits on your server and lists the places authorized to sell ads on your behalf. The “ads” part of the name is an acronym for “Authorised Digital Sellers”. The idea is simple: Buyers can collect this data and be sure that if they’re paying for ads on rollingstone.com, then that is where those ads will appear (see an example from rollingstone.com/ads.txt). The file just lists the accounts that are authorized to sell the inventory, doing so in a format that can be quickly crawled and indexed.

This article covers: ads.txt adsense, ads.txt implementation, ads.txt example, ads txt article, ads txt solution, ads txt content, ads txt press release, ads.txt blogger, ads.txt wordpress, ads.txt validator, ads.txt.

Hope will helped YOU FIX ALL ADSENSE.TXT PROBLEMS / ERRORS. (Earnings at risk – One or more of your ads.txt files doesn't contain your AdSense publisher ID. Fix this now to avoid severe impact to your revenue.) Now its on your part to please share this article...

Comments