Blogger
Solved: How To Resolve Earnings At Risk – Your Sites Does Not Have An Ads.txt

Are you trying to remove the Google AdSense error, “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.” for days and months and could not able to remove? You are in the right place.
In this tutorial we will guide you step-by-step to how to get rid of “Earnings at risk – One or more of your sites does not have an ads.txt file”.
People have posted hundred of thousands of queries on Google forums to get the solution of this Google Adsense error, but they are getting the same answer from Google like “Add customs ads.txt”. When people get this response they say, “I have added the custom ads.txt, but I am still getting the error, Earning at risk“.
Do you know that Google is CORRECT. Though you add “ads.txt”, but you are missing one thing! Have you setup a “naked redirect” to redirect your naked domain to “www” domain? Domain without “www” is called naked domain like “example.com”, “https://example.com”, “http://example.com”.
Once you redirect your naked domain to “www” you will get rid of “Earnings at Risk” warning from Google AdSense within few hours.
In order to redirect your naked domain to “www” Google asks you to add 4 A Records in your domain’s DNS Settings. In this post we have shown in detail (1) What are those 4 A Records (2) How to add 4 A Records in your domain’s DNS Settings.
If you have already added the Custom ads.txt, then jump to Step 3.
In this tutorial you will learn:
- What Is Ads.Txt?
- How To Add Custom Ads.txt On Blogger
- How To Redirect Your Naked Domain To WWW
- Test Your Ads.Txt
01. What Is Ads.txt?
Authorized Digital Sellers, or ads.txt is an IAB initiative that helps ensure that your digital ad inventory is only sold through sellers (such as AdSense) who you’ve identified as authorized.
Creating your own ads.txt file gives you more control over who’s allowed to sell ads on your site and helps prevent counterfeit inventory from being presented to advertisers.
02. How To Add Custom Ads.txt On Blogger
- Custom Ads.txt requires following information:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
You need only your AdSense Publisher ID. To get your Publisher ID from AdSense follow these steps:
- Login to your Blogger Admin section & click “Earnings”.
- Click “VIEW EARNINGS”.
- You can directly open AdSense from https://www.google.com/adsense/ as well.
- Click “Account”.
- Click “Account Information”.
- Copy the “Publisher ID”.
- Now go back to Blogger Dashboard.
- Click Settings.
- Scroll down to “Monetization” section.
- Turn the slider towards your right to enable the “Enable custom ads.txt”.
- Click the “Custom ads.txt”.
- Paste the following code into the text box.
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
Only Replace the pub-0000000000000000 with your Publisher ID that you have copied from Google Adsense account. Other information will remain same.
Click "Save".
03. How To Redirect Your Naked Domain To WWW
Type your domain without “www” in your browser like “example.com”. If your website is redirected to “www” it will open, if not then browser will show you the error. If your website is not accessible without “www”, your “ads.txt” will also be not accessible without “www”.
Most of the people test “ads.txt” with “www” like “www.example.com/ads.txt” or “https://www.example.com/ads.txt” or “http://www.example.com/ads.txt”, but they never test without “www”.
- @ 3600 In A 216.239.32.21
- @ 3600 In A 216.239.34.21
- @ 3600 In A 216.239.36.21
- @ 3600 In A 216.239.38.21
For Your Understanding:
- The “@” means root site. It is the value of “Host” column. It points to your website.
- The “3600” is the TTL for each record. TTL stands for Time-To-Live. 3600 means 60 minutes.
- There are 4 Google IP addresses which are called Value.
- We have shown below step-by-step to how to add these 4 A Records.
- Go to Blogger Settings.
- Under the Publishing section, turn on the “Redirect domain” option.
Add 4 A Records
- Login to your domain hosting account(cPanel) where your domain is hosted.
- Find DNS Settings or DNS Zone File icon.
- Click “MANAGE” button to add the 4 A Records.
- Click “+ ADD RECORD” to add A Record one by one.
Here we are showing you how to add 4 A Records in DNS Settings of a domain hosted in Namecheap. You can get lot of help from this.
- Sign-In to your Namecheap account.
- Go to your “Domain List” section.
- Click the “Manage” button OR home icon under the Products label.
- Click “+ ADD NEW RECORD” link.
- Choose “A Record”.
- @ 3600 In A 216.239.32.21
- @ 3600 In A 216.239.34.21
- @ 3600 In A 216.239.36.21
- @ 3600 In A 216.239.38.21
- Here you can see that we have added 4 A Records successfully.
04. Test The Ads.txt File
Once you add “Custom ads.txt” and redirect your naked domain to “www”, it is time to test whether your ads.txt is accessible or not.
- Open your website and add “/ads.txt” at the end of its URL.
- Try to access “ads.txt” without “www” & with “www”.
- example.com/ads.txt
- http://example.com/ads.txt
- https://example.com/ads.txt
- www.example.com/ads.txt
- http://www. example.com/ads.txt
- https://www. example.com/ads.txt
- If your naked domain is redirected successfully to “www” your “ads.txt” will be accessible on your browser.
- Check your Google AdSense after sometime or few hours, you will not see the “Earning at risk” warning anymore.
So it was all about resolving the warning Earnings at Risk from your Google AdSense account. If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.
Recommended Posts
- How To Redirect Naked Domain To WWW If Your Domain Hosting Doesn’t Provide DNS Hosting
- How To Display Google Ads On Blogger – Step By Step | Monetize A Blogger Blog | Earn Money Online
- How To Fix Valuable Inventory: No Content Google Adsense Error | Google Adsense Approval
- Solved: Auto Ads Might Not Work Well With the Current Theme

