Skip to content

Commit 6ddd14f

Browse files
harperemkendall07
authored andcommitted
adding account to s2s bidder-sync request (#3123)
* adding account_id to s2s bidder-sync request * changed param name from account_id to account
1 parent 57e1b5e commit 6ddd14f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/prebidServerBidAdapter/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ function queueSync(bidderCodes, gdprConsent) {
9898

9999
const payload = {
100100
uuid: utils.generateUUID(),
101-
bidders: bidderCodes
101+
bidders: bidderCodes,
102+
account: _s2sConfig.accountId
102103
};
103104

104105
if (gdprConsent) {

test/spec/modules/prebidServerBidAdapter_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ describe('S2S Adapter', function () {
458458

459459
expect(requestBid.gdpr).is.equal(1);
460460
expect(requestBid.gdpr_consent).is.equal('abc123def');
461+
expect(requestBid.bidders).to.contain('appnexus').and.to.have.lengthOf(1);
462+
expect(requestBid.account).is.equal('1');
461463
});
462464

463465
it('check gdpr info gets added into cookie_sync request: have consent data but gdprApplies is false', function () {

0 commit comments

Comments
 (0)