Adsense 设置移动设备上谷歌响应广告单元的最大高度

Adsense 设置移动设备上谷歌响应广告单元的最大高度,adsense,Adsense,我已经尝试了几种方法来限制谷歌响应广告单元的最大高度 我已尝试在包含div和ins标记上设置height和max height 我还尝试将数据ad format=“horizontal”设置为默认值“auto” (adsbygoogle=window.adsbygoogle | |[]).push({}); 这些方法都没有任何效果,结果总是在移动设备上显示300x250像素的广告 我做错了什么?移动设备是否有单独的设置?这些都可以在桌面上使用,但我无法限制手机广告的高度 <div st

我已经尝试了几种方法来限制谷歌响应广告单元的最大高度

我已尝试在包含div和ins标记上设置height和max height

我还尝试将数据ad format=“horizontal”设置为默认值“auto”


(adsbygoogle=window.adsbygoogle | |[]).push({});
这些方法都没有任何效果,结果总是在移动设备上显示300x250像素的广告

我做错了什么?移动设备是否有单独的设置?这些都可以在桌面上使用,但我无法限制手机广告的高度

<div style="height: 60px; max-height: 60px">
    <!-- Responsive center ad -->
    <ins class="adsbygoogle"
         style="height: 60px; max-height: 60px;"
         data-ad-client="ca-pub-xxx"
         data-ad-slot="xxx"
         data-ad-format="horizontal"
         data-full-width-responsive="true"></ins>
    <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
</div>