Change Head Ad Sizes for PC, Table and Mobile

Posted in: Newspaper
Post count: 14

I am trying to display three different ad sizes depending on whether the screen is a PC, Tablet or Phone. I found this link but it’s depreciated

https://forum.tagdiv.com/header-ads-adsense/

I tried changing the view in the editor and pasting different code in the Ad Bock for each view, but it appears to simply show only the last code added and not retain seperate code for each block.

I also tried the Ad Header block – but the settings there don’t allow seperate code for each screen size – just turning off for mobile.

So how can I achieve this please?

Post count: 21065

Hello!

For cloud templates, the settings are here: https://app.screencast.com/pfz5YYesOpG01 -> https://app.screencast.com/6oQj7sw6YeGKL
More info here: https://forum.tagdiv.com/ads-adsense-overview/

Thank you!

Post count: 14

Thank you. The code suggested on the depreciated page allowed you to wrap ad images and control which one appears in pc, tablet or phone. The settings on the Ad Block and on the Ad page in the back end don’t appear to allow for this – you can turn on/off pc/phone dispaly for one header ad, but as far as I can see you cannot control three. I am using the Google Ad Manager to serve three seperate creatives with these tag types:

<div class=”td-visible-tablet-landscape td-visible-tablet-portrait”>
<div class=”td-visible-phone”>

Which seems to partially work – but as the page is depreciated I thought you might have replace this div class wrapper with a new format?

Post count: 21065

Hello!

If you use cloud templates and did not set up to take the ad from the theme panel, it won’t display. I’m not sure how you set your ads, but please set it as I described above and then it should work well.

Thank you!

Post count: 14

Sorry you sent me a generic set of instructions and I have explained the issue. You are not answering my question. I have explained in detail the use case, how your old code was a solution and why your earlier suggestions do not work. Please answer my question or refer me to someone who understands what I am asking.

Post count: 21065

Hello!

Did you see this important section: https://app.screencast.com/JgzRTfpZKslWT? These are not working with cloud templates. I’m not sure exactly what you need to achieve or which types of templates you use. Please provide more information about your issue or what you need to achieve, so I can help you efficiently.

Thank you!

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