Skip to content

Commit

Permalink
Conversant Bid Adapter: send request in USD (prebid#11857)
Browse files Browse the repository at this point in the history
Co-authored-by: johwier <john.wier@epsilon.com>
  • Loading branch information
2 people authored and DecayConstant committed Jul 18, 2024
1 parent 93039a4 commit 5f06672
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/conversantBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const converter = ortbConverter({
request: function (buildRequest, imps, bidderRequest, context) {
const request = buildRequest(imps, bidderRequest, context);
request.at = 1;
request.cur = ['USD'];
if (context.bidRequests) {
const bidRequest = context.bidRequests[0];
setSiteId(bidRequest, request);
Expand Down
7 changes: 7 additions & 0 deletions test/spec/modules/conversantBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@ describe('Conversant adapter tests', function() {
expect(payload.site.content).to.have.property('title');
});

it('Verify currency', () => {
const bidderRequest = { timeout: 9999, ortb2: {cur: ['EUR']} };
const request = spec.buildRequests(bidRequests, bidderRequest);
const payload = request.data;
expect(payload.cur).deep.equal(['USD']);
})

it('Verify supply chain data', () => {
const bidderRequest = {refererInfo: {page: 'http://test.com?a=b&c=123'}};
const schain = {complete: 1, ver: '1.0', nodes: [{asi: 'bidderA.com', sid: '00001', hp: 1}]};
Expand Down

0 comments on commit 5f06672

Please sign in to comment.