Skip to main content

Integration Samples and Tools

This page lists all official UID2 sample implementations highlighting common integration use cases, along with links to live demo sites, source code, and related documentation. Use this page to quickly identify which sample matches your needs and explore working examples.

Web Integrations

This section summarizes the sample integrations available for integrating UID2 directly into websites. For integration options by participant type, see Publisher Web Integration Overview or Advertiser/Data Provider Integration Overview.

Client-Side Integration Using UID2 SDK for JavaScript

This sample is for publishers who prefer a fully client-side integration using the SDK for JavaScript Reference Guide to generate and manage tokens directly in the browser. This approach is ideal for fast prototyping with minimal back-end requirements.

Client-Server Integration Using UID2 SDK for JavaScript

This sample is for publishers who want more control over UID2 token creation (handled on your servers), while using the SDK for JavaScript on the client side to manage and refresh tokens in the browser.

UID2 Server-Only (Server-Side)

This sample is for publishers who want all UID2 operations to occur on the server side, offering maximum control, security, and flexibility without relying on a client-side SDK.

Prebid.js Integrations

This section includes a sample page for generating UID2 tokens to be passed by Prebid.js in the RTB bidstream. For details, see UID2 Integration Overview for Prebid.

Client-Side Integration with Prebid.js

This sample is for publishers who want to generate UID2 tokens on the client side and pass them into header bidding auctions using Prebid.js.

Google Secure Signals Integrations

This section includes sample pages for passing UID2 identity data to Google's advertising systems through their Secure Signals feature. For details, see Google Ad Manager Secure Signals Integration Guide.

Client-Side Secure Signals

This sample is for publishers who want a purely client-side integration with GAM Secure Signals.

React Client-Side Secure Signals

This sample is for publishers with React apps who want to integrate UID2 + Secure Signals directly into their component-based architecture.

Server-Side Secure Signals

This sample is for publishers who want all Secure Signals and UID2 logic server-side for better control and security.

Client-Server Secure Signals

This sample is for publishers who want a hybrid approach with token generation on the server and client-side logic for secure signals.

UID2 Hashing Tool

This tool is for developers or clients validating data preparation, such as hashing and normalization of emails before token requests. The tool is available at the following links:

note

The sample sites in this file highlight some common integrations, but do not represent all available UID2 integration options. For a summary of all the integration options available, see UID2 Integration Guides: Summary.