Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

🐛 Bug - adsbygoogle.push() error: No slot size for availableWidth=0 #159

Open
vicglarson opened this issue Mar 15, 2021 · 2 comments
Open
Labels
bug Something isn't working

Comments

@vicglarson
Copy link

Hey.
I have the same issue as described in closed #157

My site layout

.banner
.banner-inline
Adsense

I tried these styles:

theme_foxexeDark .banner {
width: 320px;
height: 190px;
max-height: 190px;
margin: 5px 5px 5px 5px;
}

.banner {
width: 345px;
height: 230px;
max-height: 230px;
margin: 20px 6px 0;
}

.banner-inline {
width: 320px;
min-width: 320px; // with and without
height: 190px;
min-height: 190px; // with and without
}

In both cases i got the same error.

I think it's not about styling, but some race issue.

You can try start from any game on my site, i.e https://play.drova.io/games/agony-unrated

Then navigate to game list (root of site https://play.drova.io/).
At first navigation error occurs.

My apologies if I am mistaken.

@vicglarson vicglarson added the bug Something isn't working label Mar 15, 2021
@hsks
Copy link

hsks commented Mar 29, 2021

Facing the same issue with custom styling for ads

@mazipan
Copy link
Owner

mazipan commented Apr 19, 2021

Maybe wrap it inside some conditional render.

// mounted is `data` that filled set to true after mounted
<div v-if="mounted">
  AdSense here
</div>

@mazipan mazipan changed the title [🐛 Bug] - adsbygoogle.push() error: No slot size for availableWidth=0 🐛 Bug - adsbygoogle.push() error: No slot size for availableWidth=0 Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants