The Optimization tab

Ad sizes optimization setting

Let Google optimize your ad units on mobile

You can let Google automatically optimize the size of your ad units on mobile. There's no need to create new ad units or change your ad code. Your existing ad units will change their size based on the context and orientation of the user's device, and may show larger ads, full-width ads, etc. As a result, more ads will be eligible to fill your ad units, potentially leading to an increase in revenue.

Limitations

This optimization setting only works on mobile-optimized sites. In addition, we're unable to optimize in the following scenarios:

  • Iframed ad units (this includes ad units served through ad servers such as Google Ad Manager)
  • Ad units within a parent container that has restricted dimensions (e.g., a fixed height, overflow: hidden, etc.).
  • A user's first page view, because we use their first page view to get the ad sizes optimization setting from your account. For the user's subsequent page views, we apply your setting.

Preview automatically optimized ads on your site

You can preview the behavior of this optimization setting on your site before you turn it on.

On a mobile device

  1. Visit your site, and add #google_responsive_slot_preview to the end of your page's URL.
  2. Refresh the page.
  3. Toggle the orientation between landscape and portrait to see different ad sizes.

On desktop using the Google Chrome browser

  1. Open your site in a new tab, and add #google_responsive_slot_preview to the end of your page's URL.
  2. Toggle "Device mode" on. See Simulate Mobile Devices with Device Mode for instructions on how to do this.
  3. Select a mobile device from the drop-down list (e.g., Pixel 2 or iPhone 6/7/8).
  4. Refresh the page.
  5. Toggle the orientation between landscape and portrait to see different ad sizes.

These steps will be similar on other browsers. See your browser's documentation for more information.

Turn on the ad sizes optimization setting

  1. Sign in to your AdSense account.
  2. Click Optimization.
  3. Click Settings Settings.
  4. In the "Ad sizes" section, select an option:
    • Optimize 100% of mobile page views (recommended)

      Google will automatically optimize all of your Text & display page views to have the best ad unit sizes

    • Don’t optimize

      Google won't optimize your text & display page views.

Was this helpful?
How can we improve it?