How To Add Custom Ads.txt File To Blogger Website

Posted on

If you haven’t heard of it yet, be prepared to hear a lot about ads.txt in the coming months. The clumsily named ads.txt project (pronounced “ads dot tee ex tee”) is the digital advertising industries initiative to clean up digital advertising and bring transparency to advertising. Although this has almost immediate impact on publishers, including those just using AdSense, many publishers are still unaware of it.  The initiative came about in the wake of a number of scandals around the misrepresentation of ad inventory that resulted in big money being spent on bad inventory. The solution, backed by the IAB and most of the big players in the ad space is deceptively simple (and for once cheap and easy for publishers of all sizes to implement).

Update October 2017: Google have announced that from October 15th they will stop buying inventory from sites that have an ads.txt file that doesn’t match the ad request. This means that it is imperative that publishers have their ads.txt correctly set-up right away if they have the file present.  Google are not yet blocking buys from sites with no ads.txt files, but this will follow.  For now the biggest risk is from incorrectly implemented ads.txt files.

How does ads.txt work?
Ads.txt is simply a text file that sits on your server and lists the places authorised to sell ads on your behalf. The “ads” part of the name is an acronym for “Authorised Digital Sellers”. The idea is simple: Buyers can collect this data and be sure that if they’re paying for ads on then that is where those ads will appear (see example from .

The file simply lists the accounts that are authorised to sell the inventory, doing so in a format that can be easily crawled and indexed.

What do publishers stand to gain from implementing ads.txt?
If you are the New York Times, the benefit is obvious: Advertisers looking for exposure on your site won’t be tricked into buying misrepresented inventory and you retain control over pricing. As the standard gains more widespread adoption buyers are more likely to require ads.txt for all buys, making it more relevant to less well known publishers too.
How To Add Custom Ads.txt File To Blogger Website?

  • Log In To Your Blogger Account.
  • Click ‘Search Preferences’ Like The Screenshot Below
  • Scroll Down The Page,You will Get an option ‘Monetization’
  • Click ‘Edit’ And Check ‘Yes’ 
  • Put Your Code Like This:, pub-0000000000000000, DIRECT, f08c47fec0942fa0
    Important: Make sure you replace pub-0000000000000000 with your own publisher ID.
  • Now Check Your File at:

ads.txt for Ad Exchange

The set-up for publishers with their own direct DoubleClick Ad Exchange account is the same, with the ID being found through DFP by navigating to Admin > Global settings > All network settings. Again the Publisher ID is in the format of pub-0000000000000000.
For publishers accessing Ad Exchange through a GCPP (such as OKO) or other third party the process is the same, but they will need to get the publisher ID from their managing partner and specify it as reseller. To take the example of a publisher using their own AdSense account and accessing Ad Exchange through a partner, their ads.txt file will look like the example below (We’ve labelled with a #comment for clarity):, pub-0000000000000001, DIRECT, f08c47fec0942fa0 # own adsense, pub-0000000000000002, RESELLER, f08c47fec0942fa0 # AdX

Leave a Reply

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