Ads / display:none alternative

Posted in: Newspaper
Post count: 48

It recently came to my attention that the way Newspaper deals with ads isn’t strictly correct.

Basically, let’s say I have a 300×250 ad and I only want it to display on mobiles, I check ‘Disable on Desktop’ ‘Disable on Tablet Landscape’ and ‘Disable on Tablet Portrait’.

Now that’s all well and good, but it’s still loading the ad code, even if it’s not displaying it. Not only is this slowing page load down, but it’s also incorrectly counting impressions.

Is there a way around this, to achieve the same effect, but not have the code loading when it’s not visible?

Many thanks.

Post count: 6600

Hi,

The ad is not rendered only on load by a condition of size screen like you can see here: http://screencast.com/t/wfZijcWtk

On desktop or tablet the ad is not loaded if you have disable it from Theme panel.

Thanks!

Post count: 48

Thanks for the reply, Lucian.

Am I right in thinking that that is only for Google Adsense ads?

If I had a custom code from another network, it would load and only be hidden by display:none in the CSS under the correct @media attribute?

Post count: 6600

Hi,

Yes, the system works only for Google Adsense, if you use other ad media you need to use this as is mentioned in the ad documentation: https://forum.tagdiv.com/ads/ and this hide the ads via CSS with display:none

<div class="td-visible-desktop">
desktop ad code
</div>
<div class="td-visible-tablet-l">
tablet landscape ad code
</div>
<div class="td-visible-tablet-tp">
tablet portrait ad code
</div>
<div class="td-visible-phone">
phones ad code
</div>

Thank for the message!

Post count: 48

So there is no way of displaying non-Adsense ads by platform (mobile/desktop) without using the display:none variable, therefore the code is loading, it’s just not visible?

Post count: 1291

Hi,

It can be done with javascrypt or php, you can specify to render the ad area only on mobile, but it’s not an easy task.

Thank you, Emil G.

Post count: 48

Thanks guys.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.