Here are some answers to questions you may have about AdSense ad formats.Expand all Collapse all
Responsive adsHow 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.
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.
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.
availableWidth=0error. 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.
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 adsWhy 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 Brand safety Content Blocking controls Manage 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 Global settings and turn off Let Google optimize the size of your mobile ads.
Sticky adsAm 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.