Snowflake Integration Guide
Snowflake is a cloud data warehousing solution, where you as a partner can store your data and integrate with the UID2 framework. Using Snowflake, UID2 enables you to securely share consumer identifier data without exposing sensitive directly identifying information (DII). Even though you have the option to query the Operator Web Services directly for the consumer identifier data, the Snowflake UID2 integration offers a more seamless experience.
The following listings for UID2 are available on the Snowflake marketplace:
- For advertisers: Unified ID 2.0: Advertiser Identity Solution
- For data providers: Unified ID 2.0: Data Provider Identity Solution
Functionality
The following table summarizes the functionality available with the UID2 Snowflake integration.
Encrypt Raw UID2 to UID2 Token for Sharing | Decrypt UID2 Token to Raw UID2 | Generate UID2 Token from DII | Refresh UID2 Token | Map DII to Raw UID2s |
---|---|---|---|---|
✅ | ✅ | —* | — | ✅ |
*You cannot use Snowflake to generate a UID2 token directly from DII. However, you can convert DII to a raw UID2, and then encrypt the raw UID2 into a UID2 token.
If you are a publisher who is sharing UID2 tokens in the bidstream, see Tokenized Sharing in the Bidstream.
Workflow Diagram
The following diagram and table illustrate the different parts of the UID2 integration process in Snowflake, and the workflow.
Partner Snowflake Account | UID2 Snowflake Account | UID2 Core Opt-Out Cloud Setup |
---|---|---|
As a partner, you set up a Snowflake account to host your data and engage in UID2 integration by consuming functions and views through the UID2 Share. | UID2 integration, hosted in a Snowflake account, grants you access to authorized functions and views that draw data from private tables. You can’t access the private tables. The UID2 Share reveals only essential data needed for you to perform UID2-related tasks. NOTE: We store salts and encryption keys in the private tables. No DII is stored at any point. | ETL (Extract Transform Load) jobs constantly update the UID2 Core/Optout Snowflake storage with internal data that powers the UID2 Operator Web Services. The data used by the Operator Web Services is also available through the UID2 Share. |
When you use shared functions and views, you pay Snowflake for transactional computation costs. | These private tables, secured in the UID2 Snowflake account, automatically synchronize with the UID2 Core/Optout Snowflake storage that holds internal data used to complete UID2-related tasks. |
Access the UID2 Shares
Access to the UID2 Share is available through the Snowflake Data Marketplace, where you can request specific data sets based on the UID2 personalized listing you select.
There are two personalized listings offered in the Snowflake Data Marketplace for UID2:
- Unified ID 2.0 Advertiser Identity Solution for advertisers/brands
- Unified ID 2.0 Data Provider Identity Solution for data providers
To be able to request data, you must use the ACCOUNTADMIN
role or another role with the CREATE DATABASE
and IMPORT SHARE
privileges in your Snowflake account.
To request access to a UID2 Share, complete the following steps:
- Log in to the Snowflake Data Marketplace and select the UID2 solution that you are interested in:
- In the Personalized Data section, click Request Data.
- Follow the onscreen instructions to verify and provide your contact details and other required information.
- If you are an existing client of The Trade Desk and are interested in the Advertiser Identity Solution, include your partner and advertiser IDs issued by The Trade Desk in the Message field of the data request form.
- Submit the form.
After your request is received, a UID2 administrator will contact you with the appropriate access instructions. For details about managing data requests in Snowflake, see the Snowflake documentation.
Shared Objects
Regardless of the UID2 solution you choose, you can map DII to UID2s by using the following function:
FN_T_UID2_IDENTITY_MAP
(See Map DII)
The following functions are deprecated in favor of FN_T_UID2_IDENTITY_MAP
. You can still use them, but FN_T_UID2_IDENTITY_MAP
is better. If you are already using these functions, we recommend upgrading as soon as possible.
FN_T_UID2_IDENTITY_MAP_EMAIL
(deprecated)FN_T_UID2_IDENTITY_MAP_EMAIL_HASH
(deprecated)
If you are using the deprecated functions, and need help migrating to the newer function, see Migration Guide.
To identify the UID2s that you must regenerate, use the UID2_SALT_BUCKETS
view from the UID2 Share. For details, see Regenerate UID2s.
The following functions are also available, for UID2 sharing participants:
FN_T_UID2_ENCRYPT
(See Encrypt Tokens)FN_T_UID2_DECRYPT
(See Decrypt Tokens)
For details, see Usage for UID2 Sharers.
Database and Schema Names
The following sections include query examples for each solution, which are identical except for the database and schema name variables:
{DATABASE_NAME}.{SCHEMA_NAME}
For example:
select UID2, BUCKET_ID, UNMAPPED from table({DATABASE_NAME}.{SCHEMA_NAME}.FN_T_UID2_IDENTITY_MAP('validate@example.com', 'email'));
All query examples use the following default values for each name variable:
Variable | Advertiser Solution Default Value | Data Provider Solution Default Value | Comments |
---|---|---|---|
{DATABASE_NAME} | UID2_PROD_ADV_SH | UID2_PROD_DP_SH | If needed, you can change the default database name when creating a new database after you are granted access to the selected UID2 Share. |
{SCHEMA_NAME} | ADV | DP | This is an immutable name. |
Map DII
To map all types of DII, use the FN_T_UID2_IDENTITY_MAP
function.
If the DII is an email address, the service normalizes the data using the UID2 Email Address Normalization rules.
If the DII is a phone number, you must normalize it before sending it to the service, using the UID2 Phone Number Normalization rules.
Argument | Data Type | Description |
---|---|---|
INPUT | varchar(256) | The DII to map to the UID2 and second-level bucket ID. |
INPUT_TYPE | varchar(256) | The type of DII to map. Allowed values: email , email_hash , phone , and phone_hash . |
A successful query returns the following information for the specified DII.
Column Name | Data Type | Description |
---|---|---|
UID2 | TEXT | The value is one of the following:
|
BUCKET_ID | TEXT | The value is one of the following:
|
UNMAPPED | TEXT | The value is one of the following:
|
Values for the UNMAPPED Column
The following table shows possible values for the UNMAPPED
column.
Value | Meaning |
---|---|
NULL | The DII was successfully mapped. |
OPTOUT | The user has opted out. |
INVALID IDENTIFIER | The email address or phone number is invalid. |
INVALID INPUT TYPE | The value of INPUT_TYPE is invalid. Valid values for INPUT_TYPE are: email , email_hash , phone , phone_hash . |
Examples
Mapping request examples in this section:
- Single Unhashed Email
- Multiple Unhashed Emails
- Single Unhashed Phone Number
- Multiple Unhashed Phone Numbers
- Single Hashed Email
- Multiple Hashed Emails
- Single Hashed Phone Number
- Multiple Hashed Phone Numbers
The input and output data in these examples is fictitious, for illustrative purposes only. The values provided are not real values.
Mapping Request Example - Single Unhashed Email
The following queries illustrate how to map a single email address, using the default database and schema names.
Advertiser solution query for a single email:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP('validate@example.com', 'email'));
Data provider solution query for a single email:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP('validate@example.com', 'email'));
Query results for a single email:
+----------------------------------------------+------------+----------+
| UID2 | BUCKET_ID | UNMAPPED |
+----------------------------------------------+------------+----------+
| 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
+----------------------------------------------+------------+----------+
Mapping Request Example - Multiple Unhashed Emails
The following queries illustrate how to map multiple email addresses, using the default database and schema names.
Advertiser solution query for multiple emails:
select a.ID, a.EMAIL, m.UID2, m.BUCKET_ID, m.UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP(EMAIL, 'email') t) m
on a.ID=m.ID;
Data provider solution query for multiple emails:
select a.ID, a.EMAIL, m.UID2, m.BUCKET_ID, UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP(EMAIL, 'email') t) m
on a.ID=m.ID;
Query results for multiple emails:
The following table identifies each item in the response, including NULL
values for NULL
or improperly formatted emails.
+----+----------------------+----------------------------------------------+------------+--------------------+
| ID | EMAIL | UID2 | BUCKET_ID | UNMAPPED |
+----+----------------------+----------------------------------------------+------------+--------------------+
| 1 | validate@example.com | 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
| 2 | test@uidapi.com | IbW4n6LIvtDj/8fCESlU0QG9K/fH63UdcTkJpAG8fIQ= | a30od4mNRd | NULL |
| 3 | invalid-email | NULL | NULL | INVALID IDENTIFIER |
| 4 | NULL | NULL | NULL | INVALID IDENTIFIER |
+----+----------------------+----------------------------------------------+------------+--------------------+
Mapping Request Example - Single Unhashed Phone Number
The following queries illustrate how to map a phone number, using the default database and schema names.
You must normalize phone numbers using the UID2 Phone Number Normalization rules.
Advertiser solution query for a single phone number:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP('+12345678901', 'phone'));
Data Provider solution query for a single phone number:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP('+12345678901', 'phone'));
Query results for a single phone number:
+----------------------------------------------+------------+----------+
| UID2 | BUCKET_ID | UNMAPPED |
+----------------------------------------------+------------+----------+
| 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
+----------------------------------------------+------------+----------+
Mapping Request Example - Multiple Unhashed Phone Numbers
The following queries illustrate how to map multiple phone numbers, using the default database and schema names.
You must normalize phone numbers using the UID2 Phone Number Normalization rules.
Advertiser solution query for multiple phone numbers:
select a.ID, a.PHONE, m.UID2, m.BUCKET_ID, m.UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP(PHONE, 'phone') t) m
on a.ID=m.ID;
Data Provider solution query for multiple phone numbers:
select a.ID, a.PHONE, m.UID2, m.BUCKET_ID, UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP(PHONE, 'phone') t) m
on a.ID=m.ID;
Query results for multiple phone numbers:
The following table identifies each item in the response, including NULL
values for NULL
or invalid phone numbers.
+----+--------------+----------------------------------------------+------------+--------------------+
| ID | PHONE | UID2 | BUCKET_ID | UNMAPPED |
+----+--------------+----------------------------------------------+------------+--------------------+
| 1 | +12345678901 | 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
| 2 | +61491570006 | IbW4n6LIvtDj/8fCESlU0QG9K/fH63UdcTkJpAG8fIQ= | a30od4mNRd | NULL |
| 3 | 1234 | NULL | NULL | INVALID IDENTIFIER |
| 4 | NULL | NULL | NULL | INVALID IDENTIFIER |
+----+--------------+----------------------------------------------+------------+--------------------+
Mapping Request Example - Single Hashed Email
The following queries illustrate how to map a single email address hash, using the default database and schema names.
Advertiser solution query for a single hashed email:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP(BASE64_ENCODE(SHA2_BINARY('validate@example.com', 256)), 'email_hash'));
Data provider solution query for a single hashed email:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP(BASE64_ENCODE(SHA2_BINARY('validate@example.com', 256)), 'email_hash'));
Query results for a single hashed email:
+----------------------------------------------+------------+----------+
| UID2 | BUCKET_ID | UNMAPPED |
+----------------------------------------------+------------+----------+
| 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
+----------------------------------------------+------------+----------+
Mapping Request Example - Multiple Hashed Emails
The following queries illustrate how to map multiple email address hashes, using the default database and schema names.
Advertiser solution query for multiple hashed emails:
select a.ID, a.EMAIL_HASH, m.UID2, m.BUCKET_ID, m.UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP(EMAIL_HASH, 'email_hash') t) m
on a.ID=m.ID;
Data provider solution query for multiple hashed emails:
select a.ID, a.EMAIL_HASH, m.UID2, m.BUCKET_ID, m.UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP(EMAIL_HASH, 'email_hash') t) m
on a.ID=m.ID;
Query results for multiple hashed emails:
The following table identifies each item in the response, including NULL
values for NULL
hashes.
+----+----------------------------------------------+----------------------------------------------+------------+--------------------+
| ID | EMAIL_HASH | UID2 | BUCKET_ID | UNMAPPED |
+----+----------------------------------------------+----------------------------------------------+------------+--------------------+
| 1 | LdhtUlMQ58ZZy5YUqGPRQw5xUMS5dXG5ocJHYJHbAKI= | 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
| 2 | NULL | NULL | NULL | INVALID IDENTIFIER |
| 3 | /XJSTajB68SCUyuc3ePyxSLNhxrMKvJcjndq8TuwW5g= | IbW4n6LIvtDj/8fCESlU0QG9K/fH63UdcTkJpAG8fIQ= | a30od4mNRd | NULL |
+----+----------------------------------------------+----------------------------------------------+------------+--------------------+
Mapping Request Example - Single Hashed Phone Number
The following queries illustrate how to map a single phone number hash, using the default database and schema names.
Advertiser solution query for a single hashed phone number:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP(BASE64_ENCODE(SHA2_BINARY('+12345678901', 256)), 'phone_hash'));
Data provider solution query for a single hashed phone number:
select UID2, BUCKET_ID, UNMAPPED from table(UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP(BASE64_ENCODE(SHA2_BINARY('+12345678901', 256)), 'phone_hash'));
Query results for a single hashed phone number:
+----------------------------------------------+------------+----------+
| UID2 | BUCKET_ID | UNMAPPED |
+----------------------------------------------+------------+----------+
| 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
+----------------------------------------------+------------+----------+
Mapping Request Example - Multiple Hashed Phone Numbers
The following queries illustrate how to map multiple phone number hashes, using the default database and schema names.
Advertiser solution query for multiple hashed phone numbers:
select a.ID, a.PHONE_HASH, m.UID2, m.BUCKET_ID, m.UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_ADV_SH.ADV.FN_T_UID2_IDENTITY_MAP(PHONE_HASH, 'phone_hash') t) m
on a.ID=m.ID;
Data provider solution query for multiple hashed phone numbers:
select a.ID, a.PHONE_HASH, m.UID2, m.BUCKET_ID, m.UNMAPPED from AUDIENCE a LEFT JOIN(
select ID, t.* from AUDIENCE, lateral UID2_PROD_DP_SH.DP.FN_T_UID2_IDENTITY_MAP(PHONE_HASH, 'phone_hash') t) m
on a.ID=m.ID;
Query results for multiple hashed phone numbers:
The following table identifies each item in the response, including NULL
values for NULL
hashes.
+----+----------------------------------------------+----------------------------------------------+------------+--------------------+
| ID | PHONE_HASH | UID2 | BUCKET_ID | UNMAPPED |
+----+----------------------------------------------+----------------------------------------------+------------+--------------------+
| 1 | LdhtUlMQ58ZZy5YUqGPRQw5xUMS5dXG5ocJHYJHbAKI= | 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | NULL |
| 2 | NULL | NULL | NULL | INVALID IDENTIFIER |
| 3 | /XJSTajB68SCUyuc3ePyxSLNhxrMKvJcjndq8TuwW5g= | IbW4n6LIvtDj/8fCESlU0QG9K/fH63UdcTkJpAG8fIQ= | a30od4mNRd | NULL |
+----+----------------------------------------------+----------------------------------------------+------------+--------------------+
Regenerate UID2s
The UID2_SALT_BUCKETS
view query returns the date and time when the second-level salt buckets were last updated. Second-level salt is used when generating UID2s. When the salt in the bucket is updated, the previously generated UID2 becomes outdated and doesn’t match the UID2 generated by other parties for the same user.
To determine which UID2s need regeneration, compare the timestamps of when they were generated to the most recent timestamp of the second-level salt bucket update.
Column Name | Data Type | Description |
---|---|---|
BUCKET_ID | TEXT | The ID of the second-level salt bucket. This ID parallels the BUCKET_ID returned by the identity map function. Use the BUCKET_ID as the key to do a join query between the function call results and results from this view call. |
LAST_SALT_UPDATE_UTC | TIMESTAMP_NTZ | The last time the salt in the bucket was updated. This value is expressed in UTC. |
The following example shows an input table and the query used to find the UID2s in the table that must be regenerated because the second-level salt was updated.
Targeted Input Table
In this example scenario, the advertiser/data provider has stored the UID2s in a table named AUDIENCE_WITH_UID2
. The last column, LAST_UID2_UPDATE_UTC
, is used to record the time at which a UID2 was generated. If no UID2 has been generated, the value is NULL
, as shown in the third example. The advertiser/data provider can use this timestamp value to determine which UID2s need to be regenerated.
select * from AUDIENCE_WITH_UID2;
+----+----------------------+----------------------------------------------+------------+-------------------------+
| ID | EMAIL | UID2 | BUCKET_ID | LAST_UID2_UPDATE_UTC |
+----+----------------------+----------------------------------------------+------------+-------------------------+
| 1 | validate@example.com | 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | 2021-03-01 00:00:00.000 |
| 2 | test1@uidapi.com | Q4A5ZBuBCYfuV3Wd8Fdsx2+i33v7jyFcQbcMG/LH4eM= | ad1ANEmVZ | 2021-03-03 00:00:00.000 |
| 3 | test2@uidapi.com | NULL | NULL | NULL |
+----+----------------------+----------------------------------------------+------------+-------------------------+
To find missing or outdated UID2s, use the following query examples, which use the default database and schema names.
Advertiser solution query:
select a.*, b.LAST_SALT_UPDATE_UTC
from AUDIENCE_WITH_UID2 a LEFT OUTER JOIN UID2_PROD_ADV_SH.ADV.UID2_SALT_BUCKETS b
on a.BUCKET_ID=b.BUCKET_ID
where a.LAST_UID2_UPDATE_UTC < b.LAST_SALT_UPDATE_UTC or a.UID2 IS NULL;
Data provider solution query:
select a.*, b.LAST_SALT_UPDATE_UTC
from AUDIENCE_WITH_UID2 a LEFT OUTER JOIN UID2_PROD_DP_SH.DP.UID2_SALT_BUCKETS b
on a.BUCKET_ID=b.BUCKET_ID
where a.LAST_UID2_UPDATE_UTC < b.LAST_SALT_UPDATE_UTC or a.UID2 IS NULL;
Query results:
The following table identifies each item in the response. The result includes an email, UID2
, BUCKET_ID
, LAST_UID2_UPDATE_UTC
, and LAST_SALT_UPDATE_UTC
as shown in the ID 1 example below. No information is returned for ID 2 because the corresponding UID2 was generated after the last bucket update. For ID 3, NULL
values are returned due to a missing UID2.
+----+----------------------+----------------------------------------------+------------+-------------------------+-------------------------+
| ID | EMAIL | UID2 | BUCKET_ID | LAST_UID2_UPDATE_UTC | LAST_SALT_UPDATE_UTC |
+----+----------------------+----------------------------------------------+------------+-------------------------+-------------------------+
| 1 | validate@example.com | 2ODl112/VS3x2vL+kG1439nPb7XNngLvOWiZGaMhdcU= | ad1ANEmVZ | 2021-03-01 00:00:00.000 | 2021-03-02 00:00:00.000 |
| 3 | test2@uidapi.com | NULL | NULL | NULL | NULL |
+----+----------------------+----------------------------------------------+------------+-------------------------+-------------------------+
Migration Guide
If you are using the FN_T_UID2_IDENTITY_MAP_EMAIL
and FN_T_UID2_IDENTITY_MAP_EMAIL_HASH
functions, it's best to migrate to the FN_T_UID2_IDENTITY_MAP
function as soon as possible. This function does everything that the other two functions do, and has other built-in improvements.
Advantages of the FN_T_UID2_IDENTITY_MAP
function:
- It supports mapping both phone numbers and hashed phone numbers.
- It supports user opt-out.
- It adds a new column,
UNMAPPED
. In any scenario where the DII cannot be mapped to a UID2 for any reason, this column includes information about the reason.
For details, see Values for the UNMAPPED Column
This section includes the following information to help you upgrade to the new function:
Changing Existing Code
The code snippets in this section are before/after examples of how the earlier functions might be implemented, and how you could update to use the new function.
Example for mapping unhashed emails
Before:
FN_T_UID2_IDENTITY_MAP_EMAIL(EMAIL)
After:
FN_T_UID2_IDENTITY_MAP(EMAIL, 'email')
Example for mapping unhashed emails
Before:
FN_T_UID2_IDENTITY_MAP_EMAIL_HASH(EMAIL_HASH)
After:
FN_T_UID2_IDENTITY_MAP(EMAIL_HASH, 'email_hash')
Using the Values for the UNMAPPED Column
When you have the new function implemented, you can check the UNMAPPED
column returned by the FN_T_UID2_IDENTITY_MAP
. If any DII could not be mapped to a UID2, this column gives the reason.
For details about the values and their explanations, see Values for the UNMAPPED Column.
Usage for UID2 Sharers
A UID2 sharing participant is a company that takes part in sharing, either as a sender or a receiver, to share UID2s with another participant.
Advertisers and data providers can share UID2s with other authorized UID2 sharing participants via Snowflake (tokenized sharing). They can encrypt raw UID2s into UID2 tokens and then send them to another participant for sharing in pixels (see Tokenized Sharing in Pixels). If you are not sending data in pixels within Snowflake, you can take part in UID2 sharing as long as you follow the requirements laid out in Security Requirements for UID2 Sharing.
The UID2 token generated during this process is for sharing only—you cannot use it in the bidstream. There is a different workflow for generating tokens for the bidstream: see Tokenized Sharing in the Bidstream.
If you are not sending data in pixels or in the bidstream within Snowflake, you can also take part in raw UID2 sharing as long as you follow the requirements laid out in Security Requirements for UID2 Sharing.
The following activities support tokenized sharing:
Encrypt Tokens
To encrypt raw UID2s to UID2 tokens, use the FN_T_UID2_ENCRYPT
function. Use the applicable prefix to indicate your role:
- For advertisers:
ADV.FN_T_UID2_ENCRYPT
- For data providers:
DP.FN_T_UID2_ENCRYPT
Argument | Data Type | Description |
---|---|---|
RAW_UID2 | varchar(128) | The raw UID2 to encrypt to a UID2 token. |
A successful query returns the following information for the specified raw UID2.
Column Name | Data Type | Description |
---|---|---|
UID2_TOKEN | TEXT | The value is one of the following:
|
ENCRYPTION_STATUS | TEXT | The value is one of the following:
|