Fix Ads.txt Earnings at Risk in Google Ad Sense with proof

Recently Google AdSense started showing the warning message “Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID”. This warning message was seen with those Ad Sense Accounts which has Blogger or WordPress websites associated with it and are allowed to show advertisements by Google.

As a trusted source took the initiative to help its viewers and subscribers to provide proper resolution. When we dug deeper, we found the solution was really simple. Google has announced that domains hosting an ads.txt file where the seller’s publisher ID isn’t listed will no longer be monetized through Ad Manager, and Google will no longer buy ads on such sites. Hence now we can’t ignore the warning message. So let’s go ahead and fix it in less than 5 minutes.

How to solve “Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID” warning?

1) Create a notepad (.txt) file with the name ads.txt (Ensure to name with a small letter ads.txt)

2) Copy and paste the below text inside it:, pub-0000000000000000, DIRECT, f08c47fec0942fa0

Note: Make sure to replace 0000000000000000 with your unique Publisher ID. You can get it by logging in to Adsense – (at left pane) Settings>Account Information.

3) Open Website Hosting Service Dashboard. Your hosting provider could be GoDaddy, Hostgator, etc.

4) Open C Panel – File Manager. (if you are unable to find it, contact your hosting provider and ask the location of File Manager’s on their website)

5) At Left pane search Public_html Folder – at the top, there will be an option to Upload. Browse the ads.txt file from Desktop and upload it.

6) Check by opening your website e.g.,

It should show you the content of the ads.txt file which means an ads.txt file is uploaded successfully.

Note: If everything is fine till this step, Google will crawl your website and you will find the warning will disappear. It may take 2-3 days for Google to automatically crawl your site. Kindly relax and keep patience.

I have created a live demonstration of the above steps with proof of ads.txt warning disappeared.

What is Ads.txt file?

Interactive Advertising Bureau (IAB), the international authority which defines the standards for online advertising, has defined a specification called Ads.txt. According to this specification, all websites that use advertisements should use a file called “Ads.txt” in the root of the website’s domain.

According to the specification, the Ads.txt file should define all the advertisement programs used by the websites. Each advertising program the website is participating should be defined in the Ads.txt file in a single line in the following format:

<FIELD 1>, <FIELD 2>, <FIELD 3>, <FIELD 4>
Field 1 – Domain name of the advertising system
Field 2 – Publisher’s Account ID (Required)
Field 3 – Type of Account/Relationship
Field 4 – Certification Authority ID (Optional)

Google is supporting the Ads.txt specification for its AdSense program. Hence it becomes important to add ads.txt on the websites showing Google adds.

Thanks a ton for reading my blog, don’t leave without mentioning your comments. Any friend facing an issue following the above steps, kindly reach out to me at ajey@localhost and I will try to revert asap. Please do Subscribe our Youtube Channel for more upcoming videos like this.

Ajey Kumar Gupta
(Exchange Admin)

Must Read: How to create Linkedin Learning Premium Account for free? 

Subscribe Us


Total Page Visits: 7866 - Today Page Visits: 4

Add a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.