The Data Manager API supports uploading multiple types of user data. Follow the formatting, hashing, and encoding requirements for each data element so that your data is received and processed successfully.
UserData
: User-provided data such as an email address or phone number.PairData
: Publisher Advertiser Identity Reconciliation (PAIR) IDs.MobileData
: Data identifying a mobile device.
UserData
requirements
A UserData
object is a collection of UserIdentifier
objects. Each
UserIdentifier
has exactly one of the attributes in the following table.
UserIdentifier | |||||||
---|---|---|---|---|---|---|---|
email_address |
|
||||||
phone_number |
|
||||||
address |
AddressInfo
objectRefer to the
AddressInfo
format specification. |
AddressInfo
format
Use the following formatting guidelines to construct the address
attribute of a UserIdentifier
.
AddressInfo | |||||||
---|---|---|---|---|---|---|---|
given_name |
|
||||||
family_name |
|
||||||
region_code |
|
||||||
postal_code |
|
PairData
requirements
Populate the pair_ids
field of a PairData
object with a list of IDs.
Format each element in the list using the following steps:
- Hash the cleanroom-provided PII data using the SHA-256 algorithm.
- Encrypt the hash bytes with an EC commutative cipher using the publisher key for the PAIR user list.
- Encode the encrypted data using hex or Base64 encoding.
MobileData
requirements
Populate the mobile_ids
field of a MobileData
object with a list of
mobile IDs. Don't hash mobile
IDs.
Timestamp format
If using the JSON format for Timestamp
fields, like
timestamp
and last_updated_timestamp
of Event
, use the RFC
3339 format. Here are some examples of the UTC time
of August 8, 2025 at 5:18:44.291 PM in the RFC 3339 format and different time
zones:
- UTC time zone:
2025-08-08T17:18:44.291Z
- EDT time zone, which was 4 hours before UTC at that time:
2025-08-08T13:18:44.291-04:00
- PDT time zone, which was 7 hours before UTC at that time:
2025-08-08T10:18:44.291-07:00
- Time zone for Tokyo, Japan, which was 9 hours ahead of UTC and doesn't observe
daylight saving time:
2025-08-08T22:18:44.291+09:00
If using the protocol buffer format, set the seconds
and, optionally, the
nanos
when constructing the Timestamp
. Here are the seconds
and nanos
values for the UTC time of August 8, 2025 at 5:18:44.291 PM:
seconds
:1754683124
nanos
:291000000
Encoding
Keep the following in mind when encoding data:
- The case of the encoding output doesn't matter when using hexadecimal encoding (hex).
- The case of the encoding output matters when using Base64 encoding.
Next steps
- Learn how to encrypt user data.