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
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.