Thomas P Posted January 25, 2018 Posted January 25, 2018 Hi folks, how can I hide an Image-Only Advertisement on Mobiles and Tablets? I read that topic here, which isn't what I need since I have no code - just an image. Basically we use Skyscraper which doesn't make any sense on mobiles... Workaround would be to add a single pixel gif using "Upload smaller version", but this sounds awkward to me. Thank you, Thomas
opentype Posted January 25, 2018 Posted January 25, 2018 tl;dr: <div class='ipsResponsive_hidePhone ipsResponsive_hideTablet'> This element *will not* display on phones or tablets, but *will* display on desktops </div>
Thomas P Posted January 25, 2018 Author Posted January 25, 2018 Thanks, appreciate your support - but we use Image Only as Type, so no place to add code
opentype Posted January 25, 2018 Posted January 25, 2018 What happens if you activate “Upload smaller versions?” That’s the built-in function to deal with this issue.
Thomas P Posted January 25, 2018 Author Posted January 25, 2018 We have no smaller version of the advertising material, only workaround is to upload a single pixel gif if I see this correctly...
opentype Posted January 25, 2018 Posted January 25, 2018 35 minutes ago, Thomas P said: We have no smaller version of the advertising material, only workaround is to upload a single pixel gif if I see this correctly... If it only kicks in if something is uploaded there, then yes, do that.
Fast Lane! Posted January 28, 2018 Posted January 28, 2018 On 1/25/2018 at 3:34 AM, Thomas P said: Solved: This is a big mistake. The ad still renders but is hidden with css. Your ad server still registers the impression and charges the end user. If this is a 3rd party network you are likely violating their TOS.
opentype Posted January 28, 2018 Posted January 28, 2018 19 minutes ago, Fast Lane! said: The ad still renders but is hidden with css. No. Display:none means, it is “not rendered”. That’s the whole point. It’s not set to “hidden” or moved from the screen or anything like that. Quote If this is a 3rd party network you are likely violating their TOS. Google specifically allows the case that was discussed here (hiding as part of a responsive design). You are allowed to not show an ad slot at all on smaller devices. Of course you are. It’s not like Google would force you to show the ad slot no matter what. Proof: https://support.google.com/adsense/answer/1354736?hl=en Google’s example code which does exactly that: https://support.google.com/adsense/answer/6307124#hide
Recommended Posts
Archived
This topic is now archived and is closed to further replies.