*

davidetnf

  • *
  • 2 posts
Google ads banner doesn't work correctly
« on: February 07, 2018, 03:19:22 PM »
hi guys, I have a problem with Google Ads banner in theme settings. I copy this code(changing the google_ad_client) in head.php:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-XXXXXXXXXXXX",
    enable_page_level_ads: true
  });
</script>

and I see the banner on the top of categories (desktop view) and banner bottom in smartphone view.
Could you tell me which code I have to put in Banner setting of Veronika Theme?
thanks

*

Ivanko

  • *****
  • 391 posts
Re: Google ads banner doesn't work correctly
« Reply #1 on: February 07, 2018, 10:00:26 PM »
hi guys, I have a problem with Google Ads banner in theme settings. I copy this code(changing the google_ad_client) in head.php:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-XXXXXXXXXXXX",
    enable_page_level_ads: true
  });
</script>

and I see the banner on the top of categories (desktop view) and banner bottom in smartphone view.
Could you tell me which code I have to put in Banner setting of Veronika Theme?
thanks

In Veronika theme settings you have BANNER SETTINGS , insert code there , in various places , where you want to see the banner on your site
« Last Edit: February 07, 2018, 10:03:17 PM by Ivanko »

*

davidetnf

  • *
  • 2 posts
Re: Google ads banner doesn't work correctly
« Reply #2 on: February 07, 2018, 10:11:11 PM »
Hi ivanco, thanks for your answer. I know it but if I put the same code:
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-xxxxxxxxxxxx",
    enable_page_level_ads: true
  });
</script>
the console show me this error message(look the image).I tryed with showads.js (another js of google adsense) and it doen't work.
and I haven't put the code for showing the banner in that position(on top of categories, as you see in the first image).
Thanks

*

Ivanko

  • *****
  • 391 posts
Re: Google ads banner doesn't work correctly
« Reply #3 on: February 07, 2018, 10:33:45 PM »
I using only 1 google adsence code in various places.
Using adaptive ad.
Usually google allows 3 ads per page, may you have somewhere duplicated code else...
Try to remove code from head where did u put, and insert in theme BANNERS setting, check how works.

Code: [Select]
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- adaptive ad -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-36217XXXXXXXXXX"
     data-ad-slot="XXXXXXXXXX"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
« Last Edit: February 07, 2018, 10:37:46 PM by Ivanko »