Skip to content

New adapter: inmobiVantage - #16323

Open
chnd777 wants to merge 1 commit into
prebid:masterfrom
chnd777:inmobiVantage-adapter
Open

chnd777 wants to merge 1 commit into
prebid:masterfrom
chnd777:inmobiVantage-adapter

Conversation

@chnd777

@chnd777 chnd777 commented Nov 24, 2026 •

Copy link
Copy Markdown

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T11:35:12.155730Z eeead1e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 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".

Comment on lines +291 to +294
if (type === 'iframe' && syncOptions.iframeEnabled) {
dep.insertUserSyncIframe(url);
} else if ((type === 'redirect' || type === 'image') && syncOptions.pixelEnabled) {
dep.triggerPixel(url);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Comment on lines +11 to +14
* @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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Comment on lines +37 to +38
const CONVERTER = ortbConverter({
context: {

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 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 👍 / 👎.

Comment on lines +110 to +112
if (context.mtype === 4) {
const admJson = JSON.parse(bid.adm);
bid.adm = JSON.stringify(admJson.native);

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 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 👍 / 👎.

Comment on lines +117 to +119
deepSetValue(bidResponse, 'meta', {
...bidResponse.meta,
...bid.ext,

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 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 👍 / 👎.

@chnd777 chnd777 changed the title adding inmobiVantage adapter New adapter: inmobiVantage Nov 24, 2026
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.

1 participant