Skip to content

Commit

Permalink
Removed sending of experian data to Sonobi's bid endpoint (#11309)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonGoSonobi authored Apr 9, 2024
1 parent db0b1bd commit beeb901
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions modules/sonobiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ export const spec = {
'iqid': bidderSettings.get(BIDDER_CODE, 'storageAllowed') ? JSON.stringify(loadOrCreateFirstPartyData()) : null,
};

if (deepAccess(bidderRequest, 'ortb2.experianRtidData') && deepAccess(bidderRequest, 'ortb2.experianRtidKey')) {
payload.expData = deepAccess(bidderRequest, 'ortb2.experianRtidData');
payload.expKey = deepAccess(bidderRequest, 'ortb2.experianRtidKey');
}

const fpd = bidderRequest.ortb2;

if (fpd) {
Expand Down
8 changes: 0 additions & 8 deletions test/spec/modules/sonobiBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,6 @@ describe('SonobiBidAdapter', function () {
expect(bidRequests.data.hfa).to.equal('hfakey')
})

it('should return a properly formatted request with expData and expKey', function () {
bidderRequests.ortb2.experianRtidData = 'IkhlbGxvLCB3b3JsZC4gSGVsbG8sIHdvcmxkLiBIZWxsbywgd29ybGQuIg==';
bidderRequests.ortb2.experianRtidKey = 'sovrn-encryption-key-1';
const bidRequests = spec.buildRequests(bidRequest, bidderRequests)
expect(bidRequests.data.expData).to.equal('IkhlbGxvLCB3b3JsZC4gSGVsbG8sIHdvcmxkLiBIZWxsbywgd29ybGQuIg==');
expect(bidRequests.data.expKey).to.equal('sovrn-encryption-key-1');
});

it('should return a properly formatted request with experianRtidData and exexperianRtidKeypKey omitted from fpd', function () {
const bidRequests = spec.buildRequests(bidRequest, bidderRequests)
expect(bidRequests.data.fpd.indexOf('experianRtidData')).to.equal(-1);
Expand Down

0 comments on commit beeb901

Please sign in to comment.