diff --git a/modules/equativBidAdapter.d.ts b/modules/equativBidAdapter.d.ts index a080d96b2ca..cae82d03c72 100644 --- a/modules/equativBidAdapter.d.ts +++ b/modules/equativBidAdapter.d.ts @@ -6,8 +6,7 @@ export interface EquativBidderParams { networkId?: number; /** * Placement identifier used to source inventory. - * Forwarded as `imp.ext.bidder.plcmtuuid`. When provided, it takes precedence - * over the deprecated `siteId`, `pageId` and `formatId` parameters. + * Forwarded as `imp.ext.bidder.plcmtuuid`. */ placementuuid?: string; /** diff --git a/modules/equativBidAdapter.js b/modules/equativBidAdapter.js index 7bfaff4c301..e78c551e81a 100644 --- a/modules/equativBidAdapter.js +++ b/modules/equativBidAdapter.js @@ -207,13 +207,17 @@ export const converter = ortbConverter({ mergeDeep(imp, { rwdd: bidRequest.mediaTypes.video.ext.rewarded }); } - // `placementuuid` is the preferred way to identify inventory. When it is - // provided it takes precedence over the `siteId`, `pageId` and - // `formatId` parameters, which are kept only to support the ramp-up period. - // SSB expects this value in the OpenRTB extension as `plcmtuuid`. - const bidder = placementuuid - ? { plcmtuuid: placementuuid } - : { ...(siteId && { siteId }), ...(pageId && { pageId }), ...(formatId && { formatId }) }; + // `placementuuid` is the preferred way to identify inventory. The + // `siteId`, `pageId` and `formatId` parameters + // are kept only to support the ramp-up period. Forward all provided fields + // and let the downstream receiver decide which to use. + // SSB expects the `placementuuid` value in the OpenRTB extension as `plcmtuuid`. + const bidder = { + ...(placementuuid && { plcmtuuid: placementuuid }), + ...(siteId && { siteId }), + ...(pageId && { pageId }), + ...(formatId && { formatId }) + }; if (Object.keys(bidder).length) { mergeDeep(imp.ext, { bidder }); } diff --git a/modules/equativBidAdapter.md b/modules/equativBidAdapter.md index 526f4e4722d..aef75d6f60d 100644 --- a/modules/equativBidAdapter.md +++ b/modules/equativBidAdapter.md @@ -45,7 +45,7 @@ var adUnits = [ | Name | Scope | Description | Type | |-----------------|----------|------------------------------------------------------------------------------------------------------|----------| | `networkId` | optional | Equativ network id. Mandatory unless `ortb2.(site\|app\|dooh).publisher.id` is set. | `number` | -| `placementuuid` | optional | Placement identifier used to source inventory. Preferred way to identify inventory; forwarded as `imp.ext.bidder.plcmtuuid` and takes precedence over `siteId`/`pageId`/`formatId` when both are provided. | `string` | +| `placementuuid` | optional | Placement identifier used to source inventory. Preferred way to identify inventory; forwarded as `imp.ext.bidder.plcmtuuid`. When legacy params are also supplied, all fields are forwarded and the downstream receiver decides which to use. | `string` | | `siteId` | optional | **Deprecated.** Equativ site id. Use `placementuuid` instead. Kept only to support the ramp-up. | `number` | | `pageId` | optional | **Deprecated.** Equativ page id. Use `placementuuid` instead. Kept only to support the ramp-up. | `number` | | `formatId` | optional | **Deprecated.** Equativ format id. Use `placementuuid` instead. Kept only to support the ramp-up. | `number` | diff --git a/test/spec/modules/equativBidAdapter_spec.js b/test/spec/modules/equativBidAdapter_spec.js index 1b0825366fe..3f851e69c56 100644 --- a/test/spec/modules/equativBidAdapter_spec.js +++ b/test/spec/modules/equativBidAdapter_spec.js @@ -303,7 +303,7 @@ describe('Equativ bid adapter tests', () => { }); }); - it('should let placementuuid take precedence over siteId, pageId, formatId when both are provided', () => { + it('should forward plcmtuuid alongside deprecated params when all inventory params are provided', () => { const bidRequests = [ { ...DEFAULT_BANNER_BID_REQUESTS[0], @@ -314,6 +314,9 @@ describe('Equativ bid adapter tests', () => { const request = spec.buildRequests(bidRequests, bidderRequest)[0]; expect(request.data.imp[0].ext.bidder).to.deep.equal({ plcmtuuid: 'abc-123', + siteId: 123, + pageId: 456, + formatId: 789, }); });