Fallback ad for empty AdSense and Google Ad

Posted in: Newspaper
Post count: 17

There are times when google shows empty ads on pages
I want to be able to fill empty ads with alternative ads like taboola.

Post count: 21065

Hello!

We tested with our theme only AdSense and banners, but I saw many users using amazon ads, taboola ads or custom ads.
Our documentation for tested ads can be found here: https://forum.tagdiv.com/ads-adsense-overview/ ; https://i.imgur.com/KA1fdCv.png

Thank you!

Post count: 5

Hello thank you for the great theme,

I have the following issue, i add google ad sense code in the theme panel is ADS section.
I add the requestNonPersonalizedAds parameter in my code but there is a js loading tha gives the default code of the ad sense with the IDS i give.

This is a problem when i want the ads to be non personalized.

How can i edit ths script? or is there any way to override it through the panel?

The script is loading starts by: “var td_screen_width = window.innerWidth;
window.addEventListener(“load”, function(){var placeAdEl = document.getElementById(“td-ad-placeholder”);if ( null !== placeAdEl && td_screen_width >= 1140 ) {…”

So the code i add for ad sense is:
<div class=”googleAd”>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-xxx”
data-ad-slot=”xxx”
data-ad-format=”auto”
data-full-width-responsive=”true”>
</ins>

</div>

  • This reply was modified 5 years by ckoulatsi.
  • This reply was modified 5 years by ckoulatsi.
  • This reply was modified 5 years by ckoulatsi.
Post count: 21065

Hello @ckoulatsi!

Please continue the discussion in your own topic.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.