How to Set Up Custom Ads txt on Blogger | Get AdSense Pub ID

Updated:

by

How To Add Custom Ads Txt On Blogger & Get Pub ID From Adsense

Do you want to set up Custom ads.txt on Blogger? You’re in the right place. In this tutorial, I will guide you step-by-step on How to get your Publisher ID on Google AdSense account, and How to setup/add Custom ads.txt on Blogger. You don’t need any third-party Custom Ads Txt Generator for Blogger.

Ads.txt is an IAB (Interactive Advertising Bureau) initiative that helps ensure that your digital ad inventory is only sold through sellers (such as AdSense) who you’ve identified as authorized.

Creating your own Custom ads.txt file gives you more control over who’s allowed to sell ads on your site and helps prevent counterfeit inventory from being presented to advertisers.

What is the role of Publisher ID on Custom Ads.txt?

The Publisher ID is a unique identifier for your Google AdSense account. This ID is used when you communicate with Google. Once your Blogger blog is approved for showing ads you need to add your Google Adsense publisher ID in Blogger’s Custom ads.txt file.

In case you don’t know how to monetize your Blogger blog with Google Adsense, go through this tutorial:

Following topics will be covered in this post:

  • How to Get Publisher ID on Adsense
  • How to Set Up Custom ads.txt on Blogger
  • How to Test Custom ads.txt

RELATED

01. How To Get Publisher ID on AdSense

In this section, I will guide you step-by-step on how to get/copy Publisher ID from your Google AdSense account.

  • Go to your Google Adsense account & Sign In. You can also open AdSense account from Blogger’s Earnings tab.
  • On your Google AdSense account, click the Account from the sidebar.
  • Expand the Settings tab.
  • Click the Account information.
  • Copy your AdSense Published ID located under the Account information. It starts with “pub-784353…………“.
On your Google AdSense account, click the Account from the sidebar. Expand the Settings tab. Click the Account information. Copy your AdSense Published ID

02. How To Set Up Custom ads.txt on Blogger

You have copied your Google AdSense Publisher ID, now I will guide on how to set up Custom ads.txt on Blogger.

  • Login to your Blogger account.
  • Go to sidebar and click the Settings.
  • Scroll down to Monetization section.
  • Drag the slider towards right to enable the Custom ads.txt.
  • Click on Custom ads.txt.
Go to sidebar and click the Settings. Scroll down to Monetization section. Drag the slider towards right to enable the Custom ads.txt. Click on Custom ads.txt.

Now Copy and Paste the following code into Custom ads.txt:

google.com, pub-7387121446043699, DIRECT, f08c47fec0942fa0
  • Replace pub-7387121446043699 with your Adsense Publisher ID as I have guided in the Section 1 (How to Get your Adsense Publisher ID). The other three parts i.e. “google.com”, “DIRECT”, and “f08c47fec0942fa0” will remain same.
  • Click Save.
Replace pub-7387121446043699 with your Adsense Publisher ID.
  • You can see that the Custom ads.txt has been added on the Blogger.
You can see that the Custom ads.txt has been added on the Blogger.

03. How To Test Custom Ads.Txt?

The Custom ads.txt has been set up on Blogger, now it is time to test by browsing it on browser with all the combinations of your blog URL.

Browse your blog and add “/ads.txt” at the end of your blog URL like this:

  • https://www.example.blogspot.com/ads.txt

Test ads.txt in 4 different ways i.e. “with www“, “without www“, “with https“, and “with http” as shown below. Replace “example” with your Blogger domain. Your ads.txt should be accessible/opened with all the combinations of your blog URL. If the ads.txt is accessible you can see your Custom ads.txt on browser, as I have shown below.

  1. http://www.example.blogspot.com/ads.txt
  2. https://www.example.blogspot.com/ads.txt
  3. http://example.blogspot.com/ads.txt
  4. https://example.blogspot.com/ads.txt
Browse your blog and add "/ads.txt" at the end of your blog URL

If your ads.txt is not accessible with any of the above combination of your blog URL you will get a warning, “Your Earnings at Risk – One or more of your sites does not have Ads.txt” on your Google Adsense account.

If you are getting the above warning after setting up the Custom Ads.txt on Blogger, read this tutorial:

If you like this post then don’t forget to share with the other people. Share your feedback in the comments section below. Get access to all the Blogger Tutorials.

Blogger Templates

Also Read

Related Topics: , , , ,
Buy Domain and Hosting on Namecheap Now
Rank Math Best SEO WordPress Plugin Download
Download Website Themes
Mangools SEO Tools
Order Motivational T-Shirts With Quotes from Our Store Fire Ram 23.4.

Subscribe to Our Newsletter!

18 responses

  1. Avatar

    hey hi Meer, ur blog really helped me … I just want to say thank you so much . thank you for creating this blog for the people like me who wants to do blogging n doesn’t know from where to start n how to do … u did a fantastic job i must say … thank you thank you thank you..

    1. Avatar

      the below message i get when i try custom ads.txt with my blog url including https://www.pauranikpradnya.blogspot.com/ads.txt

      Your connection is not private
      Attackers might be trying to steal your information from http://www.pauranikpradnya.blogspot.com (for example, passwords, messages, or credit cards). Learn more
      NET::ERR_CERT_COMMON_NAME_INVALID

      please help please please

      1. Meer Basit

        I don’t see any error. Your site supports “Https”.

    2. Meer Basit

      You’re most welcome Nishtha. Thanks for your appreciation.

  2. Avatar

    Thanks so much, you explained it to me better than google help 🙂

    1. Meer Basit

      You’re most welcome Nevena!

  3. Avatar
    Anonymous

    please visit https://www.myafricaweb.com/ is it ok for blog website

    1. Meer Basit

      It is not that bad, you can make lot of improvements. Make sure to write original and unique content. Read this, it will help you a lot: https://www.meersworld.net/2020/01/how-to-fix-valuable-inventory-no-content.html

  4. Avatar

    Thanks. Your article really helps me resolve my problems.

    1. Meer Basit

      You’re welcome, Syuhada Idris!

  5. Avatar

    kindly tell me how to get your AdSense account approved

    1. Meer Basit

      Create original valuable content, content that offers value to advertisers, bring organic traffic to blog, use ads friendly template. For further help read this tutorial: https://www.meersworld.net/2020/01/how-to-fix-valuable-inventory-no-content.html

  6. Avatar
    Anonymous

    Your site is. Awesome .I have a problem ,please if you guide me , How to creat photo/video gallery in my blog .

    1. Meer Basit

      You’re welcome, Rico!

  7. Avatar

    Is it necessary to do the custom ads.text before Adsense could approve a blog? You can see the site here http://www.workerdata.site

    1. Meer Basit

      You get Publisher ID only when your website is approved on AdSense. In your Custom Ads.txt you have to add “Publisher ID”, so it means that you can configure Custom Ads.txt once your website is approved by Google AdSense.

Leave a Reply

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