Skip to content

Commit 1427723

Browse files
add and update sample implementation sections for prebid
1 parent 4cbb4ee commit 1427723

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

docs/guides/integration-prebid-client-server.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ Information about how to integrate Prebid with UID2 is also in the following loc
3636
- On the Prebid site, on the [Unified ID 2.0](https://docs.prebid.org/dev-docs/modules/userid-submodules/unified2.html) page for the Prebid User ID submodule.
3737
- In the Prebid GitHub repository, on the [UID2 User ID Submodule](https://github.com/prebid/Prebid.js/blob/master/modules/uid2IdSystem.md) page.
3838

39-
<!-- ## Integration Example
40-
41-
GWH note 12/14/23 updated 2/7/25: we have a client-side example for Prebid.js but no client-server example. -->
42-
4339
## Integrating with Single Sign-On (SSO)
4440

4541
<SnptIntegratingWithSSO />
@@ -394,3 +390,11 @@ if you're using Prebid.js, and you're planning to pass UID2 tokens to Google usi
394390

395391
- In your Google Ad Manager account, make sure that encrypted signals are properly shared with third-party bidders: see [Allow Secure Signals Sharing](integration-google-ss.md#allow-secure-signals-sharing).
396392
- Update your Prebid.js configuration: see [Optional: Enable Secure Signals in Prebid.js](integration-google-ss.md#optional-enable-secure-signals-in-prebidjs).
393+
394+
## Sample Implementation
395+
396+
The following sample implementation is available to illustrate how to integrate UID2 with Prebid.js using client-server integration:
397+
398+
- Client-server integration example using Prebid.js:
399+
- [Sample implementation](https://prebid-client-server.samples.uidapi.com/)
400+
- [Code repository](https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/prebid-integrations/client-server)

docs/guides/integration-prebid-client-side.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ This implementation requires Prebid.js version 8.21.0 or later. For version info
2727

2828
If you need to use an earlier version of Prebid.js, use the implementation solution presented in the [UID2 Client-Server Integration Guide for Prebid.js](integration-prebid-client-server.md) instead.
2929

30-
## Integration Example
31-
32-
An example of the UID2 Prebid.js client-side integration is available at the following links:
33-
34-
- Site: [Client-Side UID2 Integration with Prebid.js](https://prebid-client.samples.uidapi.com/)
35-
- Code: [uid2-examples/web-integrations/prebid-integrations/client-side](https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/prebid-integrations/client-side)
36-
3730
## Integrating with Single Sign-On (SSO)
3831

3932
<SnptIntegratingWithSSO />
@@ -243,16 +236,29 @@ Once you add UID2 to your configuration, Prebid does not provide functionality t
243236
If you are managing the UID2 SDK separately, use `window.__uid2.disconnect()` which handles all logout functionality&#8212;clearing both memory and storage&#8212;without requiring a page refresh.
244237
:::
245238

246-
### Deferred Client-Side Integration Example
247-
248-
An example of the deferred UID2 Prebid.js integration is available at the following links:
249-
250-
- Site: [Deferred UID2 Integration with Prebid.js](https://prebid-deferred.samples.uidapi.com/)
251-
- Code: [uid2-examples/web-integrations/prebid-integrations/client-side-deferred](https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/prebid-integrations/client-side-deferred)
239+
A sample implementation for deferred configuration is also available. For details, see [Sample Implementations](#sample-implementations).
252240

253241
## Optional: Prebid.js Integration with Google Secure Signals
254242

255243
if you're using Prebid.js, and you're planning to pass UID2 tokens to Google using Google Secure Signals, there are a couple of additional configuration steps:
256244

257245
- In your Google Ad Manager account, make sure that encrypted signals are properly shared with third-party bidders: see [Allow Secure Signals Sharing](integration-google-ss.md#allow-secure-signals-sharing).
258246
- Update your Prebid.js configuration: see [Optional: Enable Secure Signals in Prebid.js](integration-google-ss.md#optional-enable-secure-signals-in-prebidjs).
247+
248+
A sample implementation for Prebid.js with Secure Signals is also available. For details, see [Sample Implementations](#sample-implementations).
249+
250+
## Sample Implementations
251+
252+
The following sample implementations are available to illustrate how to integrate UID2 with Prebid.js on the client side:
253+
254+
- Client-side integration example using Prebid.js:
255+
- [Sample implementation](https://prebid-client.samples.uidapi.com/)
256+
- [Code repository](https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/prebid-integrations/client-side)
257+
- Deferred client-side integration example using Prebid.js:
258+
- [Sample implementation](https://prebid-deferred.samples.uidapi.com/)
259+
- [Code repository](https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/prebid-integrations/client-side-deferred)
260+
- Client-side integration example using Prebid.js with Google Secure Signals:
261+
- [Sample implementation](https://prebid-secure-signals.samples.uidapi.com/)
262+
- [Code repository](https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/prebid-secure-signals)
263+
264+
Each sample implementation has its own instructions.

0 commit comments

Comments
 (0)