AdSense publisher ID

How to add “ads.txt” file to Google Blogger blog (in 5 minutes!)

Do you have your blog monetized with Google AdSense or a similar ad network? In the next 5 minutes or less, you will setup ads.txt for your Blogger blog!

Content

  1. What is ads.txt file for?
  2. How to get your unique publisher ID from AdSense
  3. Steps to Add Ads.txt file to Google Blogger
  4. How to confirm that ads.txt has been properly added to your blog.

Let’s get started…

1. What is ads.txt file for?

Adding ads.txt file (eg. for Google AdSense) to your blog or website is a way to publicly declare that Google is authorized to show ads on your blog. It’s a way to declare that you approve AdSense program for your blog. [ref]

Note that adding ads.txt file in your website is a recommended thing to do, but I don’t think there is a penalty yet for not having it.

Let me show you how this is done using Google AdSense as an example. There are other programs similar to AdSense but since AdSense is the most popular one, I will use it in this example.

The steps are the same whether it’s AdSense or any other ads program. The only difference is in the code you will paste into the ads.txt file.

2. How to get your unique publisher ID from AdSense

Step 1: Login to Your AdSense account so you can copy your AdSense publisher ID

Step 2: In your AdSense account, click Account > Settings Account information:

AdSense Account information
AdSense Account information

Step 3: Copy your AdSense publisher ID there (see the arrow in the image):

AdSense publisher ID
AdSense publisher ID

Now we are done with AdSense. Let’s head over to Blogger

3. Steps to add ads.txt in Blogger

Before the details, here is a summary of the steps:

  1. Click the Down Arrow Button at the top left of your Blogger blog
  2. Select the blog where you want to add ads.txt file.
  3. Click the Settings button on the left
  4. Under “Settings,” click Search Preferences.
  5. Under “Monetization,” Click “Edit” where it says “Custom ads.txt”.
  6. Click Yes.
  7. Copy the text for the ads.txt from the ads program you want to add and paste it there.
  8. Click Save settings to finish the setup.

Step 1: Login to Google Blogger and select the blog where you want setup ads.txt for Google AdSense

Step 2: From the menu on the left, click the Settings > Search Preferences:

Blogger settings
Blogger settings

Step 3: Under Monetization, Click Edit where it says “Custom ads.txt” and select “Yes“:

Blogger custom ads.txt settings
Blogger custom ads.txt settings

Copy the text below and replace ONLY 0000000000000000 with NUMBER part of your publisher id you copied in the previous step:

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

That is, REPLACE 0000000000000000 with the numbers in your publisher id. The “pub-” part of your id is already there, so only the number part is what you need to replace.

For example, if my publisher id is pub-1234567890123456 Then what I will have is:

google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0

Step 4: Paste the resulting text (after you have replaced 000… with the numbers in your pub- id) into the “Custom ads.txt”:

Blogger custom ads.txt
Blogger custom ads.txt

Step 5: Click Save settings to finish the setup.

Once again, note that 0000000000000000 is just an example. So make sure to replace it with the numbers in your publisher id.

How to check if ads.txt has been added to your website or blog

To confirm that ads.txt has been successfully added to your blog, simply go to yourblog.com/ads.txt

For example, if your blog address is zestmade.com, then go to zestmade.com/ads.txt and you will see the text you pasted into the ads.txt file.

Now show some love by sharing this post. Thanks!

Leave a Comment

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