Google Adsense Error “TagError: adsbygoogle.push() error: No slot size for availableWidth=0 ”

后端 未结 13 1412
梦如初夏
梦如初夏 2021-01-31 08:56

I\'m using responsive Google Ads on my website but unfortunately it is not working all the time and most of time it is returning

TagError: adsbygoogle.pus

13条回答
  •  梦如初夏
    2021-01-31 09:26

    In our case, we had problem displaying two banners but only in Chrome. First banner would not show and it would generate error:

    No slot size for availableWidth=0

    The second banner would be displayed OK. The problem was not happening in Safari or Firefox. Trying to fix the problem via CSS didn't help.

    We solved the problem by changing the:

    (adsbygoogle = window.adsbygoogle || []).push({})
    

    to

    $(document).ready(function(){(adsbygoogle = window.adsbygoogle || []).push({})})
    

    jQuery is required for above method.

提交回复
热议问题