You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/endpoints/post-identity-map.md
+62-81Lines changed: 62 additions & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,10 @@ import Link from '@docusaurus/Link';
9
9
10
10
# POST /identity/map
11
11
12
-
[**TO BE UPDATED. VERSION SECTION ADDED BUT THE REST NEEDS UPDATING**]
13
-
14
-
Maps multiple email addresses, phone numbers, or their respective hashes to their raw UID2s. You can also use this endpoint to check for updates to opt-out information.
12
+
Maps multiple email addresses, phone numbers, or their respective hashes to their raw UID2s. You can also use this endpoint to:
13
+
* check for updates opt-out information
14
+
* check when an advertisting ID may be refreshed
15
+
* map the previous advertising ID for advertising IDs that are less than 90 days old
15
16
16
17
Used by: This endpoint is used mainly by advertisers and data providers. For details, see [Advertiser/Data Provider Integration Overview](../guides/integration-advertiser-dataprovider-overview.md).
17
18
@@ -55,57 +56,57 @@ The integration environment and the production environment require different <Li
55
56
### Unencrypted JSON Body Parameters
56
57
57
58
:::important
58
-
You must include only **one**of the following four conditional parameters as a key-value pair in the JSON body of the request when encrypting it.
59
+
You can include one or more of the following four parameters as a key-value pair in the JSON body of the request when encrypting it.
59
60
:::
60
61
61
-
| Body Parameter | Data Type | Attribute | Description |
62
-
| :--- | :--- | :--- | :--- |
63
-
|`email`| string array | Conditionally Required | The list of email addresses to be mapped. |
64
-
|`email_hash`| string array | Conditionally Required | The list of [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#email-address-hash-encoding) hashes of [normalized](../getting-started/gs-normalization-encoding.md#email-address-normalization) email addresses to be mapped. |
65
-
|`phone`| string array | Conditionally Required | The list of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. |
66
-
|`phone_hash`| string array | Conditionally Required | The list of [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#phone-number-hash-encoding) hashes of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. |
62
+
| Body Parameter | Data Type | Attribute | Description |
63
+
| :--- |:-----------------| :--- | :--- |
64
+
|`email`| DII object array | Conditionally Required | The list of email addresses to be mapped. |
65
+
|`email_hash`| DII object array | Conditionally Required | The list of [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#email-address-hash-encoding) hashes of [normalized](../getting-started/gs-normalization-encoding.md#email-address-normalization) email addresses to be mapped. |
66
+
|`phone`| DII object array | Conditionally Required | The list of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. |
67
+
|`phone_hash`| DII object array | Conditionally Required | The list of [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#phone-number-hash-encoding) hashes of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. |
68
+
69
+
#### DII Object
70
+
Each DII i.e. email address, email hash, phone or phone hash is input as a DII object.
71
+
72
+
| DII Object Parameter | Data Type | Attribute | Description |
73
+
| :--- | :---- | :---- |:------------|
74
+
| `i` | string | Required | The DII input i.e. email address, email hash, phone or phone hash
67
75
68
76
### Request Examples
69
77
70
-
The following are unencrypted JSON request body examples for each parameter, one of which you should include in your requests to the `POST /identity/map` endpoint:
78
+
The following are unencrypted JSON request body examples to the `POST /identity/map` endpoint:
For details, and code examples in different programming languages, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md).
@@ -116,83 +117,63 @@ For details, and code examples in different programming languages, see [Encrypti
116
117
The response is encrypted only if the HTTP status code is 200. Otherwise, the response is not encrypted.
117
118
:::
118
119
119
-
A successful decrypted response returns the raw UID2s for the specified email addresses, phone numbers, or their respective hashes.
120
+
A successful decrypted response returns the raw UID2s for the specified email addresses, phone numbers, or their respective hashes in the same array order that was given.
If some identifiers are considered invalid, they are included in the response in an "unmapped" list. In this case, the response status is still "success". If all identifiers are mapped, the "unmapped" list is not included in the response.
If some identifiers have opted out from the UID2 ecosystem, the opted-out identifiers are moved to the "unmapped" list along with any invalid identifiers found. In this case, the response status is still "success".
145
+
Identifiers that cannot be mapped to an advertising ID are mapped to an error object with the reason for unsuccessful mapping. This will occur if the identifier is considered invalid or if the identifier has opted out from the UID2 ecosystem. In these cases, the response status is still "success".
|`u`| string | The advertising ID (raw UID2) of the DII given in the request. |
169
+
|`p`| string or null | The previous advertising ID if the current ID has been refreshed in the last 90 days. `null` if the current ID is older than 90 days. |
170
+
|`r`| number | The Unix timestamp (in milliseconds) that indicates when the advertising ID may be refreshed. |
171
+
172
+
For unsuccessfully mapped DIIs, the response body includes the properties shown in the following table.
0 commit comments