adsbygoogle.push() error: No slot size for availableWidth=0 | Blank ads solution
-
Sometimes your AdSense ads are not shown and you see a blank space. This mainly happens when there is not enough space for rendering the AdSense ads.
Sometimes there is enough space but AdSense is not able to detect the available space of the parent element containing the AdSense code because of theme related specifics.
In the javascript error console you will see an error notice like:
adsbygoogle.push() error: No slot size for availableWidth=0
To fix this you can try the following:
Use the Align: Center option in WP QUADS for the AdSense position alignment
If this does not work:
Create a div container around the AdSense code and give it a fixed size corresponding to the desired AdSense format.
If you want to create an rectangular AdSense ad with size 250×250 use the code:
<div style="min-width:250px;min-height:250px;">AdSense code here</div>
- The topic ‘adsbygoogle.push() error: No slot size for availableWidth=0 | Blank ads solution’ is closed to new replies.