Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 12, 20231 yr How I can add different Advertisements if the site opened from mobile device?
August 12, 20231 yr Community Expert 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)
August 12, 20231 yr Author My advertising provider provides me a different JavaScript code to desktop and mobile versions. Edited August 12, 20231 yr by Aleksandr Timashov
August 12, 20231 yr Community Expert 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.
August 12, 20231 yr 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, 20231 yr by AlexWebsites
August 12, 20231 yr Community Expert 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.
August 12, 20231 yr 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.
August 13, 20231 yr Community Expert 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).