Blog Tips

How To Fix Ads.txt Issue For Google Adsense

Disclaimer:ย This post may contain affiliate links. You can read my full disclosureย here

How To Fix Ads.txt Issue For Google Adsense in WordPress? Yesterday I log in to my Google Adsense dashboard and saw a warning that says – Earning at risk – One or more of your sites does not have an Ads.txt. Fix this now to avoid severe impact to your revenue.

I am not someone that knows a lot of the technical side of blogging, so seeing an error like that made me panicked for a few seconds. I wondered what did I do wrong this time?

How To Add Ads.txt file in wordpress

The next thing I did was to check the ‘Ads.txt‘ keyword on Twitter. And I must say that I was a little relieved to see a few other tweets mentioning exactly the same error. Phew, at least I am not alone. Unfortunately, those that tweeted about the Ads.txt warning was ‘lost’ just like me. They were searching for a solution too.

Tutorial How To Fix Ads.txt Issue For Google Adsense In WordPress

I then searched Google Adsense support for a way to solve that warning message. There was a solution, but as I have mentioned above I am not so that pro technically, so even though the solution sounded simple, I was still a bit lost as to where I should place the code given.

I continued to google for answers and not long I came across netwhile.com. This site shared a much easy to understand way to add Ads.txt file in WordPress.

Adsense Ads.txt error

I followed the steps given and now I am waiting for the warning message in my Google Adsense dashboard to disappear. Which I know will take a day or two maybe after google bot crawl to my site.

For those of you that has received the same warning error from Google Adsense and are wondering How To Fix The Ads.txt Error In WordPress, below is the tutorial on how I did it.

Step By Step Guide To Fix Ads.txt In WordPress

  1. Log in to your wp-admin dashboard
  2. Click on plugins then Add New
  3. Search for Ads.txt Manager. Install and activate the plugin.
  4. Next go to settings and click on Ads.txt
  5. Add this code below in the editor section.
    google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
  6. You can also find this code in the Google Adsense support site.
  7. Don’t forget to replace pub-0000000000000000 with your publisher id.
  8. You can get your publisher id from your Google Adsense Dashboard. Just click Account and in the account information section, you will see your publisher id.
  9. Click on the save changes button.
  10. Finally to check if you have successfully updated the Ads.txt file, type www.yourdomain.com/ads.txt.
  11. You will see the code that you had pasted in the Ads.txt file.
How To Fix Ads.txt Issue For Google Adsense

Simple right? If you do have any questions or difficulties about this, just let me know and I will help you. Or if you have a much simpler way to add the Ads.txt file, please let me know in the comment section below.

Sharing Is Caring

You may also like...

