How to implement Google AdSense Auto Ads

Join InfoPhilic Community!

Let's build a community to help & encourage each other to grow!

Creating quality content is essential for your site/blog to grow. Although, it is one of the strategies to make money online.

Google AdSense is a best-known ad network that helps publishers make money from their content. It is the best contextual high-paying ad service among all ad networks. Almost 80% web publishers across the globe use AdSense.

Using Adsense program is really exciting. But, you must keep the user experience in mind during ads placement. Ads placement is critical and should be at eye level where people are stationary.

Google offers great importance to user experience and ads placement plays a major role in it. AdSense heat map is the best guide that provides you guide about ads placement according to your site type.

Google regularly changes their policies. Similarly, it has newly created a whole different way of ads placement called AdSense Auto ads.

What exactly are Google AdSense Auto ads?

Google AdSense Auto ad is a new and better approach to put advertisements on your site. It basically uses a machine learning algorithm that automatically detects the best place for ads placement and monetizes your ads smartly.

It will first analyze your pages, figure out potential ad placements, and show new ads when they’re likely to perform well and provide a good user experience.

What you have to do is, place the code for once to all your pages. Google will start to deal with the rest. If you want to serve different types of ads on different pages, you just have to click new features and ad formats and turn them on. And that’s it.

Various AdSense ad formats that are available for auto ads placement.
Various AdSense ad formats that are available for auto ads placement.

Benefits of AdSense Auto Ads:

  • Optimization: Using machine learning, Auto ads show ads only when they are likely to perform well and provide a good user experience.
  • Increased Revenue: It will automatically detect any available ad space for placing ads. Thus, more ads mean increased ads revenue.
  • Time saver: Once you put the piece of code there, Google will take care of rest.
  1. If you have page level ads enabled, you don’t need to add separate code for auto ads as code for page level ads and auto ads is same.
  2. You can use auto ads along with existing manually placed ads units on your website. Auto ads will consider your manual ads placement before it triggers more ads on the same page.

How to serve Google AdSense Auto Ads on your blog or site?

Here are some simple steps you need to follow and get started with it.

  • Sign in to your AdSense account.
  • In the left navigation panel, visit My ads and select Get Started.
  • On the “Choose your global settings” page, select the ad formats that you’d like to show and click Save.
  • On the next page, click Copy code.

    Place the Auto ads code on your pages
    Place the Auto ads code on your pages
  • Paste the ad code between the <head> and </head> tags of each page where you want to show Auto ads.
  • Auto ads will start to appear on your pages in about 10-20 minutes.

Implement Google Auto Ads in Blogger

In the blogger dashboard, navigate to theme section. Click on edit HTML.

Edit theme in Blogger
Edit theme in Blogger

Now click in the editor section and hit CTRL + F  and type  </head> in search bar as shown in the screenshot below. Now paste your Google auto ads code just before </head> and hit save theme button. That’s it.

Adding Google Auto Ads in blogger using theme editor
Theme editor in Blogger

How to customize Google Auto Ads?

Adding code will show ads on all pages on your website or a blog. Let’s take an example for an instance if your blog is on WordPress CMS then you will have to put this code in the theme’s header file. This will show ads on all pages on your WordPress site.  But many of publishers don’t want to show ads on some pages like the homepage. So for this, you can use Advanced URL Settings in the Auto Ads.

Advanced URL settings in Auto Ads
Advanced URL settings in Auto Ads

You can add as many URL you want to customize or turn off ads on.

To create a URL group, Click New URL group.

On the “Select URLs” page, select the URLs you want to add to your URL group. If you don’t see a specific URL, you can click Add URL and add it to your list.
Click Next. You can add a domain, subdomain, page or a category page.

Input URLs you want to add to your URL group
Input URLs you want to add to your URL group

On the “Select ads” page, use the controls to select the ad formats for your URL group.

If you don’t want to show any ads on the URLs you’ve selected for your URL group, leave all the ad formats unselected. For example, you might want to show no ads on your homepage and about page.

Leave Automatically get new formats selected if you want AdSense to automatically add new ad formats to your URL group as they become available.

Click Next.

name URL group
name URL group

On the “Review” page, give your URL group a name and check the assignment summary.
Click SAVE.

AdSense auto ads disabled on homepage
AdSense auto ads disabled on homepage

The new settings will be applied to your selected URLs in about 10-20 minutes.

How to Disable a URL group in auto ads?

If you no longer need a URL group, you can disable it by deselecting all the URLs in the group.

AdSense auto ads disabled advanced URL group
AdSense auto ads disabled advanced URL group

Remember, URL group settings override your global settings on the domains, subdomains, site sections or pages you’ve selected.

Google Auto Ads showing many ads?

Enabling Google auto ads may start showing many ads on your site. This is because by default ad balance ratio is set to 100%. You can use ad balance to reduce the number of ads on your site.