Cristine
June 6, 2020 at 3:20 pm
Thankyou! Thankyou! Meer's World. For last 5 months I was searching to remove this Google AdSense Warning (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."), but I was not getting help from anywhere. Now finally I have got the solution. My ads.txt was not accessible without www. I have used Namecheap's FreeDNS hosting to redirect my naked domain to www. After setting up a redirect to www, when I opened the Google AdSense the Warning was removed. This tutorial also helped me: https://www.meersworld.net/2020/05/how-to-redirect-naked-domain-to-www.html
Meer's World
June 6, 2020 at 3:22 pm
You're welcome Cristine.
The Worldwide Information
February 18, 2021 at 7:50 am
Hey there, My site is redirected to www. and even I can find my ads.txt in https://www.theworldwideinfo.com/ads.txt but still it's been more than a month and the error earning at risk didn't remove yet. Please guide me what to do in this case?
Meer's World
February 18, 2021 at 12:35 pm
Your "ads.txt" is only accessible with "WWW", but not without "WWW" it is not accessible. Your "ads.txt" is not accessible with these URLs: "https://theworldwideinfo.com/ads.txt", "http://theworldwideinfo.com/ads.txt"
Meer's World
February 18, 2021 at 12:39 pm
Read this tutorial it will help you: "— https://www.meersworld.net/2020/05/how-to-redirect-naked-domain-to-www.html —-"
Lauren (Romance Novel Giveaways)
February 22, 2021 at 1:06 pm
THANK YOU!!!! That warning has been the bane of my existence for…I don't even know how long, and I tried everything EXCEPT the naked reroute (which worked!!! Warning is gone!!!). I'm not 100% tech savvy, but you made these instructions easy to understand and execute, and I am looking forward to exploring what else you have on your website! Thank you!!!!!!!
Meer's World
February 22, 2021 at 1:12 pm
You're most welcome Lauren.
Shwetangi Vrishali
April 22, 2021 at 6:28 am
Thank you so so much for sharing it, it helped me out..
Meer's World
April 22, 2021 at 3:17 pm
You're most welcome Shwetangi.
Muhammad Arshad
February 9, 2022 at 4:00 pm
I have done the same thing but the issue still exists.
Meer's World
February 9, 2022 at 4:14 pm
Please share your website link? Sometimes it takes time for updates to happen.
Muhammad Arshad
February 9, 2022 at 6:26 pm
Thanks for your response. I have added those 4 records on the GoDaddy account on 8 February. I’ll wait some days if the issue doesn’t resolve I’ll share my site link.
Meer's World
February 9, 2022 at 6:39 pm
It doesn’t take this much time, hardly takes an hour or two. Please don’t shy to share your website link, you must be missing something.
Muhammad Arshad
February 10, 2022 at 6:53 pm
Here is my site link the issue is still exist
https://www.grammarquiz.org/
Meer's World
February 10, 2022 at 7:13 pm
Your ads.txt is not accessible with these URLs.
1.) https://grammarquiz.org/ads.txt
2.) http://grammarquiz.org/ads.txt
It also means that your website doesn’t open without “WWW”. Fix this issue.
Muhammad Arshad
February 10, 2022 at 7:25 pm
Sir
I exactly followed the steps you explained in this article but I don’t know why this happens?
Meer's World
February 10, 2022 at 7:59 pm
You must be missing something. I have no idea about GoDaddy, contact GoDaddy support and ask them about your issue. Watch this tutorial, it might help you: https://www.youtube.com/watch?v=F_qZEYxdV-k