Ad code implementation

How to set up Auto ads

To set up Auto ads, you first choose which ad formats you'd like to show across your pages. These will be your "global settings". You then copy and paste the ad code on each page that you want Auto ads to appear. After you've done this, you can choose to show different ad formats on some of your pages by creating a URL group.

Before you start

Check that your site is listed on the Sites page in your account. If not, make sure you add your site before you set up Auto ads. Learn how to manage your sites in AdSense.

Set up Auto ads

To set up Auto ads, follow these steps:

  1. Sign in to your AdSense account.
  2. Click Ads.
  3. On the "Auto ads" page, click Get started.
  4. On the "Choose global settings" page, use the controls to select the ad formats that you'd like to show.
  5. Leave Automatically get new formats selected if you want AdSense to automatically add new ad formats to your global settings as they become available.
  6. Click Save.
  7. On the "Place code on your page" page, click Copy code.
  8. Paste the ad code between the <head> and </head> tags of each page where you want to show Auto ads. If you're not sure how to do this, see our Code implementation guide.
    WordPress user? Get help with adding AdSense code.
    Note that you only need to do this once per page. The ad code is the same for every page on every site where you want to show Auto ads. After you've pasted the ad code, you can still make changes to your Auto ads settings at any time without having to change the ad code.
  9. Click Done.

    Auto ads will start to appear on your pages in about 10-20 minutes.

Tracking the performance of Auto ads

You can track the performance of your Auto ads by viewing the Ad formats report on your Reports page. Auto ads are shown under ad format labels ("Anchor", "Vignettes", etc.) in the report.

Was this helpful?
How can we improve it?