kruny1001
3
kruny1001
commented a year ago

It seems spa version doesn't work.
adsbygoogle.push() error: Only one 'enablepagelevel_ads' allowed per page.

1
Coletrane
20
Coletrane
commented a year ago

can confirm I'm seeing this issue too. The <script> tag for is getting added twice, once in head, once in body.

0
Teranode
0
Teranode
commented 6 months ago

any solution for this?

0
nmbakfm
0
nmbakfm
commented 2 months ago

I got this issue too.

0
tehfonsi
0
tehfonsi
commented a month ago

I worked around this issue using this:

if (process.browser && (!window.adsbygoogle || !window.adsbygoogle.loaded)) {
      (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "<your-ad-id>",
        enable_page_level_ads: true
      });
    }

Open for ideas if someone has a better solution.

0
Informations
Question โ€ข Unresolved
#c6 - Created a year ago