Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonobi Bid Adapter : refactor query params for size constraints #11309

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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