Skip to content

Commit

Permalink
adding account to s2s bidder-sync request (prebid#3123)
Browse files Browse the repository at this point in the history
* adding account_id to s2s bidder-sync request

* changed param name from account_id to account
  • Loading branch information
harpere authored and Pedro López Jiménez committed Mar 18, 2019
1 parent 4c61293 commit ecadf69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/prebidServerBidAdapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function queueSync(bidderCodes, gdprConsent) {

const payload = {
uuid: utils.generateUUID(),
bidders: bidderCodes
bidders: bidderCodes,
account: _s2sConfig.accountId
};

if (gdprConsent) {
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/prebidServerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ describe('S2S Adapter', function () {

expect(requestBid.gdpr).is.equal(1);
expect(requestBid.gdpr_consent).is.equal('abc123def');
expect(requestBid.bidders).to.contain('appnexus').and.to.have.lengthOf(1);
expect(requestBid.account).is.equal('1');
});

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

0 comments on commit ecadf69

Please sign in to comment.