-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #311 from IABTechLab/gwh-APIDOCS-1749-new-optout-p…
…arameter updates for new optout_check parameter
- Loading branch information
Showing
10 changed files
with
27 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,15 +36,15 @@ Here's what you need to know: | |
### Unencrypted JSON Body Parameters | ||
|
||
>IMPORTANT: You must include only **one** of the following four conditional parameters, plus the required `policy` parameter with a value of `1`, as key-value pairs in the JSON body of the request when encrypting it. | ||
>IMPORTANT: You must include only **one** of the following four conditional parameters, plus the required `optout_check` parameter with a value of `1`, as key-value pairs in the JSON body of the request when encrypting it. | ||
| Body Parameter | Data Type | Attribute | Description | | ||
| :--- | :--- | :--- | :--- | | ||
| `email` | string array | Conditionally Required | The list of email addresses to be mapped. | | ||
| `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. | | ||
| `phone` | string array | Conditionally Required | The list of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. | | ||
| `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. | | ||
| `policy` | integer | Required | The token generation policy ID checks whether the user has opted out. Include this parameter with a value of `1`.| | ||
| `optout_check` | integer | Required | Checks whether the user has opted out. Include this parameter with a value of `1`.| | ||
|
||
### Request Examples | ||
|
||
|
@@ -56,7 +56,7 @@ The following are unencrypted JSON request body examples for each parameter, one | |
"[email protected]", | ||
"[email protected]" | ||
], | ||
"policy":1 | ||
"optout_check":1 | ||
} | ||
``` | ||
```json | ||
|
@@ -65,7 +65,7 @@ The following are unencrypted JSON request body examples for each parameter, one | |
"eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc=", | ||
"tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=" | ||
], | ||
"policy":1 | ||
"optout_check":1 | ||
} | ||
``` | ||
```json | ||
|
@@ -74,7 +74,7 @@ The following are unencrypted JSON request body examples for each parameter, one | |
"+1111111111", | ||
"+2222222222" | ||
], | ||
"policy":1 | ||
"optout_check":1 | ||
} | ||
``` | ||
```json | ||
|
@@ -83,14 +83,14 @@ The following are unencrypted JSON request body examples for each parameter, one | |
"eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc=", | ||
"tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=" | ||
], | ||
"policy":1 | ||
"optout_check":1 | ||
} | ||
``` | ||
|
||
Here's an encrypted identity mapping request example for a phone number: | ||
|
||
```sh | ||
echo '{"phone": ["+1111111111", "+2222222222"],"policy":1}' | python3 uid2_request.py https://prod.uidapi.com/v2/identity/map YourTokenBV3tua4BXNw+HVUFpxLlGy8nWN6mtgMlIk= DELPabG/hsJsZk4Xm9Xr10Wb8qoKarg4ochUdY9e+Ow= | ||
echo '{"phone": ["+1111111111", "+2222222222"],"optout_check":1}' | python3 uid2_request.py https://prod.uidapi.com/v2/identity/map YourTokenBV3tua4BXNw+HVUFpxLlGy8nWN6mtgMlIk= DELPabG/hsJsZk4Xm9Xr10Wb8qoKarg4ochUdY9e+Ow= | ||
``` | ||
|
||
For details and Python script examples, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Requests a UID2 token generated from the [DII](../ref-info/glossary-uid.md#gl-di | |
|
||
Used by: This endpoint is used mainly by publishers. | ||
|
||
>IMPORTANT: Be sure to call this endpoint only when you have obtained legal basis to convert the user’s DII to UID2 tokens for targeted advertising. The `policy` parameter, required with a value of `1`, checks whether the user has opted out. | ||
>IMPORTANT: Be sure to call this endpoint only when you have obtained legal basis to convert the user’s DII to UID2 tokens for targeted advertising. The `optout_check` parameter, required with a value of `1`, checks whether the user has opted out. | ||
## Request Format | ||
|
||
|
@@ -30,15 +30,15 @@ Here's what you need to know about this endpoint requests: | |
### Unencrypted JSON Body Parameters | ||
|
||
>IMPORTANT: You must include only **one** of the following four conditional parameters, plus the required `policy` parameter with a value of `1`, as key-value pairs in the JSON body of the request when encrypting it. | ||
>IMPORTANT: You must include only **one** of the following four conditional parameters, plus the required `optout_check` parameter with a value of `1`, as key-value pairs in the JSON body of the request when encrypting it. | ||
| Body Parameter | Data Type | Attribute | Description | | ||
| :--- | :--- | :--- | :--- | | ||
| `email` | string | Conditionally Required | The email address for which to generate tokens. | | ||
| `email_hash` | string | Conditionally Required | The [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#email-address-hash-encoding) hash of a [normalized](../getting-started/gs-normalization-encoding.md#email-address-normalization) email address. | | ||
| `phone` | string | Conditionally Required | The [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone number for which to generate tokens. | | ||
| `phone_hash` | string | Conditionally Required | The [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#phone-number-hash-encoding) hash of a [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone number. | | ||
| `policy` | number | Required | The token generation policy ID checks whether the user has opted out. Include this parameter with a value of `1`.| | ||
| `optout_check` | number | Required | Checks whether the user has opted out. Include this parameter with a value of `1`.| | ||
|
||
### Request Examples | ||
|
||
|
@@ -49,32 +49,32 @@ The following are unencrypted JSON request body examples for each parameter, one | |
```json | ||
{ | ||
"email": "[email protected]", | ||
"policy": 1 | ||
"optout_check": 1 | ||
} | ||
``` | ||
```json | ||
{ | ||
"email_hash": "tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=", | ||
"policy": 1 | ||
"optout_check": 1 | ||
} | ||
``` | ||
```json | ||
{ | ||
"phone": "+12345678901", | ||
"policy": 1 | ||
"optout_check": 1 | ||
} | ||
``` | ||
```json | ||
{ | ||
"phone_hash": "wdN1alhrbw1Bmz49GzKGdPvGxLhCNn7n3teAOQ/FSK4=", | ||
"policy": 1 | ||
"optout_check": 1 | ||
} | ||
``` | ||
|
||
Here's an encrypted token generation request example for an email hash: | ||
|
||
```sh | ||
echo '{"email_hash": "tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=","policy":1}' | python3 uid2_request.py https://prod.uidapi.com/v2/token/generate [Your-Client-API-Key] [Your-Client-Secret] | ||
echo '{"email_hash": "tMmiiTI7IaAcPpQPFQ65uMVCWH8av9jw4cwf/F5HVRQ=","optout_check":1}' | python3 uid2_request.py https://prod.uidapi.com/v2/token/generate [Your-Client-API-Key] [Your-Client-Secret] | ||
``` | ||
For details and Python script examples, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.