Skip to content

Commit

Permalink
Send publisherId along placementId
Browse files Browse the repository at this point in the history
  • Loading branch information
cciocov committed May 26, 2024
1 parent 1706bb3 commit cfa52d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/improvedigitalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ export const CONVERTER = ortbConverter({
}
const bidderParamsPath = context.extendMode ? 'ext.prebid.bidder.improvedigital' : 'ext.bidder';
const placementId = bidRequest.params.placementId;
const publisherId = bidRequest.params.publisherId;
deepSetValue(imp, `${bidderParamsPath}.placementId`, placementId);
deepSetValue(imp, `${bidderParamsPath}.publisherId`, publisherId);
if (context.extendMode) {
deepSetValue(imp, 'ext.prebid.storedrequest.id', '' + placementId);
}
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/improvedigitalBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ describe('Improve Digital Adapter Tests', function () {
expect(payload.imp[0].ext.bidder).to.not.exist;
expect(payload.imp[0].ext.prebid.bidder.improvedigital).to.deep.equal({
placementId: 1053688,
publisherId: 1234,
keyValues
});
expect(payload.imp[0].ext.prebid.storedrequest.id).to.equal('1053688');
Expand Down

0 comments on commit cfa52d5

Please sign in to comment.