You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/integration-prebid-client-side.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,12 +207,12 @@ pbjs.setConfig({
207
207
208
208
## Optional: Deferred Client-Side UID2 Configuration with mergeConfig
209
209
210
-
In some scenarios, you may want to add UID2 to your Prebid.js configuration *after*the page has already loaded—for example, when the user logs in after page load, or when consent is granted asynchronously.
210
+
If you already have Prebid.js configured but didn't include UID2 in the initial setup, you can still add the UID2 module using `mergeConfig()` and `refreshUserIds()`. This allows Prebid.js to handle all UID2 work—token generation, storage, and refresh—even when UID2 wasn't part of your original configuration.
211
211
212
212
Instead of using `setConfig()` (which overwrites existing configuration), use `mergeConfig()` to add UID2 without affecting other settings, and then call `refreshUserIds()` to trigger token generation:
213
213
214
214
```js
215
-
// Step 1: User logs in or provides consent after page load
Copy file name to clipboardExpand all lines: docs/ref-info/integration-sample-sites.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,31 +54,31 @@ This section includes sample pages for generating UID2 tokens to be passed by Pr
54
54
55
55
### Client-Side Integration with Prebid.js
56
56
57
-
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.
57
+
This sample is for publishers who have access to DII on the client side and want to do front-end development only. Prebid.js handles the entire UID2 workflow—token generation, storage, and automatic refresh—with no server-side development required.
58
58
59
59
- Site: [Client-Side UID2 Integration with Prebid.js](https://prebid-client.samples.uidapi.com/)
- Doc: [UID2 Client-Side Integration Guide for Prebid.js](https://unifiedid.com/docs/guides/integration-prebid-client-side)
62
62
63
63
### Client-Server Integration with Prebid.js
64
64
65
-
This sample is for publishers who want to generate UID2 tokens on the server side and pass them to Prebid.js for header bidding.
65
+
This sample is for publishers who have access to DII on the server side and can do server-side development. The server generates the initial UID2 token, and Prebid.js continues to manage the token lifecycle—including storage and automatic refresh.
66
66
67
67
- Site: [Client-Server UID2 Integration with Prebid.js](https://prebid-client-server.samples.uidapi.com/)
- Doc: [UID2 Client-Server Integration Guide for Prebid.js](https://unifiedid.com/docs/guides/integration-prebid-client-server)
70
70
71
71
### Deferred Client-Side Configuration with Prebid.js
72
72
73
-
This sample demonstrates how to add UID2 to Prebid.js *after* the page has loaded, using `mergeConfig()` and `refreshUserIds()`. This pattern is useful for async login flows, delayed consent, or Single Page Applications (SPAs).
73
+
This sample demonstrates how publishers who already have Prebid.js configured can still add the UID2 module using functions provided by Prebid. This allows Prebid.js to handle all UID2 work even when the module wasn't included in the initial configuration.
74
74
75
75
- Site: [Deferred UID2 Integration with Prebid.js](https://prebid-deferred.samples.uidapi.com/)
- Doc: [UID2 Client-Side Integration Guide for Prebid.js](https://unifiedid.com/docs/guides/integration-prebid-client-side)
78
78
79
79
### Prebid.js with Secure Signals
80
80
81
-
This sample demonstrates how to use UID2 with Prebid.js and Google Secure Signals together.
81
+
This sample demonstrates how to configure Prebid.js with both UID2 and Google Secure Signals, enabling the integration between header bidding and Google Ad Manager.
@@ -90,31 +90,31 @@ This section includes sample pages for passing UID2 identity data to Google's ad
90
90
91
91
### Client-Side Secure Signals
92
92
93
-
This sample is for publishers who want a purely client-side integration with GAM Secure Signals.
93
+
This sample is for publishers who want a client-side integration with Google Ad Manager Secure Signals. It uses the UID2 SDK for JavaScript to generate and manage tokens, while the Secure Signal script automatically shares the token with Google Ad Manager for ad requests.
94
94
95
95
- Site: [Client-Side UID2 Integration with Google Secure Signals](https://secure-signals-client-side.samples.uidapi.com/)
- Doc: [Google Ad Manager Secure Signals Integration Guide](https://unifiedid.com/docs/guides/integration-google-ss)
98
98
99
99
### Client-Server Secure Signals
100
100
101
-
This sample is for publishers who want a hybrid approach with token generation on the server and client-side logic for secure signals.
101
+
This sample is for publishers who want to generate UID2 tokens on the server side while using the SDK for JavaScript on the client to manage tokens. The Secure Signal script automatically shares the token with Google Ad Manager for ad requests.
102
102
103
103
- Site: [Client-Server UID2 SDK Integration Example with Google Secure Signals](https://secure-signals-client-server.samples.uidapi.com/)
- Doc: [Google Ad Manager Secure Signals Integration Guide](https://unifiedid.com/docs/guides/integration-google-ss)
106
106
107
107
### Server-Side Secure Signals
108
108
109
-
This sample is for publishers who want all Secure Signals and UID2 logic server-side for better control and security.
109
+
This sample is for publishers who want all UID2 token logic handled server-side. The Secure Signal script reads the token and automatically shares it with Google Ad Manager for ad requests.
110
110
111
111
- Site: [Server-Side UID2 Integration with Google Secure Signals](https://secure-signals-server-side.samples.uidapi.com/)
- Doc: [Google Ad Manager Secure Signals Integration Guide](https://unifiedid.com/docs/guides/integration-google-ss)
114
114
115
115
### React Client-Side Secure Signals
116
116
117
-
This sample is for publishers with React apps who want to integrate UID2 + Secure Signals directly into their component-based architecture.
117
+
This sample is for publishers with React apps who want a client-side integration with Google Secure Signals. It uses the UID2 SDK for JavaScript within a React component to generate and manage tokens, while the Secure Signal script automatically shares the token with Google Ad Manager.
118
118
119
119
- Site: [React Client-Side UID2 Integration with Google Secure Signals](https://secure-signals-react.samples.uidapi.com/)
0 commit comments