SDKs: Summary
Review the SDK functionality to determine which SDK or SDKs you want to use, then click through in the SDKs table to review the reference documentation.
SDK Functionality
The following table summarizes the functionality available with each SDK.
UID2 SDK for... | Client-Side or Server-Side | 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* | Monitor Rotated Salt Buckets |
---|---|---|---|---|---|---|---|
JavaScript | Client | — | — | ✅ | ✅ | — | — |
Java | Server | ✅ | ✅ | ✅ | ✅ | ✅ | — |
Python | Server | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
C# / .NET | Server | ✅ | ✅ | — | — | — | — |
C++ | Server | ✅ | ✅ | — | — | — | — |
Android | Client (Mobile) | — | — | ✅ | ✅ | — | — |
iOS | Client (Mobile) | — | — | ✅ | ✅ | — | — |
*Advertisers and Data Providers who need to generate raw UID2s from DII can also do this via Snowflake (see Snowflake Integration Guide) or by using the POST /identity/map endpoint.
SDK Documentation
The following SDK documentation is available for UID2 integration. Documentation links are in the first column.
SDK/Link to Guide | Description | Audience |
---|---|---|
SDK for JavaScript | Client-side JavaScript SDK that facilitates the process of establishing client identity using UID2 and retrieving UID2 tokens for publishers. | Publishers |
SDK for Java | An SDK for audiences using Java server-side:
| Publishers DSPs Advertisers Data Providers Sharers |
SDK for Python | An SDK for audiences using Python server-side:
| Publishers DSPs Data Providers Sharers |
SDK for C# / .NET | An SDK for audiences using .NET server-side:
| DSPs Data Providers Sharers |
SDK for C++ | An SDK for audiences using C++ server-side:
| DSPs Data Providers Sharers |
SDK for Android | An SDK that facilitates the process of generating or establishing client identity using UID2 and retrieving UID2 tokens for publishers that need to support Android apps. | Publishers |
SDK for iOS | An SDK that facilitates the process of generating or establishing client identity using UID2 and retrieving UID2 tokens for publishers that need to support iOS apps. | Publishers |