How to add custom ads.txt file in blogger?
The best way to earn money from your website is to show advertisements on your site. In ad networks, google adsense is considered as the most paying and trusted ad network.
Recently google has announced that your earnings will be on risk untill you place "ads.txt" file on your website.
Ads.txt is a text file that contains a bit details about ad network working on your website. You will write about ad networks (eg, adsense) with its publisher id and have to add that file to your blog or server. You can add one or more than one ad networks in one ads.txt file.
Why to add this file?
A number of hackers get access to your account and place ad codes to your website. Usually when you use nulled script or theme on your website, you give a way to hackers by this. This type of malware and virus can effect your site, that's why you need to add ads.txt file in your website.
To add ads.txt file in blogger, follow my given steps.
- Go to blogger and click on "Settings" Tab.
- And select "Search Preferences" option.
- You will see a lot of options there. Just go to "ads.txt" option on last of it.
- Click on "edit" option and select "yes". And ads.txt file will be Enabled.
- You just have to paste ads.txt code of any network in text box.
(here i am describing google adsense only, if you are using any other network and search for that network's ads.txt file on google)
Paste given code:-
google.com, pub-xxxxxxxxx, DIRECT, f08c47fec0942fa0
Don't forget to replace pub-xxxxxxxxx with your Adsense publisher ID.
If you are also showing anyone's ads on your website or selling adsense traffic to someone else then you have to paste given code:
google.com, pub-xxxxxxxxxx, RESELLER, f08c47fec0942fa0
Here also replace pub-xxxxxxxx with your adsense publisher Id.
You can see this file by going to url
(here use your own blogspot or site name instead of ekaif.com)
I have pasted the ads.txt code above. If you want code for any other ads network then comment below, I will try my best to help you in this matter.