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

IX Bid Adapter: pass pairid #10487

Merged
merged 1 commit into from
Sep 14, 2023
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
4 changes: 3 additions & 1 deletion modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const SOURCE_RTI_MAPPING = {
'intimatemerger.com': '',
'33across.com': '',
'liveintent.indexexchange.com': '',
'google.com': ''
};
const PROVIDERS = [
'britepoolid',
Expand All @@ -89,7 +90,8 @@ const PROVIDERS = [
'connectid',
'tapadId',
'quantcastId',
'pubProvidedId'
'pubProvidedId',
'pairId'
];
const REQUIRED_VIDEO_PARAMS = ['mimes', 'minduration', 'maxduration']; // note: protocol/protocols is also reqd
const VIDEO_PARAMS_ALLOW_LIST = [
Expand Down
16 changes: 11 additions & 5 deletions test/spec/modules/ixBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,8 @@ describe('IndexexchangeAdapter', function () {
// similar to uid2, but id5's getValue takes .uid
id5id: { uid: 'testid5id' }, // ID5
imuid: 'testimuid',
'33acrossId': { envelope: 'v1.5fs.1000.fjdiosmclds' }
'33acrossId': { envelope: 'v1.5fs.1000.fjdiosmclds' },
pairId: {envelope: 'testpairId'}
};

const DEFAULT_USERID_PAYLOAD = [
Expand Down Expand Up @@ -818,6 +819,11 @@ describe('IndexexchangeAdapter', function () {
uids: [{
id: DEFAULT_USERID_DATA['33acrossId'].envelope
}]
}, {
source: 'google.com',
uids: [{
id: DEFAULT_USERID_DATA['pairId'].envelope
}]
}
];

Expand Down Expand Up @@ -1224,7 +1230,7 @@ describe('IndexexchangeAdapter', function () {
const payload = extractPayload(request[0]);
expect(request).to.be.an('array');
expect(request).to.have.lengthOf.above(0); // should be 1 or more
expect(payload.user.eids).to.have.lengthOf(8);
expect(payload.user.eids).to.have.lengthOf(9);
expect(payload.user.eids).to.deep.include(DEFAULT_USERID_PAYLOAD[0]);
});
});
Expand Down Expand Up @@ -1412,7 +1418,7 @@ describe('IndexexchangeAdapter', function () {
cloneValidBid[0].userIdAsEids = utils.deepClone(DEFAULT_USERIDASEIDS_DATA);
const request = spec.buildRequests(cloneValidBid, DEFAULT_OPTION)[0];
const payload = extractPayload(request);
expect(payload.user.eids).to.have.lengthOf(8);
expect(payload.user.eids).to.have.lengthOf(9);
expect(payload.user.eids).to.have.deep.members(DEFAULT_USERID_PAYLOAD);
});

Expand Down Expand Up @@ -1545,7 +1551,7 @@ describe('IndexexchangeAdapter', function () {
})

expect(payload.user).to.exist;
expect(payload.user.eids).to.have.lengthOf(10);
expect(payload.user.eids).to.have.lengthOf(11);

expect(payload.user.eids).to.have.deep.members(validUserIdPayload);
});
Expand Down Expand Up @@ -1587,7 +1593,7 @@ describe('IndexexchangeAdapter', function () {
});

const payload = extractPayload(request);
expect(payload.user.eids).to.have.lengthOf(9);
expect(payload.user.eids).to.have.lengthOf(10);
expect(payload.user.eids).to.have.deep.members(validUserIdPayload);
});
});
Expand Down