Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthoremmynet
    • CommentTimeMay 19th 2015
     

    i want a situation where certain ads will only be visible to mobile traffic so i want to know if the plugin can detects mobile view and serve the ads meant for the mobile view to mobile users?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMay 24th 2015 edited
     
    Project Admin

    OIO doesn't do any form of mobile device detection. You'd need to use something else to do that (e.g. detect the device in javascript and then wrap OIO's ad zone code in a condition to tell the browser whether to display it).

    A simple example below, based on screen width:

    <script>
    if(screen.width <= 640) {
    document.write('<scr'+'ipt src="http://yoursite.com/wp-content/plugins/oiopub-direct/js.php#type=banner&zone=1"></scr'+'ipt>');
    }
    </script>

    Need help?  Quick start guide | Troubleshooting | All help topics