As of Today, I know most of the Adsense publishers are looking for ways to fix ads.txt including me till I find a solution.
Yes, you heard it right! I am going o demonstrate a step by step solution to fix ads.txt in your site.
This article is a remedy to fix the latest notification released by Google Adsense to all its publishers. The notification asks Adsense publishers to add an ads.txt file into WordPress or blogger content management systems.
SO Lets, start step by step:
How to create an ads.txt file and add in your site?
If you are a publisher only, then actually it is very easy for you to add an ads.txt file in your site. Let me show you how?
For WordPress Users
Simply copy the file given below:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
Note:- Just make sure that you replace pub-0000000000000000 with your own publisher Id. You can find your publisher ID under account information in your Adsense account.
Go to your plugins section in WordPress. Search for a new plugin named as ads.txt manager as marked in the screenshot below. Install and activate it.
Hover over to your WordPress setting, click on ads.txt. You will see ads.txt manager’s dialogue box. Paste here the code copied as in step 1. After pasting the customized code with your own publisher Id, click on save button.
That’s It, You have successfully placed the Ads.txt file in your site. After doing this much Google Adsense’s notification will be fixed within 24 hours.
For Blogger Users
Blogger users also have to follow the same step 1 as written above for WordPress users.
Go to Blogger Dashboard, Hover your mouse to the setting, then click on search preference. Under Search Preference, you will find custom ads.txt box below the heading Monetization.
Paste here the file copied in step 1, make sure to replace with your own publisher Id.
Bingo! That’s all, you have successfully added the ads.txt file in your site.
How to verify that ads.txt file is successfully inserted?
It’s very simple, just go to the google search bar and enter https://yoursite.com/ads.txt, if you see the result as below, it means the code has been successfully inserted.
I have tried to explain the process of adding the ads.txt file to your blog in the simplest way possible. You can also add this file at your domain root directory in your Cpanel. But that’s a little complex method.
I hope, after reading this article you have successfully fixed ads.txt on your site. If You have any other query, let me know in the comments section below it will be definitely considered at the earliest.
For more information, you can read Google Adsense’s official blog post about ads.txt.
If You find this article helpful, then please share it among your blogger fellows.