Prebid Server Bid Adapter: send SharedID Edge's PBS-encrypted client IP (prebid-server#5106)

Open
#16,281 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start by reading the proposed sharedIdEdge RTD module in #15909 and the Prebid Server adapter’s ORTB conversion path. The server field name and support depend on prebid-server#5106, and the SharedID Edge response fields are still being settled. Trace how the encrypted value can be limited to the configured PBS host and excluded when privacy rules block IP transmission; done means it reaches only the eligible PBS request and respects those rules.

Written by the indexing model from the issue text.

Description

🤖 This issue was written by an AI agent (Claude Code) on behalf of @patmmccann.

Type of issue

Feature request.

Description

prebid/prebid-server#5106 proposes that Prebid Server accept a client IP that the publisher's edge HPKE-encrypted to the PBS host's public key. This is the same scheme Google uses for GPT's publisher-provided IP. PBS would decrypt it into device.ip / device.ipv6 and then apply its usual privacy masking. The proposed request field is device.ext.prebid.eip (name still open on #5106).

SharedID Edge, which runs on the publisher's own domain, is adding this encryption (for Google, and for one or more PBS hosts), returned in its /_sid/v1 response. Prebid.js needs a way to carry the PBS value into the PBS request.

Proposal
  1. Read the value: the sharedIdEdge RTD module proposed in #15909 (or whatever ends up reading the /_sid/v1 response) picks up the encrypted IP for the configured PBS host(s), using the field names SharedID Edge settles on.
  2. Send it to Prebid Server only:
    • Add it to the PBS request at the field #5106 settles on.
    • It must never go to client-side bidders, who can't decrypt it, so it shouldn't go through global ortb2. One option is an s2s-only input the prebidServerBidAdapter ORTB converter copies into the request, and keys by s2sConfig if several PBS hosts are configured, since each host has its own key.
  3. Privacy: treat it like the IP it is. Don't send it when transmitPreciseGeo (or the equivalent activity) is denied for the PBS request, under COPPA, or when consent rules would strip device.ip. PBS masks it again after decrypting, but the client shouldn't send what it wouldn't send in plaintext.
  4. Optional, same module: the Google value could be passed to googletag.setConfig({ ipAddress }) before ads are requested, for publishers using GPT. Track that here or in #15909.
Depends on
  • prebid/prebid-server#5106 (field name and server support).
  • #15909 (the sharedIdEdge RTD module).
  • The SharedID Edge implementation (PR to follow in patmmccann/sharedid-edge).

🤖 Generated with Claude Code

Dominant language
JavaScript
Stars
1.6k
Forks
2.4k
Avg merge
1d 20h
Merged PRs (30d)
291

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prebid/Prebid.js

All issues in prebid/Prebid.js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.