How to Control the Size of Google AdSense Responsive Ad Unit

Responsive Ad Unit is a new type of Google AdSense ad unit. It is still on preview status. But we can use it in our web pages.

The most requested question should be how to control its size even it can be change size automatically due to the space size which you give it. However, sometimes we still need to limited its size. Especially since it is still a preview version, it casually show a over-sized Ad unit on our web page.

“A responsive ad unit allows you to control the size of the ads on your page…”, this is the policy on the Google AdSense official website.

Google allows us to modify the ad code as long as we do not violate their policies.

The following is an example to change the ad unit code (see code in red color)

<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
     style=”display:block;min-width:330px;max-width:330px;width:100%;height:280px
     data-ad-client=”us-pub-xxxxxxxxx”
     data-ad-slot=”1234567″
     data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Check Google website to get more details guide.