UserDevice & UserDeviceTechnicalId
The device graph, and the identifier formats you send for browsers, apps, CTV, and network IDs.
Your goal
Send device identifiers in the exact format the platform expects, so they land on the right device point and can be used to recognise the user.
Expected outcome
Each device identifier you send resolves to a registry that exists, and appears on the UserPoint as a device technical identifier.
The device graph
In each datamart, all device information is stored in a device graph:
Devices are represented by UserDevicePoint.
Device identifiers are represented by UserDeviceTechnicalId.
A UserPoint can have multiple device points; a device point can have multiple device technical identifiers and one set of device information.
UserPoint
|
|---------UserDevicePoint--------------------------DeviceInfo: PC - CHROME BROWSER
| |---------UserDeviceTechnicalId: 1P cookie
| |---------UserDeviceTechnicalId: Network ID
| |---------UserDeviceTechnicalId: 3P cookie
|
|---------UserDevicePoint--------------------------DeviceInfo: ANDROID TABLET
| |---------UserDeviceTechnicalId: Mobile advertising id
| |---------UserDeviceTechnicalId: Mobile vendor idEvery device technical identifier belongs to a registry, which decides what kind of identifier it is. Registries and their types are covered in Device registries.
The documents, as the API returns them
user_agent_id formats
user_agent_id packs several pieces of information - registry type, registry ID, and the value - into a single property. Sending the wrong shape is the most common reason a device identifier does not resolve.
Cookie-based identifiers
Installation ID - the first-party cookie generated by mediarithmics. It appears in different forms depending on where it is used:
Cookie stored in the user's browser
<version_prefix><base64(value)>
aMGQ0YTU4Y2EtMTRlNS0xMWVlLWJlNTYtMDI0MmFjMTIwMDAy
Used in authenticated endpoints
ins:<registry_id>:<value>
ins:1001:0d4a58ca-14e5-11ee-be56-0242ac120002
Stored in mediarithmics, and used in non-authenticated endpoints
ins:<registry_token>:<version_prefix><base64(value)>
ins:first:aMGQ0YTU4Y2EtMTRlNS0xMWVlLWJlNTYtMDI0MmFjMTIwMDAy
version_prefix is currently defined as a.
Vector ID - the mediarithmics third-party cookie. Equivalent formats: vec:<value> is the exact format stored in the cookie, mum:<value> is the format stored as a technical identifier in the datamart. For example vec:89998434 / mum:89998434.
For a device point, the vector ID can be retrieved in the technical_identifiers list as a device technical ID of type MUM_ID - in which case the format is mum:89998434 - or in the mappings list related to the device point.
Partners' third-party cookies - for historical reasons, Google and Xandr advertising cookies have their own prefixes:
tech:goo:<value>for Google advertising cookiestech:apx:<value>for Xandr advertising cookies
For other partners, the third-party cookie value is attached to a web domain defined by mediarithmics: web:<web_domain_id>:<value>, where the web domain designates partner-domain.com and value is the identifier inside the cookie on that domain.
Mobile application identifiers
Mobile advertising IDs - mob:<os>:<encoding>:<value>
os-andfor Android,iosfor iOS.encoding-rawfor none,sha1for SHA1,md5for MD5.value- the advertising ID, encoded according toencoding. The non-encoded ID should be lower case for Android and upper case for iOS.
Mobile vendor IDs - mov:<os>:<registry_id>:<value>, where registry_id designates the registry the device ID should be linked to, and value is the identifier generated inside the mobile application.
CTV identifiers
CTV advertising IDs -
tv:<registry_id>:<value>IP addresses captured on a CTV channel -
ipv4:<registry_id>:<value>for registries of typeIPV4_ADDRESS_ID, andipv6:<registry_id>:<value>forIPV6_ADDRESS_ID. The value is the raw IP address, with no hashing or normalisation.
Other device identifiers
net:<registry_id>:<value>for device technical IDs of typeNETWORK_IDdev:<registry_id>:<value>forCUSTOM_DEVICE_IDudp:<value>to use the device point identifier directly instead of a custom device identifier
Merging device points
When two device technical IDs are associated, their device points are merged. This happens when capturing user activities carrying multiple identifiers, and when using the identifier association feature.
If the device points involved are linked to different UserPoints, merging them also triggers a merge of the UserPoints.
Retrieving third-party cookie mappings
The ThirdPartyCookieMappings schema function retrieves third-party cookie mappings for a device point. It works on device points carrying a device technical ID of type MUM_ID: it translates the MUM_ID into a vector_id - mum:-1234 becomes vec:1234 - and retrieves the attached partners' third-party cookies.
The legacy user agent format
Several user agents can be attached to a UserPoint, each with a device info object, and all of them identified by a vector ID:
vector_id
String
Unique ID generated by mediarithmics for each agent.
device
Object
Device information such as operating system and browser.
creation_ts
Timestamp
When the user agent was registered on the platform.
mappings
Array
Additional identifiers - the device mappings: cookie-based or mobile application identifiers associated with the agent.
Agent-based operations such as visiting a website or seeing an ad generally use the user agent to identify the user automatically. You can also use an agent to identify a user explicitly, usually with a user_agent_id field in requests.
Verify
Every device identifier you send matches one of the formats above.
The registry referenced in the identifier exists and is linked to the datamart.
A test device appears as a UserDevicePoint with the expected
DeviceInfoand technical identifiers.
Related pages
Last updated
Was this helpful?