Skip to content

iPROM Bid Adapter: support ortb/endpoint params and relax dimension requirement#14573

Open
iprom-adserver wants to merge 14 commits intoprebid:masterfrom
iprom-adserver:ipromAdapterUpdate
Open

iPROM Bid Adapter: support ortb/endpoint params and relax dimension requirement#14573
iprom-adserver wants to merge 14 commits intoprebid:masterfrom
iprom-adserver:ipromAdapterUpdate

Conversation

@iprom-adserver
Copy link
Contributor

@iprom-adserver iprom-adserver commented Mar 10, 2026

Type of change

  • Updated bidder adapter

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

Description of change

Updates to iPROM bid adapter:

  • Dimension parameter is no longer required, allowing more flexible
    ad unit configurations
  • Added ortb parameter to control the shape of the bid request payload
  • Added endpoint parameter for per-page endpoint configuration
    via setBidderConfig

Other information

Gasper Zagar and others added 12 commits February 24, 2026 13:39
… request grouping

Move endpoint and ortb config from bidder-level config to per-ad-unit
params. buildRequests now groups bids by (endpoint, ortb) and returns
an array of requests, allowing different ad units to target different
endpoints with different payload formats independently.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add reachedTop, numIframes, and stack from refererInfo to site.ext
in the ORTB payload via a custom request processor on ortbConverter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@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: 94508d4908

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

const groups = {};

for (const bid of validBidRequests) {
const endpoint = resolveEndpoint(bid.params.endpoint);

Choose a reason for hiding this comment

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

P2 Badge Read endpoint override from bidder config

The new endpoint routing only looks at bid.params.endpoint, so pages that set the endpoint through pbjs.setBidderConfig still fall back to the default URL. In Prebid, bidder-level overrides are exposed through bidder config (not automatically copied into every bid params object), so this implementation misses the advertised per-page override path and will silently send traffic to the wrong endpoint in that setup.

Useful? React with 👍 / 👎.

logError(`${bidder}: Parameter 'id' needs to be a string`);
}

if (params.dimension && typeof params.dimension !== 'string') {

Choose a reason for hiding this comment

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

P2 Badge Validate falsy non-string dimension values

The dimension type check is gated by truthiness, so falsy non-string values like 0 or false pass validation even though they are invalid dimensions. Those values are then propagated into the outbound payload (imp.ext.bidder.dimension in ORTB mode), which can break downstream parsing and is hard for publishers to diagnose because the adapter reports the request as valid.

Useful? React with 👍 / 👎.

@github-actions
Copy link

Tread carefully! This PR adds 2 linter errors (possibly disabled through directives):

  • modules/ipromBidAdapter.js (+2 errors)

@review-assignment-bot review-assignment-bot bot requested a review from osazos March 19, 2026 11:04
@coveralls
Copy link
Collaborator

coveralls commented Mar 19, 2026

Pull Request Test Coverage Report for Build 23298333448

Details

  • 274 of 277 (98.92%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 96.346%

Changes Missing Coverage Covered Lines Changed/Added Lines %
modules/ipromBidAdapter.js 111 114 97.37%
Totals Coverage Status
Change from base Build 23290954758: 0.003%
Covered Lines: 216146
Relevant Lines: 224344

💛 - Coveralls

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.

3 participants