This is driving me crazy and I am hoping I am the problem here.
On my site http://www.windows10update.com, I want to be able to display a superleaderboard 970×90 OR 970×250 OR 728×90 DEPENDING ON the demand from advertisers.
On a traditional wordpress, site, this is accomplished by making the div or code block large enough to support the adsense code and no problem.
It seems like the newspaper theme is trying to decide for me and it has decided that even when set to AUTO, 728×90 is what it should use on desktop sizing.
I need to be able to put my adsense code in and have GOOGLE decide in real time what code should go in that space (728×90, 970×90, 970×250 depending on the highest bid by an advertiser).
How can I accomplish this in Newspaper theme because it seems that the theme may be losing me money if it is restricting the leaderboard sizes I can have.
Thanks.
What I do is put the “responsive” AdSense code in that spot which then allows Google to “load in” the largest banner for that viewport, so full width on desktop, or smaller on iPad portrait, wider on iPad landscape, etc.
This way i don’t have to build in javascript if/then/or logic to load separate fixed size based on viewport — which is basically what TagDiv built into the theme — which is how we’ve all done it outside of what TagDiv baked in.
You can also simply create your own include file, and call that in the ad spot in place of the TagDiv ad code, if you want to hack it — not too hard, just follow the header.php code thread upstream.
Thanks for the response.
I put the responsive code in there but the desktop NEVER loads anything larger than 728×90. I used different browsers and had my friends check as well over several days.
It seems to max out at 728×90 and my frustration is that if it’s truly “Auto” it should be doing 970×90 and 970×250 part of the time.
Does your newspaper site show larger leaderboards just using the standard responsive code in the header?
I actually want the theme to do what you described which is “allows Google to “load in” the largest banner for that viewport, so full width on desktop, or smaller on iPad portrait, wider on iPad landscape, etc.” but my concern is that the theme is not adapting to anything larger than 728px.
I’m hoping that I am wrong or doing something wrong.
I don’t see ads “taller” than the space due to fact I have set a specific div height and div width to 100%, with a border line under my banner space below the menus, above the post content. Presumably setting div height to “auto” might work. I do get the 970×90 99% of the time on desktop.
Here’s the javascript being generated by the theme.
<script type=”text/javascript”>
var td_screen_width = document.body.clientWidth;
if ( td_screen_width >= 1140 ) {
/* large monitors */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:728px;height:90px” data-ad-client=”ca-pub-xxx” data-ad-slot=”xxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( td_screen_width >= 1019 && td_screen_width < 1140 ) {
/* landscape tablets */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:468px;height:60px” data-ad-client=”ca-pub-xxx” data-ad-slot=”xxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( td_screen_width >= 768 && td_screen_width < 1019 ) {
/* portrait tablets */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:468px;height:60px” data-ad-client=”ca-pub-xxx” data-ad-slot=”xxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( td_screen_width < 768 ) {
/* Phones */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:320px;height:50px” data-ad-client=”ca-pub-xxx” data-ad-slot=”xxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
</script>
It seems like on Auto, the theme is deciding that 728×90 is the default large size.
Problem is, Google should be setting that value not TagDiv or Newspaper. If I am reading this properly, I am theoretically losing money if advertisers want to advertise on my site at 970×90 or 970×250.
The entire point of responsive Google code is for Google to send me the HIGHEST bidding advertiser for that size and in many cases, that is 970×90 or 970×250.
Am I wrong?
Hi,
The theme automatically re-sizes your adsense banners if a custom size is not set from theme’s panel: http://screencast.com/t/wradJleK – https://forum.tagdiv.com/header-ad/ and if left as default it sets sizes specific to the device on which it’s loaded. If this is not what you need you can configure this and set the ad sizes for each spot from theme’s panel or if you wish the theme not to handle/interfere with your adsense ad codes you can turn to an adv manager plugin to render your ad codes and use theme’s ad spots just for placements, in that case you can use plugin’s shortcodes to place your ads on theme’s specific ad spots.
Hope this helps!
Let me know if you need additional info on any of these aspects!
Thanks!
Thanks for the awesome theme and support.
Sorry to hear this but glad to hear it from the horses mouth.
May I respectfully suggest a future enhancement? It would be awesome if we could simply use a widget for that spot as another option.
The theme could simply check if the widget is empty and if so use the theme logic instead.
It would solve the problem and avoid third party plugins.
Thanks for an awesome theme!
Just to close this conversation I wanted to add a couple of things.
I ended up using an adserver plugin called CM Ad Changer (http://bit.ly/1VogTjd – affiliate link) and it actually works really well with newspaper theme.
Then I got a response back from Adsense Support who told me that on average 728×90 is their highest paying ad size between (970×90,970×250 and 728×90).
Based on that I removed the ad server plugin and am back to using the theme normally – one less plugin.
All is well.
Thanks again for the great support!
