AdSense leaderboard ad code loading MREC

Posted in: Newspaper
Post count: 31

I’ve created a static home page with a custom ad placed below a big grid 3 (Newspaper 6.6.1) via an ad box.

Google AdSense code is specifically for a leaderboard ad (728×90) but in my page on desktop I’m receiving an MREC (300×250). Column layout in visual composer is full width (1/1), so I’d expect it to be a full width banner ad, horizontally centered.

I know Newspaper scales ads to fit the space, but even if it’s a different size ad, I’d expect it to still be a banner form factor rather than a square.

I tried deleting my cache (WP Super Cache) and clearing browser cache. No effect.

Suggestions?

Post count: 9544

For our site we just use the “responsive” code and then fit into a div wide enough for leaderboard and it always loads one.

Post count: 31

You mean create a “responsive” ad unit in Adsense and use that code for the custom_ad_1? Or something else?

Post count: 9544

Yes, exactly so. We use the responsive ad unit, which then “auto fills” the spaces into which we put it. Works for us (your mileage may vary, of course!) 🙂

Post count: 31

Thanks, Chris.

I’ve been using responsive ads on my site so far, with pretty limited results. It seems there aren’t a lot of responsive ads in Google’s inventory.

I’d like to use leaderboards and MRECs since those are two of the most common ad sizes. If I put my leaderboard adsense code in the header ad block, it displays a banner ad. If I put that same code in my page body, it displays an MREC. This is a full width row in a full screen laptop browser, so I’d expect it to be able to fit.

Does Newspaper handle custom ad code differently from ad code in the header, footer, etc.?

I may be asking the wrong question. I’m trying to ad a leaderboard ad below a BigGrid 3 on my home page. I’m trying to use custom ad 1 and an ad box. What’s the recommended method?

Thanks

Post count: 31

Digging into this deeper – I’m pasting code into custom ad 1 that contains this:
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:90px”
data-ad-client=”ca-pub-XXXXXXXXXXXXX”
data-ad-slot=”XXXXXXXXX”></ins>

And I see in the page source it’s turned into different requests depending on the window size, e.g.

if ( td_screen_width >= 1140 ) {
/* large monitors */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:300px;height:250px” data-ad-client=”ca-pub-XXXXXXXXXXXXX” data-ad-slot=”XXXXXXX”></ins>’);

So one question is why is the size for large monitors set to 300×250? In fact, they’re all set to 300×250 except for portrait tablets which is set to 200×200 for some reason.

I think there’s an error in the custom ad handling code.

Post count: 9544

Dunno. I only use ads below menu above the fold of content and then in sidebars. Putting them in content lowered page views for our news sites, so we stopped doing that even though AdSense keeps “recommending” we put them there 🙂

Post count: 22421

Hello,
The theme actually does use different methods for implementing ads. The standard adsense code can be placed in the theme panel and should display fine. But custom codes or non-adsense must be placed using this method: https://forum.tagdiv.com/using-other-ads/
Thank you!

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