How to set up Auto Ads by Google AdSense

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% of web publishers across the globe use AdSense.

Using the Adsense program is 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 ad placement plays a significant role in it. An AdSense heat map is the best guide that provides you guide about ads placement according to your site type.

Google regularly changes its 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 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 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 ad 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 are the same.
  2. You can use auto ads along with existing manually placed ad units on your website. Auto ads will consider the placement of your manual ad 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 and 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 the 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 in the search bar as shown in the screenshot below. Now paste your Google auto ads code just before 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. It will show ads on all pages on your WordPress site. But many 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 URLs you want to customize or turn off ads.

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 the homepage

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

How to Disable auto ads on some pages?

If you no longer want to display ads on some of your website pages, then you can use the page exclusion option.

Goto Google AdSense dashboard. Under Ads option, click on Overview. You will see ads setup by sites.

Click the edit icon for the site you want to edit setup. It will open Auto Ad settings for the site.

Google AdSense auto ad setup
Google AdSense auto ad setup

Here you can see the option to add page exclusions.

Google AdSense auto ad site setup
Google AdSense auto ad site setup

Hit on the Manage button.

Click on Add Exclusion

Manage page exclusion
Manage page exclusion

Add URL where you want to remove AdSense auto ads.

Here you will get two options

  1. This page only: Exclude ads on the exact URL match only
  2. All pages under this section: Use this to remove auto ads from a specific category or on URL pattern.
Adding a single page to the exclusion list of Google Auto ads
Adding a single page to the exclusion list of Google Auto ads

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. It is because by default ad balance ratio is set to 100%. You can use ad balance to reduce the number of advertisements on your website.

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.

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


Kinsta Hosting

Highly optimized servers for lightning-fast sites. High-security environment hack-fix guarantee. WordPress support experts at your fingertips. GRAB THIS DEAL


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...


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 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,...

How To Reduce Admin-Ajax Server Load In WordPress

To increase better user experience, we always end up by increasing site speed. After clicking a website link seems like a simple...

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 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.