Once your Blogger blog is approved for showing ads you need to add your
Google Adsense publisher ID on Blogger's custom ads.txt file. It is very
simple to set up custom ads.txt on 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 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.
In case you don't know how to monetize your Blogger blog with Google Adsense go through this tutorial:
In case you don't know how to monetize your Blogger blog with Google Adsense go through this tutorial:
In this tutorial we will cover following topics step-by-step:
- How To Get Publisher ID From Adsense
- How To Add Custom Ads.txt on Legacy/Old Blogger
- How To Add Custom Ads.txt on New Blogger
- How To Test Custom Ads.txt
How To Get Published ID From AdSense
- Go to your Google Adsense account & Sign In.
- Click Account.
- Click Account information.
- You will get your Publisher ID here.
- A Publisher ID is a unique identifier for your account.
How To Add Custom Ads.txt On Legacy Blogger
- If you are using New Blogger, go to next step.
- Login to Blogger.
- Click Settings.
- Click Search preferences.
- Click Edit in front of Custom ads.txt ? label under the Monetization section.
- Choose Yes.
- Now enter the following code into textarea.
- google.com, pub-7387121446043699, DIRECT, f08c47fec0942fa0
- Replace pub-7387121446043699 with your Adsense Pub ID as we have guided above, how to get your Adsense Pub ID.
- Click Save Changes.
How To Add Custom Ads.txt On New Blogger
- Click Settings.
- Scroll down to Monetization section.
- Move the slider to your right to enable custom ads.txt.
- Click "Custom ads.txt".
Now enter the following code into textarea.
- google.com, pub-7387121446043699, DIRECT, f08c47fec0942fa0
- Replace pub-7387121446043699 with your Adsense Pub ID as we have guided above, how to get your Adsense Pub ID.
- Click Save.
How To Test Custom Ads.Txt?
Browse your blog and add /ads.txt at the end of your blog URL like this:- https://www.meersworld.net/ads.txt
You will see your customs ads.txt on browser, if there is no error.
Test Ads.txt with "www" and without "www" as well, like:
- http://www.meersworld.net/ads.txt
- https://www.meersworld.net/ads.txt
- http://meersworld.net/ads.txt
- https://meersworld.net/ads.txt
Ads.txt
must be browse with both "www" and "without www". Otherwise you will
get error in Google Adsense. We have suggested the tutorial below to how
to resolve the error.
If you are getting this error on your Google AdSense "Your Earnings at Risk - One or more of your sites does not have Ads.txt" , Read this tutorial:
If you like this post then don't forget to share with people. Share your feedback in the comments section below.
You are welcome to share your ideas with us in the comment!