Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Prebid.js documentation #327

Closed
wants to merge 20 commits into from

Conversation

sunnywu
Copy link
Contributor

@sunnywu sunnywu commented Oct 25, 2023

No description provided.

docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
@sunnywu
Copy link
Contributor Author

sunnywu commented Oct 26, 2023

docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved
docs/guides/integration-prebidjs.md Outdated Show resolved Hide resolved

### Web Integrations

The following resources are available for publisher web integrations.

| Integration Guide | Content Description |
| :--- | :--- |
| [Prebid.js Integration Guide](./integration-prebid.md) | An integration guide for publishers who want to integrate with UID2 and generate identity tokens to be passed by Prebid in the RTB bid stream. |
| [Prebid.js Advanced Integration Guide](./integration-prebid-advanced.md) | An integration guide for publishers who want to integrate with UID2 and generate identity tokens to be passed by Prebid in the RTB bid stream. |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The same summaries between the two guides make me confused. I think Advanced integration needs server-side changes, could we emphasise this in summary?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


When you configure the module to use Client Refresh mode, you must choose **one** of the following options for storing the API response information.
The following sections demonstrate the different ways to configure the UID2 module and list the requirements for the DII passed to the module.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we highlight in bold or add a ":::note" section here to tell pub to pass 1 and only 1 DII (not multiple) in a single setConfig call to UID2 module?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Information about how to integrate Prebid with UID2 is also in these locations:
- On the [Unified ID 2.0](https://docs.prebid.org/dev-docs/modules/userid-submodules/unified2.html) page for the Prebid User ID submodule on the Prebid site.
- In the [UID2 User ID Submodule](https://github.com/prebid/Prebid.js/blob/master/modules/uid2IdSystem.md) page in the Prebid GitHub repository.
Complete the UID2 account setup by following the steps described in the [Account Setup](../getting-started/gs-account-setup.md) page. You will need to provide a list of domain names for the sites that you will be using with Prebid.js.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add "You will need to provide a list of domain names for the sites that you will be using with Prebid.js." to after when the account setup is complete? Feels like the domain names is part of the actual account setup.

Complete the UID2 account setup by following the steps described in the [Account Setup] page.
When account setup is complete you will be provided with a public key and subscription ID. These will be used to configure the UID2 module. You will also need to provide a list of domain names for the sites that you will be using with Prebid.js.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pubs will have to provide domain names as part of the account setup, otherwise the public key and subscription ID they receive won't be usable

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some clarification

You will need to provide a list of domain names for the sites that you will be using with Prebid.js as part of the account setup process.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds better, thank you!


You must provide the Prebid module with the full JSON response body from the applicable endpoint:
Once configured, the UID2 module will generate a UID2 token for the user and store it in the user's browser. The module will automatically refresh the token as required while your site is open in the user's browser.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it stored in a cookie or local storage or is this an option of prebid? Feel like we might get a question based on dailyvoice.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a section on how the module stores data

Copy link

@KimberlyTobias KimberlyTobias Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


### Response Storage Options
:::note
The examples assume you are using the UID2 production environment. During integration testing use the UID2 integration environment by setting `params.uid2ApiBase` to `"https://operator-integ.uidapi.com"`. You will have a different **subscription ID** and **public key** for the integration environment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with Andrei in that we should not be putting integ data into the bid stream, can we call that out here please?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


In this example, the cookie is called `uid2_pub_cookie`.
No normalization or hashing is required by the publisher.
Copy link

@KimberlyTobias KimberlyTobias Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay so after reading the full doc, I now understand what we are doing here :)
Can we maybe put in a list or table above here to state which integration route options you have? -- Email, Hashed Email, Phone...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a list of the options

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super clear now, thanks!

@sunnywu sunnywu closed this Nov 2, 2023
@sunnywu
Copy link
Contributor Author

sunnywu commented Nov 2, 2023

work done and merged in other PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants