Ad Stats

Posted in: Newspaper
Post count: 16

I am using an outside ad server (not Google) and use the same ad for desktop and tablets and a different ad code for mobile. The ads all appear as they should using the four codes like the instructions:
<div class=”td-visible-desktop”>
<!– Your NON AdSense code here – this ad will show only on desktops –>
</div>
<div class=”td-visible-tablet-landscape”>
<!– Your NON AdSense code here – this ad will show only on tablets in landscape orientation –>
</div>
<div class=”td-visible-tablet-portrait”>
<!– Your NON AdSense code here – this ad will show only on tablets in portrait orientation –>
</div>
<div class=”td-visible-phone”>
<!– Your NON AdSense code here – this ad will show only on phones –>
</div>

The problem is that the stats on the ad server are not correct since this calls the ads three times and calls the mobile ad for each page load. This inflates the stats for the ads with three times the correct number for desktop and tablets and calls the mobile code even if it is not shown.

Is there a way to use a single code for all but mobile?

Is there a way to not load all four ad codes each time the page is loaded?

Thanks,
Rick

Post count: 22421

Hi Rick,

Unfortunately there is no option for this but you could try to use the td-all-devices class and simply hide the ad for mobile with css.
<div class="td-all-devices"><a href="#"><img src="http://localhost/wordpress/wp-content/uploads/2016/04/rec728.jpg"/></a></div>

Thank you!

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