67 Comments

  1. Oh nice, I have seen people having issue with this. I took off adsense because it kept messing up my blog. I might add it back and see if it works better.

    1. karenmonica says:

      I am sorry to hear that you had issues with Adsense earlier.

  2. THANK YOU! I saw this warning yesterday but didn’t have time to look into it. I appreciate you posting and helping out!

    1. karenmonica says:

      You are welcome Krysten ๐Ÿ™‚

  3. I haven’t had a chance to use adsense yet. I find this text very useful, so I’ll share it with my fellow blogger friends. ๐Ÿ™‚

    1. karenmonica says:

      Thank you Natalia ๐Ÿ™‚

  4. I have seen a lot of people having issues with this of late – so this seems like a very timely post on how to get them fixed. Thank you.

    1. karenmonica says:

      Yes, quite a lot of bloggers are having this Adsense issue the past few days.

  5. Ohh.. I’ve been looking for instructions on how to do this. I tried to figure it out on my own but it just didn’t work out!

    1. karenmonica says:

      I hope this helped. Let me know if it did ๐Ÿ™‚

  6. I never had much trouble with my ads.txt with google adsense, but I have heard a lot who have, so this is a great resource. I had them ban my account when I had a pin go viral on pinterest which showed a huge increase in traffic and they banned me for “fake traffic”. Yes, I’m still a little bitter because I was making a couple hundred dollars a month with them before I got the high amount of steady traffic I have now.

    1. karenmonica says:

      I am sorry to hear that Stephanie. With a high amount of traffic, I am sure you have other choices of income sources now.

  7. I have not have this issue yet, but good to know there is a fix for it! Thank you for sharing your knowledge on the topic.

    1. karenmonica says:

      I think only some of us had this issue last week ๐Ÿ™‚

  8. Your question, “I wondered what did I do wrong this time?” is how I often feel. Somehow I managed to get scroll bars on my front page and no clue as to what I’ve done. My first thought was “What have I done NOW!” Thanks for the explanation for fixing this as I’m sure that I will one day see this message. I’ve bookmarked your post so I can quickly solve it.

    1. karenmonica says:

      Glad to know that I am not alone on the ‘what did I do wrong this time thought’ ๐Ÿ™‚

  9. vicky hallnewman says:

    I love blog posts like this that really help you as you become a blogger. Adsense is something that I struggle to understand.

    1. karenmonica says:

      I understand about the struggle…I do too sometimes

  10. These are great tips! I’ll surely check this out

    1. karenmonica says:

      Thank you Jasmine ๐Ÿ™‚

  11. Princess Quinn says:

    Wow, this is really helpful. I think many people are going to benefit from this. I love this post.

    1. karenmonica says:

      Thank you, Princess Quinn

  12. Hannah Marie says:

    I am not too familiar with this stuff. But looking at it, not too complicated at all. I have definitely learned something here.

    1. karenmonica says:

      I felt like it was a bit complicated at the beginning.

  13. You provided very simple steps to solve the issue. Thanks for this helpful post.

    1. karenmonica says:

      you’re welcome Kavitha ๐Ÿ™‚

  14. This was so super helpful – thank you so much! I had seen the same notification on my Google Adsense and had no idea what to do either!

    1. karenmonica says:

      Hope this tutorial will help you to solve it ๐Ÿ™‚

  15. I’m forever having trouble with Adsense. The worst was when I bought a domain for my blog. When it was a Blogspot domain it was approved instantly but was a struggle with the new domain. Anyway. I saw this warning recently and ignored it bc its probably bc of an old blog. Now that I know where to find the fix I might go investigate to make sure everything’s working!

    1. karenmonica says:

      I am sorry to hear that. Hopefully, it is solved now.

  16. Alexandra Cook says:

    That is really good advice. People who have no clue can learn a lot from it.

    1. karenmonica says:

      Thank you Alexandra ๐Ÿ™‚

  17. I use blogger platform but haven’t received any warning message regarding adsense yet! Not sure, why ๐Ÿ˜‘ Can you tell me one thing please? Can I run third party advertisements on my site along with Google adsense ads? Or is it a punishable offence as per Google! I don’t earn anything from adsense ๐Ÿ˜ฃ I would appreciate your suggestion, thanks โ˜บ

    1. karenmonica says:

      From my opinion and past experience, there are some third-party advertisements that you can run together with Adsense. Unfortunately, some are against their policy. Usually, the ones with pop-ups are not allowed.

      1. Hi Karen, I was wrong! I received that Adsense Error message ๐Ÿ™ I added ads.txt code to my Blogger account a few days back as well, but still am getting that warning message!! When I am typing my website domainname with ads.txt (wwwnaturalbeautyandmakeup/ads.txt) live on Google, it redirects to my homepage. Does that mean I have implemented the code right way or is there something wrong? How long I have to wait for this, can you please help me? There is no problem with displaying ads though!

        1. karenmonica says:

          Oh no. Is the error message still showing? It is not supposed to be redirected back to your homepage. Let me know if you are still having difficulties with this.

          1. Karen, the ads.txt content should be visible with or without www, right? But I cannot access ads.txt content when I type mysitedomain.com/ads.txt ๐Ÿ™ It redirects to the homepage, however, when typed with http://www.site.com/ads.txt, it shows the ads.txt file details!! What’s wrong with it and how to solve it? Please guide me, am so worried now ๐Ÿ™ I don’t know how to send you the sceenshots here, do let me know If I can email you. Thanks ๐Ÿ™‚

          2. karenmonica says:

            Email me at karen5368@gmail.com I will try to help.

  18. Bree says:

    This is really helpful! It stinks when things don’t work so I appreciate you sharing how to fix this problem!

    1. karenmonica says:

      Yes, it annoys me when I can’t find a simple solution for something like this.

  19. This is really awesome! Although i don’t have any issues with my Adsense account, i am gonna bookmark this for future reference. Thank you.

    1. karenmonica says:

      Thank you, Chad. Hopefully, you won’t have any issues with this.

  20. Christa says:

    Any help I can get with backend blog stuff is appreciated. Thank you so much for this!

    1. karenmonica says:

      You are welcome Christa ๐Ÿ™‚

  21. I haven’t worked with Google Adsense just yet. But this is good information to know should I want to add it to my site. And you want to get the most out of Google.

    1. karenmonica says:

      Thanks for the comment, David ๐Ÿ™‚

  22. Sundeep says:

    This blog almost took me by surprise. I was looking for similar info. Thanks.

    1. karenmonica says:

      Hope this blog post solved your issue with Adsense ๐Ÿ™‚

  23. Saving this for later. Iโ€™m sure it will come in handy. Yet to get my Adsense approval though

    1. karenmonica says:

      Good luck on your Adsense approval.

  24. I wish I had read your blog earlier. You simplified it so much for everyone. I had earlier ran into the same problem and got stuck. Bookmarking this for next time

    1. karenmonica says:

      Hope your Adsense issue had been solved ๐Ÿ™‚

  25. This was such a big issue for so many ppl! Thanks for the great tips! What a help:)

    1. karenmonica says:

      Thank you Steph ๐Ÿ™‚

  26. And it seems it is still going on. I also go the message two days ago and did their steps… It didn’t work, so now I am trying this.

    1. karenmonica says:

      I am hoping you had success with these steps. Do let me know if you need any help.

  27. Gary Leigh says:

    Great article. It also seems that it can take many days for the message to disappear once it’s been fixed.

    1. karenmonica says:

      Thank you, Gary. Yes, it does take a few days for the message to disappear for some. Hopefully, yours has been fixed too.

  28. Why Google Is not Showing My Ads .
    FrOm June 2019 I am Stuck What to Now My Site ProKistan

    1. karenmonica says:

      Have you had any warning notice from google?

  29. I actually implemented those exact same steps three days ago and I still get the same error message!! Did yours ever get approved? ๐Ÿ˜”๐Ÿ˜” I wondered if itโ€™s a case of just waiting a little longer because I have no idea what else to do and Iโ€™ve definitely included my own publishers ID!

    1. karenmonica says:

      Hi Luliya, I hope the error message has disappeared. Yes, it does take a couple of days for the message to disappear from your dashboard.

  30. Really loved the way you have explained and elaborated how to add Ads.txt file.
    Please continue the work and help others in the same awesome way by your extremely beautiful content.

    1. karenmonica says:

      Aww, Thank You, Nadim. You made my day ๐Ÿ™‚

  31. HI,

    Thanks for this guide, I have faced this issue for a long time, Maybe it from June but now I fixed them.

    I think Google has started this update because most of the time, ads appear on irrelevant pages. We should take advantage of this ads.txt file because Google strongly recommended that 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.

    Cheers

  32. Very useful…. thanks for sharing

  33. Hi there friend!!! Your are article is well written… Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *