golffinder Posted August 12, 2014 Report Share Posted August 12, 2014 Hi how can i easily exclude mobile traffic without having to enter endless amounts of user agents into the "client useragent" delivery limitations box? Quote Link to comment Share on other sites More sharing options...
Dave Brain Posted August 13, 2014 Report Share Posted August 13, 2014 Hi, You need to do customization on default plugins which used to store impressions, clicks and conversions. On that, Use PHP library files to detect mobile devices, if its mobile device and skip to log the traffic on table. Quote Link to comment Share on other sites More sharing options...
golffinder Posted August 13, 2014 Author Report Share Posted August 13, 2014 i'm not trying to exclude mobile stats, i'm trying to exclude a banner from being delivered to a mobile devise when visiting the site. Quote Link to comment Share on other sites More sharing options...
Dave Brain Posted August 14, 2014 Report Share Posted August 14, 2014 We can skip ads deliver on mobiles devices by changing the delivery section files. Apply that PHP library code to detect mobile device and you will get it work. If you have developing skills and Spend some time and you can get this done easily. Quote Link to comment Share on other sites More sharing options...
Gizmo Posted November 11, 2014 Report Share Posted November 11, 2014 so no easy way to do this? definetely something that should be added in the next version Quote Link to comment Share on other sites More sharing options...
Gizmo Posted November 11, 2014 Report Share Posted November 11, 2014 found something on http://forum.revive-adserver.com/topic/517-how-to-display-ads-to-desktop-users-only/ still easy select buttons for desktop or mobile, would be great Quote Link to comment Share on other sites More sharing options...
Bobbins Posted July 14, 2015 Report Share Posted July 14, 2015 We have managed to achieve this, It is via the limations box but we done all the work for you . by doing the following. 1. Goto banner you do not want on mobile site. 2. Goto delivery options and add the following limitation: Client - Useragent 3. Add this value: /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/ This will cover 98% of mobile users. Enter it exactly how it is above even with / at the beginning and end. The remaining 2% will be mobile users that have pre historic OS so any website built after 2004 wouldnt load of this type of device anyways so no worries in covering them. 4. Delete certain cache files to make change's instant or wait 20mins. Location of cache files: var/cache Files to remove: anything that starts with deliverycache_ Hope that helps Gizmo 1 Quote Link to comment Share on other sites More sharing options...
murphybeck Posted January 18, 2022 Report Share Posted January 18, 2022 User Agent detection is not a recommended technique for modern web apps. You can use JavaScript window.matchMedia() method to detect a mobile device based on the CSS media query. if (window.matchMedia("(max-width: 767px)").matches) { // The viewport is less than 768 pixels wide document.write("This is a mobile device."); } Another approach would be a responsive media query. You could presume that a mobile phone has a screen size greater than x and less than y. For example: @media only screen and (min-width: 320px) and (max-width: 600px) {} You may also use navigator.userAgentData.mobile . const isMobile = navigator.userAgentData.mobile; Quote Link to comment Share on other sites More sharing options...
stephan Posted January 20, 2022 Report Share Posted January 20, 2022 I made a patch for this use case: https://github.com/revive-adserver/revive-adserver/pull/1342 Quote Link to comment Share on other sites More sharing options...
Janvi Arora Posted March 21, 2022 Report Share Posted March 21, 2022 To exclude mobile traffic we normally add filters in the dashboard. As per the discussion we just need to avoid the banners displayed on mobile devices. Then above mentioned patch of information will be very helpful. Just by adding few plugins we can easily avoid the mobile displayed banners. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.