Skip to content

Magnite Bid Adapter: support params.floor like rubiconBidAdapter#14694

Merged
patmmccann merged 5 commits intomasterfrom
magniteFloorRefactor
Apr 13, 2026
Merged

Magnite Bid Adapter: support params.floor like rubiconBidAdapter#14694
patmmccann merged 5 commits intomasterfrom
magniteFloorRefactor

Conversation

@robertrmartinez
Copy link
Copy Markdown
Collaborator

Type of change

  • Other

Description of change

We are adding support for param level floor for Magnite Bid Adapter to keep it similar to Rubicon Bid Adapter.

It is only used if ORTB Converter does not resolve a floor (Price Floors getFloor usually)

Copilot AI review requested due to automatic review settings April 9, 2026 16:10
@review-assignment-bot review-assignment-bot bot requested a review from dgirardi April 9, 2026 16:13
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: 6652a649cd

ℹ️ 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".

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds impression-level bid floor support to the Magnite bid adapter (matching Rubicon’s params.floor behavior) as a fallback when the Price Floors module / getFloor() does not populate imp.bidfloor.

Changes:

  • Add params.floor fallback logic to set imp.bidfloor / imp.bidfloorcur (USD) when ORTB conversion didn’t set a USD floor.
  • Add unit tests covering precedence between getFloor() and params.floor, non-USD handling, and invalid string input.
  • Document the new floor bid param and how it interacts with the Price Floors module.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
modules/magniteBidAdapter.js Implements params.floor fallback and adjusts the ORTB bidfloor override naming.
test/spec/modules/magniteBidAdapter_spec.js Adds tests for imp.bidfloor population behavior.
modules/magniteBidAdapter.md Documents floor param and bid floor resolution order.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

robertrmartinez and others added 2 commits April 9, 2026 09:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 9, 2026

Coverage Report for CI Build 24347494326

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage increased (+33.2%) to 96.344%

Details

  • Coverage increased (+33.2%) from the base build.
  • Patch coverage: 29 of 29 lines across 2 files are fully covered (100%).
  • 38 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

38 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
src/utils.js 31 92.4%
src/adloader.js 7 88.89%

Coverage Stats

Coverage Status
Relevant Lines: 225225
Covered Lines: 216991
Line Coverage: 96.34%
Relevant Branches: 52503
Covered Branches: 42644
Branch Coverage: 81.22%
Branches in Coverage %: No
Coverage Strength: 72.93 hits per line

💛 - Coveralls

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@patmmccann patmmccann merged commit c04d8a9 into master Apr 13, 2026
10 of 11 checks passed
@patmmccann patmmccann deleted the magniteFloorRefactor branch April 13, 2026 14:00
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