Support Forums - Classified Ads Script Osclass
Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: davidetnf 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
-
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
-
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
-
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.
<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>