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.
How to set a fixed height (non-responsive sites)
How to set a variable height (responsive sites)
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 button to expand the ad. We do this to provide the best user experience.