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
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).
16
16
17
17
:::important
18
-
If you're using the latest version of `POST /v3/identity/map`, v3, you don't need to use `POST /identity/buckets` at all. You only need to use it if you're using the earlier version,`POST /v2/identity/map`.
18
+
If you're using the latest version (v3) of `POST /v3/identity/map`, you don't need to use `POST /identity/buckets` at all. You only need to use it if you're using the earlier version (v2) of`POST /v2/identity/map`.
19
19
20
-
If you're using the V2 version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from V2 Identity Map](post-identity-map.md#migration-from-v2-identity-map).
20
+
If you're using the v2 version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from v2 Identity Map](post-identity-map.md#migration-from-v2-identity-map).
Copy file name to clipboardExpand all lines: docs/endpoints/post-identity-map-v2.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ For details about the UID2 opt-out workflow and how users can opt out, see [User
20
20
This documentation is for version 2 of this endpoint, which is not the latest version. For the latest version, v3, see [POST /identity/map](post-identity-map.md).
21
21
22
22
:::note
23
-
If you're using the V2 version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from V2 Identity Map](post-identity-map.md#migration-from-v2-identity-map).
23
+
If you're using the v2 version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from v2 Identity Map](post-identity-map.md#migration-from-v2-identity-map).
24
24
:::
25
25
26
26
## Batch Size and Request Parallelization Requirements
|`u`| string | The raw UID2 corresponding to the email or phone number provided in the request. |
177
-
|`p`| string | One of the following:<ul><li>If the current raw UID2 has been rotated in the last 90 days: the previous value.</li><li>If the current raw UID2 is older than 90 days: `Null`.</li></ul> |
177
+
|`p`| string | One of the following:<ul><li>If the current raw UID2 has been rotated in the last 90 days: the previous value.</li><li>If the current raw UID2 is older than 90 days: `null`.</li></ul> |
178
178
|`r`| number | The Unix timestamp (in milliseconds) that indicates when the raw UID2 might be refreshed. The raw UID2 is guaranteed to be valid until this timestamp. |
179
179
180
180
For unsuccessfully mapped input values, the mapped object includes the properties shown in the following table.
@@ -195,26 +195,26 @@ The following table lists the `status` property values and their HTTP status cod
195
195
196
196
If the `status` value is anything other than `success`, the `message` field provides additional information about the issue.
197
197
198
-
## Migration from V2 Identity Map
198
+
## Migration from v2 Identity Map
199
199
200
200
The following sections provide general information and guidance for migrating to version 3 from earlier versions, including:
-[Key Differences Between V2 and V3](#key-differences-between-v2-and-v3)
203
+
-[Key Differences Between v2 and v3](#key-differences-between-v2-and-v3)
204
204
-[Required Changes](#required-changes)
205
205
-[Additional Resources](#additional-resources)
206
206
207
207
### Version 3 Improvements
208
208
209
-
The V3 Identity Map API provides the following improvements over V2:
209
+
The v3 Identity Map API provides the following improvements over v2:
210
210
211
211
-**Simplified Refresh Management**: You can monitor for UID2s reaching `refresh_from` timestamps instead of polling <Linkhref="../ref-info/glossary-uid#gl-salt-bucket-id">salt buckets</Link> for rotation.
212
212
-**Previous UID2 Access**: You have access to previous raw UID2s for 90 days after rotation for campaign measurement.
213
213
-**Single Endpoint**: You use only one endpoint, `/v3/identity/map`, instead of both `/v2/identity/map` and `/v2/identity/buckets`.
214
214
-**Multiple Identity Types in One Request**: You can process both emails and phone numbers in a single request.
215
215
-**Improved Performance**: The updated version uses significantly less bandwidth to process the same amount of DII.
216
216
217
-
### Key Differences Between V2 and V3
217
+
### Key Differences Between v2 and v3
218
218
219
219
The following table shows key differences between the versions.
220
220
@@ -238,20 +238,20 @@ To upgrade from an earlier version to version 3, follow these steps:
238
238
Update any reference to the endpoint URL so that it references the /v3/ implementation, as shown in the following example.
239
239
240
240
```python
241
-
# Before (V2)
241
+
# Before (v2)
242
242
url ='/v2/identity/map'
243
243
244
-
# After (V3)
244
+
# After (v3)
245
245
url ='/v3/identity/map'
246
246
```
247
247
248
-
#### 2. Update V3 Response Parsing Logic
248
+
#### 2. Update v3 Response Parsing Logic
249
249
250
250
Update the logic for parsing the response, as shown in the following example.
251
251
252
252
V2 Response Parsing:
253
253
```python
254
-
#V2: Process mapped/unmapped objects with identifier lookup
254
+
#v2: Process mapped/unmapped objects with identifier lookup
255
255
for item in response['body']['mapped']:
256
256
raw_uid = item['advertising_id']
257
257
bucket_id = item['bucket_id']
@@ -262,7 +262,7 @@ for item in response['body']['mapped']:
262
262
263
263
V3 Response Parsing:
264
264
```python
265
-
#V3: Process array-indexed responses
265
+
#v3: Process array-indexed responses
266
266
for index, item inenumerate(response['body']['email']):
267
267
original_email = request_emails[index] # Use array index to correlate
Copy file name to clipboardExpand all lines: docs/endpoints/summary-endpoints.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The following endpoints are for retrieving and managing UID2 tokens (identity to
26
26
27
27
The following endpoints are used by advertisers and third-party data providers. Publishers do not need to use these endpoints.
28
28
29
-
### Latest Identity Map Endpoint (V3)
29
+
### Latest Identity Map Endpoint (v3)
30
30
31
31
In the latest identity map integration, you only need to call one endpoint, `POST /identity/map`. The `POST /identity/buckets` endpoint is not part of the workflow.
32
32
@@ -40,7 +40,7 @@ The latest identity map integration uses the following endpoint:
40
40
| :--- | :--- | :--- | :--- |
41
41
|[POST /identity/map](post-identity-map.md)| Maps raw UID2s, previous raw UID2s, and refresh timestamps for one or more email addresses, phone numbers, or their respective hashes. | Required | Required |
42
42
43
-
### Earlier Identity Map Endpoints (V2)
43
+
### Earlier Identity Map Endpoints (v2)
44
44
45
45
The following endpoints are part of the earlier identity map integration (version 2).
Copy file name to clipboardExpand all lines: docs/getting-started/gs-faqs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ To determine whether to refresh a raw UID2:
187
187
2. If the current time is greater than or equal to the refresh timestamp, regenerate the raw UID2 by calling the identity map endpoint again with the same <Linkhref="../ref-info/glossary-uid#gl-dii">DII</Link>.
188
188
189
189
:::note
190
-
We recommend checking for refresh opportunities daily. It is guaranteed that the raw UID2 won't refresh before the indicated timestamp. At some point after that time, the raw UID2 is refreshed.
190
+
We recommend checking for refresh opportunities daily. It is guaranteed that the raw UID2 won't refresh before the indicated timestamp. At some point on or after that time, the raw UID2 is refreshed.
191
191
:::
192
192
193
193
#### How often should raw UID2s be refreshed for incremental updates?
@@ -196,7 +196,7 @@ The recommended cadence for updating audiences is daily.
196
196
197
197
A raw UID2 for a specific user changes roughly once per year. The latest version of the [POST /identity/map](../endpoints/post-identity-map.md) endpoint provides refresh timestamps that indicate a point after which each raw UID2 might refresh. We recommend checking these timestamps daily to ensure your raw UID2s remain current and valid for audience targeting.
198
198
199
-
For implementations that reference earlier versions of this endpoint (see [POST /identity/map v2](../endpoints/post-identity-map-v2.md)):
199
+
For implementations that reference earlier versions of this endpoint (see [POST /identity/map v2](../endpoints/post-identity-map-v2.md)):
200
200
201
201
Even though each <Linkhref="../ref-info/glossary-uid#gl-salt-bucket">salt bucket</Link> is updated roughly once a year, individual bucket updates are spread over the year. This means that about 1/365th of all buckets are rotated daily. If fidelity is critical, consider calling the [POST /identity/buckets](../endpoints/post-identity-buckets.md) endpoint more frequently; for example, hourly.
Copy file name to clipboardExpand all lines: docs/getting-started/gs-opt-out.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Within the UID2 ecosystem, there are two types of opt out:
20
20
21
21
Because each participant has their own opt-out workflow, participants are mandated to respect a user's opted-out status and therefore not create a UID2 for any user who opted out from the participant.
22
22
23
-
For example, if a user opts out of a publisher's site, but has not opted out of UID2, the publisher should not generate a UID2 token for that user.
23
+
For example, if a user opts out of a publisher's site, but has not opted out of UID2, the publisher should not generate a UID2 token for that user.
24
24
25
25
Consumers can always opt out of UID2 being used to show them personalized ads, in the [Transparency and Control Portal](https://www.transparentadvertising.com/). Choose email address or phone number, enter the data, and follow the prompts.
26
26
@@ -46,12 +46,12 @@ The following steps provide a high-level outline of the opt-out workflow intende
46
46
2. The Transparency and Control Portal sends the opt-out request to the UID2 <Linkhref="../ref-info/glossary-uid#gl-operator-service">Operator Service</Link>.
47
47
3. If the user has opted out, the UID2 Operator Service distributes the opt-out information to UID2 participants, as shown in the following table.
| Publishers | A publisher calling [POST /token/generate](../endpoints/post-token-generate.md) with the required `optout_check` parameter set to `1`, or [POST /token/refresh](../endpoints/post-token-refresh.md), receives the opt-out response instead of the UID2 token.|
49
+
| Participant | Distribution Method |
50
+
| :--- |:---|
51
+
| Publishers | A publisher calling [POST /token/generate](../endpoints/post-token-generate.md) with the required `optout_check` parameter set to `1`, or [POST /token/refresh](../endpoints/post-token-refresh.md), receives the opt-out response instead of the UID2 token. |
52
52
| DSPs | The UID2 Operator Service distributes information on all opted-out users to DSPs via a webhook provided for the purpose. For details, see [Honor User Opt-Outs](../guides/dsp-guide#honor-user-opt-outs).<br/>DSPs can also check the opt-out status of raw UID2s using the [POST /optout/status](../endpoints/post-optout-status.md) endpoint. |
53
-
| Advertisers and data providers | The UID2 Operator Service distributes opt-out information to advertisers and data providers via the [POST /identity/map](../endpoints/post-identity-map.md) endpoint. Another option is to check the opt-out status of raw UID2s using the [POST /optout/status](../endpoints/post-optout-status.md) endpoint. |
54
-
| Sharers | UID2 sharers can check the opt-out status of raw UID2s using the [POST /optout/status](../endpoints/post-optout-status.md) endpoint. |
53
+
| Advertisers and data providers | The UID2 Operator Service distributes opt-out information to advertisers and data providers via the [POST /identity/map](../endpoints/post-identity-map.md) endpoint. Another option is to check the opt-out status of raw UID2s using the [POST /optout/status](../endpoints/post-optout-status.md) endpoint. |
54
+
| Sharers | UID2 sharers can check the opt-out status of raw UID2s using the [POST /optout/status](../endpoints/post-optout-status.md) endpoint. |
55
55
56
56
This workflow allows users to opt out of personalized advertising based on their UID2 through the Transparency and Control Portal.
| Generator | Publishers | Permission to call the [POST /token/generate](../endpoints/post-token-generate.md), [POST /token/validate](../endpoints/post-token-validate.md), and [POST /token/refresh](../endpoints/post-token-refresh.md) endpoints, to generate UID2 tokens from <Linkhref="../ref-info/glossary-uid#gl-dii">DII</Link> and to refresh them, using one of these integration methods:<ul><li>A Prebid integration</li><li>The SDK for JavaScript</li><li>An integration that directly calls the applicable API endpoints for retrieving and managing UID2 tokens.</li></ul> |
28
-
| Bidder | DSPs | Permission to decrypt UID2 tokens coming in from the <Linkhref="../ref-info/glossary-uid#gl-bidstream">bidstream</Link> from publishers into raw UID2s for bidding purposes. |
29
-
| Sharer | Any participant type that takes part in UID2 sharing. For details, see [UID2 Sharing: Overview](../sharing/sharing-overview.md). | Permission to do both of the following:<ul><li>Encrypt raw UID2s into UID2 tokens for sharing with another authorized sharing participant, using a UID2 SDK or Snowflake</li><li>Decrypt UID2 tokens received from another authorized sharing participant into raw UID2s.</li></ul> |
30
-
| Mapper | Advertisers<br/>Data Providers | Permission to call the following endpoints to map multiple email addresses, phone numbers, or their respective hashes to their raw UID2s, previous raw UID2s, and refresh timestamps:<ul><li>[POST /identity/map](../endpoints/post-identity-map.md) (latest version)</li><li>The earlier (version 2) identity mapping endpoints: [POST /identity/map (v2)](../endpoints/post-identity-map.md) and [POST /identity/buckets](../endpoints/post-identity-buckets.md).</li></ul>|
28
+
| Bidder | DSPs | Permission to decrypt UID2 tokens coming in from the <Linkhref="../ref-info/glossary-uid#gl-bidstream">bidstream</Link> from publishers into raw UID2s for bidding purposes. |
29
+
| Sharer | Any participant type that takes part in UID2 sharing. For details, see [UID2 Sharing: Overview](../sharing/sharing-overview.md). | Permission to do both of the following:<ul><li>Encrypt raw UID2s into UID2 tokens for sharing with another authorized sharing participant, using a UID2 SDK or Snowflake</li><li>Decrypt UID2 tokens received from another authorized sharing participant into raw UID2s.</li></ul> |
30
+
| Mapper | Advertisers<br/>Data Providers | Permission to call the following endpoints to map multiple email addresses, phone numbers, or their respective hashes to their raw UID2s, previous raw UID2s, and refresh timestamps:<ul><li>[POST /identity/map](../endpoints/post-identity-map.md) (latest version)</li><li>The earlier v2 identity mapping endpoints: [POST /identity/map (v2)](../endpoints/post-identity-map.md) and [POST /identity/buckets](../endpoints/post-identity-buckets.md).</li></ul> |
0 commit comments