Notification

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

Set the height of your In-feed ad

AdSense automatically adjusts the height of In-feed ads to ensure they fit well in the available space. This automatic sizing means that most publishers won't need to make any changes to the height of their In-feed ads. However, if you have specific requirements for the height of your In-feed ad, you can modify your In-feed ad code to set the height you want. Depending on whether your feed is on a non-responsive or a responsive site, you can either set a fixed height or a variable height.

Note: The examples described in this article are acceptable modifications of the AdSense ad code. You won't violate the AdSense Program policies by modifying your In-feed ad code in these approved ways.
After you've changed your ad code don’t forget to test your In-feed ad on various screen sizes to make sure the height you've chosen works across devices.

Why do my In-feed ads sometimes have extra whitespace or a More button?

In-feed ad units are responsive and support a wide range of viewports. They automatically adapt their size to fit your page layout by expanding to the full width of the feed container they're inside. Their height is based on the content of the ad itself and the In-feed ad settings you've chosen in AdSense.

Occasionally, when an In-feed ad is in the user's viewport (above the fold), we're not able to adjust the ad height without causing your content below the ad to reflow. In these cases, we might leave some empty space or show a More More button button to expand the ad. We do this to provide the best user experience.

Was this helpful?

How can we improve it?
true
Unlock Growth Potential

Don't miss out on valuable AdSense insights. Opt in to receive performance reports, personalized tips, and webinar invites that can help boost your earnings

Opt in

Search
Clear search
Close search
Main menu
3578692085970970444
true
Search Help Center
true
true
true
true
true
157
false
false
false
false