This module loads a dynamically generated JavaScript from prebid.wurflcloud.com
The WURFL RTD module enriches Prebid.js bid requests with comprehensive device detection data, helping publishers maximize ad revenue through better device targeting. Publishers typically see improved CPM performance, particularly for mobile traffic where device signals provide valuable bidding context.
The WURFL RTD module relies on localStorage caching and local client-side detection, providing instant device enrichment on every page load.
The module enriches ortb2.device with complete device information and adds extended WURFL capabilities to device.ext.wurfl, ensuring all bidder adapters have immediate access to enriched device data.
ortb2.device with complete device information including:
make, model, devicetype, os, osv, ppi, pxratioortb2.device.hwv (e.g., “iPhone 16 Pro”, “iPad Pro 12.9-inch”)is_robot capability in device.ext.wurfl for easy bot filtering
robot_family capability available in paid tiers to identify specific bot types (Googlebot, Bingbot, etc.)At a minimum, all adapters receive these WURFL capabilities:
brand_namemodel_nameis_ottphysical_form_factoris_consoleresolution_heightresolution_widthdensity_classis_full_desktopdevice_osdevice_os_versionform_factoradvertised_device_osadvertised_device_os_versionpixel_densityis_robotcomplete_device_nameis_mobileadvertised_browseradvertised_browser_versionPublishers, SSPs and demand partners with a commercial license can receive up to 500+ additional WURFL device capabilities based on their licensing agreement, including:
WURFL.js is fully compatible with Chromium’s User-Agent Client Hints (UA-CH). If the User-Agent string is generic and Client Hints are not available, the service automatically requests and obtains high entropy client hint values from the client.
For optimal performance, publishers should explicitly opt-in and declare User-Agent Client Hints support on their website. See the UA-CH implementation documentation for details.
While the WURFL RTD module enriches the OpenRTB 2.0 payload, SSP adapters must access and pass this information to their auction endpoints. The endpoint must then utilize the enriched device data in its bidding logic.
| SSP Adapter Status | Required Adapter Changes | Required Server Changes |
|---|---|---|
| Already passing ORTB2 device to server | No changes required | Update backend logic to utilize device data |
| Not currently passing device data | Update adapter to read device and/or device.ext.wurfl and pass to endpoint |
Update backend logic to utilize device data |
| No Bidder Adapter exists | Implement Prebid.js adapter to read and pass device and/or device.ext.wurfl |
Implement endpoint logic to read and utilize data |
To build the WURFL RTD module with Prebid.js:
gulp build --modules="wurflRtdProvider,appnexusBidAdapter,..."
The module is configured within realTimeData.dataProviders.
pbjs.setConfig({
realTimeData: {
dataProviders: [{
name: 'wurfl'
}]
}
});
| Name | Type | Description | Default |
|---|---|---|---|
name |
String | Real time data module name | Always ‘wurfl’ |
waitForIt |
Boolean | Should be set to true for proper initialization | false |
params |
Object | Configuration parameters for WURFL RTD | |
params.altHost |
String | Alternate host for connecting to WURFL.js | |
params.debug |
Boolean | Enable debug mode for troubleshooting | false |
params.abTest |
Object | A/B testing configuration (optional) | |
params.abTest.enabled |
Boolean | Enable A/B testing | false |
params.abTest.testName |
String | Name identifier for the test | |
params.abTest.splitRatio |
Number | Ratio for treatment group (0.0-1.0) | 0.5 |
To test the WURFL RTD module locally:
gulp serve --modules=wurflRtdProvider,appnexusBidAdapter
Then navigate to:
http://localhost:9999/integrationExamples/gpt/wurflRtdProvider_example.html
WURFL RTD adds comprehensive device information to the bid request. The ortb2.device object is enriched with standard OpenRTB fields, and device.ext.wurfl contains extended WURFL capabilities:
{
"id": "1edd88d3-12c6-40b2-a80b-138e276b4553",
"at": 1,
"site": {...},
"device": {
"w": 1170,
"h": 2532,
"dnt": 0,
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Mobile/15E148 Safari/604.1",
"language": "it",
"make": "Apple",
"model": "iPhone 16e",
"devicetype": 1,
"os": "iOS",
"osv": "18.3",
"hwv": "iPhone 16e",
"ppi": 456,
"pxratio": 3.0,
"js": 1,
"ext": {
"vpw": 980,
"vph": 1429,
"wurfl": {
"wurfl_id": "apple_iphone_ver18_3_subhw16e",
"advertised_browser": "Mobile Safari",
"advertised_browser_version": "18.3",
"advertised_device_os": "iOS",
"advertised_device_os_version": "18.3",
"ajax_support_javascript": true,
"brand_name": "Apple",
"complete_device_name": "Apple iPhone 16e",
"density_class": "3.0",
"form_factor": "Smartphone",
"is_app_webview": false,
"is_connected_tv": false,
"is_full_desktop": false,
"is_mobile": true,
"is_ott": false,
"is_phone": true,
"is_robot": false,
"is_smartphone": true,
"is_smarttv": false,
"is_tablet": false,
"manufacturer_name": "",
"marketing_name": "",
"max_image_height": 568,
"max_image_width": 320,
"model_name": "iPhone 16e",
"physical_screen_height": 141,
"physical_screen_width": 65,
"pixel_density": 456,
"pointing_method": "touchscreen",
"resolution_height": 2532,
"resolution_width": 1170
}
}
}
}
device.ext.wurflLicensed SSPs can receive up to 500+ additional capabilities based on their subscription, including:
Device Identification:
wurfl_id: Unique WURFL device identifiercomplete_device_name: Full commercial device namebrand_name: Device brandmodel_name: Device modelmarketing_name: Commercial marketing nameForm Factor Detection:
form_factor: Device category (Smartphone, Tablet, Desktop, etc.)is_mobile, is_smartphone, is_tablet: Boolean form factor flagsis_full_desktop, is_connected_tv, is_smarttv: Additional form factorsBot Detection:
is_robot (Boolean): Available to all publishers - simple true/false bot identificationrobot_family (Categorical): Paid tier feature - identifies specific bot types (Spider, Previewer, Fetcher, Health-Checker, Adbot, Headless Browser) for granular filtering and analyticsBrowser & OS:
advertised_browser, advertised_browser_versionadvertised_device_os, advertised_device_os_versionPhysical Properties:
physical_screen_height, physical_screen_width: Physical dimensions in mmresolution_height, resolution_width: Screen resolution in pixelspixel_density: Pixels per inchpointing_method: Input method (touchscreen, stylus, mouse, etc.)For a complete list of available capabilities, see WURFL Capabilities Documentation.
The WURFL RTD module includes built-in A/B testing capabilities to help publishers measure the impact of device enrichment on their revenue. When enabled, the module randomly assigns users to treatment (enriched) or control (not enriched) groups.
ScientiaMobile can assist with setting up and analyzing A/B tests to quantify the value of WURFL enrichment for your specific inventory. Contact ScientiaMobile to discuss A/B testing collaboration.
The WURFL RTD module processes minimal personal data under legitimate interest for technical service delivery:
For questions or support, visit ScientiaMobile Support.