Skip to content

Commit

Permalink
Update the Conversant adapter to have source.tid to have auctionId (#…
Browse files Browse the repository at this point in the history
…9822)

Co-authored-by: johwier <[email protected]>
  • Loading branch information
johnwier and johwier authored Apr 19, 2023
1 parent 454caa3 commit 5fd37b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/conversantBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export const spec = {
const payload = {
id: requestId,
imp: conversantImps,
source: {
tid: requestId
},
site: {
id: siteId,
mobile: document.querySelector('meta[name="viewport"][content*="width=device-width"]') !== null ? 1 : 0,
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/conversantBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ describe('Conversant adapter tests', function() {
const payload = request.data;

expect(payload).to.have.property('id', 'req000');
expect(payload.source).to.have.property('tid', 'req000');
expect(payload).to.have.property('at', 1);
expect(payload).to.have.property('imp');
expect(payload.imp).to.be.an('array').with.lengthOf(8);
Expand Down

0 comments on commit 5fd37b2

Please sign in to comment.