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

后端 未结 13 1397
梦如初夏
梦如初夏 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:37

    It's been all day that I've tried to find a solution to the error, and I'd like to thank @Emerson Thompson for his solution!

    On one environment I'm working in, I depend on the Ad Inserter Pro for WordPress plugin. It turns out that the plugin prints the HTML for all the layouts (mobile and desktop). With viewport width as a criterion, it then hides some using CSS.

    When adsbygoogle.js finds a hidden ad, it throws the TagError: adsbygoogle.push() error: No slot size for availableWidth=0 exception blocking subsequent javascript execution.

    Be sure to check your ad visibility before to initialize them.

提交回复
热议问题