Disclaimer: Affiliate links are used which means if you purchase via my link I receive a small commission at no additional cost to you! I only recommend products that I love! All opinions remain my own.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?
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.
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
- Log in to your wp-admin dashboard
- Click on plugins then Add New
- Search for Ads.txt Manager. Install and activate the plugin.
- Next go to settings and click on Ads.txt
- Add this code below in the editor section.
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
- You can also find this code in the Google Adsense support site.
- Don’t forget to replace pub-0000000000000000 with your publisher id.
- 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.
- Click on the save changes button.
- Finally to check if you have successfully updated the Ads.txt file, type www.yourdomain.com/ads.txt.
- You will see the code that you had pasted in the Ads.txt file.
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.