Adsense is not displayed sometimes


#1

Hi Everyone,

I am using Vue with SSR and having problems with Adsense. I tried several options but none solved the issue properly. The most annoying part is that the ads are sometimes displayed and sometimes not. You can see my website in the following link and if you click to any post, tag, user or location you should see posts.

https://www.toopics.com/

So far I tried these libraries:

These codes:

<script2 async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script2>
 <ins class="adsbygoogle"
    	 style="display:block; width:300px; height: 250px;"
    	 data-ad-format="fluid"
    	 data-ad-client="ca-pub-xxx"
    	 data-ad-slot="xxx"></ins>
<script2>(adsbygoogle = window.adsbygoogle || []).push({});<script2>
  • I also tried moving push part in mounted method with and without giving some timeout.
  • I also tried removing script import and moving it to my index.template.html
  • I do not see any error in node server log or in browser log.

My server is on DigitalOcean and I am also using CloudFlare.

Still sometimes I can see ads and sometimes it is just blank. It looks like I am getting an empty response from Adsense.

Please help me or guide me to the right direction


#2

How did you solve it later?