Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eeead1e23c
ℹ️ 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".
| if (type === 'iframe' && syncOptions.iframeEnabled) { | ||
| dep.insertUserSyncIframe(url); | ||
| } else if ((type === 'redirect' || type === 'image') && syncOptions.pixelEnabled) { | ||
| dep.triggerPixel(url); |
There was a problem hiding this comment.
Route cookie syncing through Prebid's user-sync queue
When a publisher sets userSync.syncEnabled: false or denies the syncUser activity, bidderFactory.registerSyncInner still invokes getUserSyncs: its two flags only reflect filterSettings. The global/activity checks live in userSync.registerSync (src/userSync.ts:440-460), which this path bypasses, so the /cookie_sync response still injects third-party pixels and iframes despite the publisher's prohibition. It also bypasses the queue's delay and per-bidder limits. Return a core-managed loader/redirect sync descriptor instead of firing the syncs directly.
AGENTS.md reference: AGENTS.md:L130-L130
Useful? React with 👍 / 👎.
| function runCookieSync(syncOptions, responses, gdprConsent, uspConsent, gppConsent) { | ||
| const payload = { | ||
| bidders: biddersFromResponses(responses), | ||
| coopSync: true, |
There was a problem hiding this comment.
Disable cooperative syncing unless the publisher opts in
Whenever this adapter is allowed to sync, coopSync: true authorizes PBS to sync bidders that are not on the page, as documented by S2SConfig.coopSync in modules/prebidServerBidAdapter/index.ts:123-127. Since fireSyncs executes every returned entry, this permits additional third-party requests and ID collection for unrelated demand partners, including when the auction returned no seats. There is no adapter option for the publisher to refuse this expansion. Send false by default and require an explicit publisher-controlled opt-in for cooperative syncing.
AGENTS.md reference: AGENTS.md:L130-L130
Useful? React with 👍 / 👎.
| * @typedef {import('../src/adapters/bidderFactory.js').BidRequest} BidRequest | ||
| * @typedef {import('../src/adapters/bidderFactory.js').Bid} Bid | ||
| * @typedef {import('../src/adapters/bidderFactory.js').ServerRequest} ServerRequest | ||
| * @typedef {import('../src/adapters/bidderFactory.js').BidderSpec} BidderSpec |
There was a problem hiding this comment.
Export and register types for the new bidder parameters
A repo-wide search for inmobiVantage finds only the adapter, documentation and spec, not a parameter declaration or BidderParams augmentation; these typedefs import only generic core types. Consequently, TypeScript consumers configuring this bidder receive Record<string, unknown> for params instead of the required tagID/siteID and optional bidfloor contract, and cannot import that contract from the package. Add an exported parameter interface in a .d.ts file, augment BidderParams, and import the parameter type into this module.
AGENTS.md reference: AGENTS.md:L146-L146
Useful? React with 👍 / 👎.
| const CONVERTER = ortbConverter({ | ||
| context: { |
There was a problem hiding this comment.
Recognize the PBS media-type extension when mtype is absent
For a PBS OpenRTB 2.5 response that identifies its media type through bid.ext.prebid.type and omits the OpenRTB 2.6 mtype field, this configuration uses the generic converter's setResponseMediaType, which throws Cannot determine mediaType for response. The converter catches that error and drops the otherwise valid bid, even for a single-format impression. Install the existing PBS extPrebidMediaType processor or equivalent PBS-aware response processing rather than relying exclusively on the generic defaults.
Useful? React with 👍 / 👎.
| if (context.mtype === 4) { | ||
| const admJson = JSON.parse(bid.adm); | ||
| bid.adm = JSON.stringify(admJson.native); |
There was a problem hiding this comment.
Preserve native payloads that already contain root-level assets
When a native bid uses the Native 1.2 adm shape with assets at the root rather than a legacy native envelope, admJson.native is undefined and this assignment replaces valid markup with undefined. The shared fillNativeResponse processor then throws ORTB native response contained no assets, causing the converter to discard the bid. The added tests cover only the wrapped fixture. Only unwrap a present native envelope, leaving already-normalized native payloads unchanged.
Useful? React with 👍 / 👎.
| deepSetValue(bidResponse, 'meta', { | ||
| ...bidResponse.meta, | ||
| ...bid.ext, |
There was a problem hiding this comment.
Merge PBS metadata into the top level of bid.meta
For PBS bids carrying ext.prebid.meta, including the supplied response fixtures, spreading bid.ext itself leaves fields such as networkName at bid.meta.prebid.meta.networkName instead of bid.meta.networkName. Core's getDSP() in src/auction.ts:956-959 reads only the top-level networkName or networkId, so successful bids silently lose their hb_dsp targeting and other consumers cannot read the server-provided metadata through the standard interface. Merge bid.ext.prebid.meta into the top-level metadata, or use the existing PBS metadata processor.
Useful? React with 👍 / 👎.
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
Other information