Device.macsha1
The device's MAC address hashed with SHA1. Added in OpenRTB 2.2 and deprecated in 2.6 (2.6-202204).
Field facts
- Path
device.macsha1- Object
- Device
- Type
- string
- Requirement
- Optional
- Added
- OpenRTB 2.2
- Deprecated
- OpenRTB 2.6-202204
- Spec section
- 3.2.18
How it is used
Current mobile platforms hide the real MAC address from apps, so the field has no meaningful source. Use device.ifa.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"device": {
"macsha1": "0000000000000000000000000000000000000000"
}
}Common mistakes
- Still sending it on 2.6 traffic. The validator reports it as deprecated.
Version history
Added in OpenRTB 2.2, deprecated in 2.6-202204, and present in the latest snapshot. The table shows how each version's spec text types the field.
| Versions | Type in the spec | Required | Deprecated |
|---|---|---|---|
| 2.2 | string | No | No |
| 2.3 to 2.3.1 | string | No | No |
| 2.4 | string | No | No |
| 2.5 | string | No | No |
| 2.6-202210 to 2.6-202606 | string | No | Yes |
Versioned rules that name this field
openrtb.2.6.deprecated_fieldsOpenRTB 2.6 deprecated legacy sequence, device-ID hash, demographic, and single-api fields.