For a summary of all web options, including Prebid.js and additional SDK options, see Web Integration Overview.
For additional flexibility, UID2 also provides alternative methods for some of the features and complementary products, such as a Prebid integration.
Client-Side or Server-Side Integration
|You have access to DII on the client side and want to do front-end development only.
|You have access to DII on the server side and can do server-side development, or you are using a Private Operator.
Generating the UID2 Token
From the table in Client-Side or Server-Side Integration, determine which option is best for you, and then follow the applicable integration guide.
Refreshing the UID2 Token
Storing the UID2 Token in the Browser
The cookie size can be significant, which could be a problem. However, if local storage is not an option, this is one possible approach.
Passing the UID2 Token to the Bid Stream
You can pass the token into the bid stream using any option you choose—for example, Prebid.js. For some suggestions, see Pass the UID2 Token Into the Bid Stream in the Web Integration Overview.
- Complete UID2 account setup.
- Add the SDK to your site.
- Configure the SDK.
For detailed instructions, refer to one of the following integration guides: