UID2 and EUID Prebid.js Integration Examples
This example demonstrates how a content publisher can integrate with UID2 and Prebid.js using the UID2 Client-Side Integration Guide for Prebid.js, which includes generating UID2 tokens within the browser.
This example is configured to hit endpoints at https://operator-integ.uidapi.com. Calls to this endpoint will be rejected if made from localhost.
A working sample subscription_id and client_key are declared in the javascript. Please override them in set[Uid2|Euid]Config() to test with your own CSTG credentials.
Note Generation of UID2 after EUID will fail due to consent settings on pbjs config.
UID2 Example
CSTG Subscription Id: |
|
CSTG Public Key: |
|
Email Address (DII): |
|
Ready for Targeted Advertising: |
|
UID2 Advertising Token: |
|
EUID Example
CSTG Subscription Id: |
|
CSTG Public Key: |
|
Email Address (DII): |
|
Ready for Targeted Advertising: |
|
EUID Advertising Token: |
|