Aleksandr Timashov Posted August 12, 2023 Posted August 12, 2023 How I can add different Advertisements if the site opened from mobile device?
Jim M Posted August 12, 2023 Posted August 12, 2023 If you're using an advertising provider that provides you with a JavaScript code, they would need to support that. If you're using our advertising module with images, you would simply click the "Use smaller images" to upload images for those particular screens: "Small image" would show on a small screen (aka mobile) "Medium image" would show on a medium screen (aka a tablet or certain desktop resolutions)
Aleksandr Timashov Posted August 12, 2023 Author Posted August 12, 2023 (edited) My advertising provider provides me a different JavaScript code to desktop and mobile versions. Edited August 12, 2023 by Aleksandr Timashov
Jim M Posted August 12, 2023 Posted August 12, 2023 6 minutes ago, Aleksandr Timashov said: My advertising provider provides me a different JavaScript code to desktop and mobile versions. We utilize a responsive design so there are not separate version to place that in. I'm afraid, we do not have means to support that and would fall on your advertisement provider to do so.
AlexWebsites Posted August 12, 2023 Posted August 12, 2023 (edited) 1 hour ago, Aleksandr Timashov said: My advertising provider provides me a different JavaScript code to desktop and mobile versions. Use: <div class='ipsResponsive_showDesktop ipsResponsive_block ipsType_center'> [desktop ad] </div> <div class='ipsResponsive_showTablet ipsResponsive_block ipsType_center'> [tablet ad] </div> <div class='ipsResponsive_showPhone ipsResponsive_block ipsType_center'> [mobile ad] </div> Remove the center class if not needed - ipsType_center Edited August 12, 2023 by AlexWebsites
Jim M Posted August 12, 2023 Posted August 12, 2023 6 minutes ago, AlexWebsites said: Use: <div class='ipsResponsive_showDesktop ipsResponsive_block ipsType_center'> [desktop ad] </div> <div class='ipsResponsive_showTablet ipsResponsive_block ipsType_center'> [tablet ad] </div> <div class='ipsResponsive_showPhone ipsResponsive_block ipsType_center'> [mobile ad] </div> Remove the center class if not needed - ipsType_center This would not suffice most ad handler requirements as this will execute it 3 times. AlexWebsites and DawPi 2
AlexWebsites Posted August 12, 2023 Posted August 12, 2023 5 minutes ago, Jim M said: This would not suffice most ad handler requirements as this will execute it 3 times. I wasn’t aware of that. I’m using for html basic url/image ads, and not JS.
DawPi Posted August 13, 2023 Posted August 13, 2023 And those url/image ads exists in the source code but are hidden. The same situation would be with js code - will be executed but wrapped by ipsHide (or something else to hide). AlexWebsites 1
Recommended Posts