How to add custom ads.txt file in blogger?

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:-, pub-xxxxxxxxx, DIRECT, f08c47fec0942fa0

Don't forget to replace pub-xxxxxxxxx with your Adsense publisher ID.

Add ads.txt file

Reseller Ads:-

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:, 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

That's it!
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.


  1. Wow, this paragraph is fastidious, my younger sister is analyzing these kinds of
    things, so I am going to let know her.

  2. I'd like to tank you for the efforts you've put iin writing this blog.
    I am hoping to check out the same high-grade blog posts by yyou later on as well.
    In truth, your creative writing abilities has inspired mee to get my vwry own weebsite now ;)

  3. I will be able to follow the description you have shared above in order to add custom ads.txt file in blogger. Thank you for the hint.


Post a comment

Please avoid spamming.
Want backlinks? Contact us

Popular posts from this blog

How to remove powered by blogger from

How to create verified paypal account in pakistan?

How to add facebook login button in blogger?