To change ad balance ratio, go to your AdSense dashboard >> My ads >> Ad balance

ad balance in AdSense
ad balance in AdSense

What do you think about this new feature? Let me know in the comment section below. Along with this, you might like to read my article on How to Increase AdSense Revenue.

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Comment Policy: Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.


  1. I am trying to implement Google AdSense Auto Ads on my new site “”.
    I wish to show the ad on the whole site, therefore, wants to know where to add the code, in particular, it says to paste the ad code between the and tags of each page where you want to show Auto ads.

    Please help at the earliest.

  2. I’m using the only auto ad on my website but it only shows two ads per page. I want it show infeed ad. What I’ve to do.

  3. Hi! Great post.
    I’m struggling with Adsense. I added URLs so that I could control what/where ads would show because I didn’t know I could do it for my homepage only. Anyway. So I created one for my homepage to exclude ads and wanted to remove the other two but when I tried it told me to unassign, and when I tried to do that I ended up grouping the two other URLs with that of my homepage. The two URLs look disabled and the homepage URL looks active, but my concern is no ads are showing on the two other pages and I wonder if it’s because I grouped them with my homepage that has all ads turned off.

    Can you provide the steps for properly removing URLs? Is there a reset option anywhere?

    Thank you.

  4. Hi Amit Malewar , I am Sharaz . i have a Website and i am using Adsense Auto Ads for My Website But i Dont Know How To Avoid Invalid Clicks on Website Auto Ads .
    you Know Auto Ads code only put on website Header . So For Header Section Which Plugin i Should Use To Avoid Invalid Clicks ???
    Kindly Help Me 🤔

  5. Auto ad is obviously best thing that ever happened to webmasters monetizing their blogs with Adsense…am so loving the technology

  6. First, I installed Advanced Ads plugin for auto ads, after reading this post, added code in header.php and uninstalled plugins. Thanks.

  7. Hi Amit,

    Auto ads are not showing on the home page of my WordPress blog on desktop. It's working on mobile version though. I'm using Child Theme on my blog and I've inserted the AdSense auto ads code in Child Theme Header.

    • Hello Raj,

      1. Make sure you have added Auto ad code under <code><head></code> section.
      If you're using Cloudflare, try disabling Rocket loader from Cloudflare's dashboard.

  8. Thanks for the information Amit, I have a blogspot blog sherekhudahazratali my query is while I inserted google auto ads code between head tags my page speed get down. so can please help me to provide the best location to put ads code which cannot effect on my page speed.

    Waiting for your reply.

  9. I am using genesis cheild theme and cloudflare cdn. In my case no ads showing on header and widget section. What can be the issue ?? SIR please help me.

  10. Thank you, Mr. Amit, for the valuable info, I am struggling with my google site for adding auto ads which are not possible kindly help me.



Please enter your comment!
Please enter your name here


Start WordPress Blog: Ultimate Guide For Beginners

Here is our step by step guide for beginners to start a WordPress blog.

Top 6 Best WordPress Theme Frameworks

There are many websites themes which are created by using a framework. Likewise, WordPress Theme frameworks also becoming so popular. The framework allows you...

The Most Essential WordPress Plugins

Here, I have listed some excellent plugins which will surely add more features and new functionality to your WordPress blog.

Tips to Speed Up WordPress Performance

Here, I am sharing some tips to speed up WordPress performance. All you need to modify .htaccess file on your server and add some plugins.

The Ultimate Guide to Harden WordPress Security

Learn how to improve WordPress security. Here are some basic security concepts that will help you to harden WordPress security.

How to Setup CloudFlare Free SSL for WordPress Blog

Google has announced that they will count HTTPS as a ranking factor which means if you using HTTPS you will get a higher position...



SEOPressor plugin gives you maximum SEO clarity on your WordPress sites with features designed for controlling WordPress SEO with ease.


Get almost 100% PageSpeed on Newspaper theme

The newspaper theme is the most popular premium theme for a self-hosted WordPress blog. The theme is developed by team tagDiv. You...

How to Remove jQuery Migrate in WordPress?

jQuery Migrate greatly simplifies the process of moving older jQuery code to a higher jQuery version by identifying deprecated features. It then restores deprecated...

How to configure WP-Rocket plugin for WordPress site

When it comes to optimizing your website, the role of caching in WordPress can never be underestimated. What exactly is caching all about?...

How to Delete Multiple Images in WordPress Media Gallery

Hey, guys today one of my friends asked me a question, How can I delete Multiple Images in WordPress? I replied, "It's very simple." Yeah,...

Xperia Home Launcher: Install on any Android Device (No Root)

Hey, guys today through this tutorial you are going to learn how to install Xperia Home Launcher on any Android device without any root. Also...

How to create News Sitemap for WordPress site?

Learn how to create special news sitemap for your WordPress blog/ website using Yoast News SEO plugin and Jetpack plugin.