Please make sure to visit Your AdSense Page where you can find personalized information about your account to help you succeed with AdSense.

Ad units

Ad formats FAQ

Here are some answers to questions you may have about AdSense ad formats.

Expand all  Collapse all

Responsive ads

How do I use responsive ad tag parameters?

Responsive ad tag parameters allow you to change the behavior of your responsive display ad units. For example, to specify a general shape that your ad unit should conform to. To use responsive ad tag parameters, you typically make a small change to your responsive ad code. Learn how to use responsive ad tag parameters.

Can I customize responsive ads to fit my site?

If you find that our responsive ad code doesn't do everything you need, you may modify your ad code to better meet the requirements of your responsive site. These examples of advanced responsive ad code features show you how to correctly make these modifications.

Can I set a maximum width and/or height for my responsive ads?

Yes, you can set the maximum width and/or height. See How to modify your responsive ad code for instructions on how to do this.

In Chrome Dev Tools I get an availableWidth=0 error. What does it mean?

If the following error is returned, it means that when the responsive ad code calculated the available width, the width was 0.

In Chrome Dev Tools I get this error: adsbygoogle.push() error: No slot size for availableWidth=0. What should I do?

This is because your responsive ad code is inside a parent container that has no explicit width set. To fix this, you need to either set the width of the parent container or make the ad unit fixed size.

Fixed-sized ads

Why do fixed-sized ad units sometimes show ads that are a different size from the size I specified?

The following AdSense features that are designed to increase the performance of ad units may cause this to happen:

  • Similar sized display ads lets you show similar-sized but higher performing display ads in your ad units. To opt out of this feature, go to Blocking controls and then Content and then All sites and then Ad serving and turn off Similar sized display ads.
  • Ad size optimization lets Google automatically optimize the size of your ad units on mobile. To opt out of this feature, go to Ads and then Overview and then Global settings and turn off Let Google optimize the size of your mobile ads.
Note: Turning off either of these features may have a negative impact on your ad unit performance.

Sticky ads

Am I allowed to implement sticky ads and what are the policy rules?

Sticky ads are permitted in AdSense. If you are interested in using this format, please see below for technical requirements that you must abide by:

  • Only ad formats with width of 300px or less are allowed.
  • For example, 728x90 is not allowed.
  • 160x600, 300x600, 300x250, 300x50 and 120x600 are all allowed.
  • Sticky ads must not overlap or underlap any other page content. Nor may the ad ever come too close to content, navigational site functions (including scrollbars), or another ad. This includes pages with responsive design and any issues that may arise from resized windows.
  • All ad attributions, and all of the ads content, must be displayed at all times.
  • Ads must scroll into an out of the viewport, they cannot appear or disappear at any point in the scroll.
  • Ads must only move in the vertical axis, without any horizontal scrolling. Sticky units are not allowed to float elsewhere on the page or follow the cursor.
  • Ads must render at a reasonable rate and must scroll smoothly without any choppiness or stuttering.
  • There can only be one sticky ad visible in the viewport at a time. Mirrored sticky units on both sides of the content, or parallel units (horizontally next to each other) on one side of the content are not allowed.
  • These implementations are for desktop only and ads should not be sticky on tablet or mobile optimized versions of a site. Publishers should ensure implementation will be compliant when their site is loaded on tablet/mobile even if the page is not tablet/mobile-optimized.

Native ads

What types of native ads can I implement?

AdSense offers the following native products:

As long as your ads don't exceed your content, you can place as many native and non-native ads on your pages as you want. Learn more about our inventory value policy.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
157
false