【问题标题】:Google adsense too small can't customize sizegoogle adsense 太小无法自定义大小
【发布时间】:2016-05-11 11:05:50
【问题描述】:

我遇到了 Google Adsense 尺寸过小的问题。这是我尝试过的代码:

我在下面创建了相同图片的新广告: create new ads screen

这个代码是这样的

     <script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>
     <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  <!-- Test Ads #2016 -->
 <ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-xxxxxxxxxxxxxxxxx"
  data-ad-slot="xxxxxxxxxxxxx"
  data-ad-format="auto"></ins>
<script>
   (adsbygoogle = window.adsbygoogle || []).push({});
</script>

结果看起来这个广告还是太小了:

small ads as result

拜托,有人帮帮我。提前谢谢你!

【问题讨论】:

    标签: adsense


    【解决方案1】:

    如果您想让它成为任何自定义尺寸,您可以转到 adsesne 仪表板 --> 广告单元,然后在那里创建新的。 对于您的代码,您只需插入此代码

    style="display:block"
    

    而不是这个

    style="display:inline-block;width:728px;height:90px"
    

    这将使其成为块,但创建新块的更好方法>

    【讨论】:

    • 感谢您的帮助,但我已经尝试了您的解决方案,但仍然无法正常工作。请看上面的代码,我再试一次。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-15
    • 2017-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多