Skip to content

PilotX: consent changes#14688

Merged
patmmccann merged 15 commits intoprebid:masterfrom
pilotxads:pilotx-adapter-changes
Apr 15, 2026
Merged

PilotX: consent changes#14688
patmmccann merged 15 commits intoprebid:masterfrom
pilotxads:pilotx-adapter-changes

Conversation

@AnthonyBoozan
Copy link
Copy Markdown
Contributor

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Adding support for other consent information from bidderRequest

Be sure to test the integration with your adserver using the Hello World sample page. -->

Other information

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a2438d9149

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread modules/pilotxBidAdapter.js Outdated
payloadItems[placementId]['bidId'] = bidRequest.bidId
payloadItems[placementId]['gppString'] = gppString
payloadItems[placementId]['gppApplicableSections'] = applicablesections
payloadItems[placementId]['uspConsent'] = bidderRequest.uspConsent
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Guard uspConsent read when bidderRequest is optional

buildRequests now dereferences bidderRequest.uspConsent unconditionally, while the function still handles bidderRequest as optional elsewhere via optional chaining. If this adapter is invoked without the second argument (common in direct unit/integration calls to adapter specs), it will throw a runtime error before constructing the request payload. Please use a guarded access (for example bidderRequest?.uspConsent) to keep behavior consistent with the new GDPR/GPP handling.

Useful? React with 👍 / 👎.

@review-assignment-bot review-assignment-bot bot requested a review from osazos April 8, 2026 20:19
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 8, 2026

Coverage Report for CI Build 24422329774

Coverage remained the same at 96.365%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 24 of 24 lines across 2 files are fully covered (100%).
  • 1 coverage regression across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

1 previously-covered line in 1 file lost coverage.

File Lines Losing Coverage Coverage
modules/kinessoIdSystem.js 1 83.15%

Coverage Stats

Coverage Status
Relevant Lines: 227538
Covered Lines: 219268
Line Coverage: 96.37%
Relevant Branches: 52850
Covered Branches: 42936
Branch Coverage: 81.24%
Branches in Coverage %: No
Coverage Strength: 72.81 hits per line

💛 - Coveralls

@patmmccann patmmccann merged commit fd4d6e2 into prebid:master Apr 15, 2026
102 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants