Skip to content

Commit

Permalink
IX Bid Adapter: add EUID abd Criteo to EID allowlist (#10609)
Browse files Browse the repository at this point in the history
* IX Bid Adapter: Add EUID abd Criteo to EID allowlist

Co-authored-by: Sajid Mahmood <[email protected]>

* IX Bid Adapter: Add EUID abd Criteo to EID allowlist

Co-authored-by: Sajid Mahmood <[email protected]>

---------

Co-authored-by: Sajid Mahmood <[email protected]>
  • Loading branch information
sajidbsk and Sajid Mahmood authored Oct 16, 2023
1 parent ea39308 commit 5f0e374
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ const SOURCE_RTI_MAPPING = {
'audigent.com': '', // Hadron ID from Audigent, hadronId
'pubcid.org': '', // SharedID, pubcid
'utiq.com': '', // Utiq
'criteo.com': '', // Criteo
'euid.eu': '', // EUID
'intimatemerger.com': '',
'33across.com': '',
'liveintent.indexexchange.com': '',
Expand Down
20 changes: 16 additions & 4 deletions test/spec/modules/ixBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,8 @@ describe('IndexexchangeAdapter', function () {
id5id: { uid: 'testid5id' }, // ID5
imuid: 'testimuid',
'33acrossId': { envelope: 'v1.5fs.1000.fjdiosmclds' },
'criteoID': { envelope: 'testcriteoID' },
'euidID': { envelope: 'testeuid' },
pairId: {envelope: 'testpairId'}
};

Expand Down Expand Up @@ -891,6 +893,16 @@ describe('IndexexchangeAdapter', function () {
uids: [{
id: DEFAULT_USERID_DATA['33acrossId'].envelope
}]
}, {
source: 'criteo.com',
uids: [{
id: DEFAULT_USERID_DATA['criteoID'].envelope
}]
}, {
source: 'euid.eu',
uids: [{
id: DEFAULT_USERID_DATA['euidID'].envelope
}]
}, {
source: 'google.com',
uids: [{
Expand Down Expand Up @@ -1302,7 +1314,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(9);
expect(payload.user.eids).to.have.lengthOf(11);
expect(payload.user.eids).to.deep.include(DEFAULT_USERID_PAYLOAD[0]);
});
});
Expand Down Expand Up @@ -1490,7 +1502,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(9);
expect(payload.user.eids).to.have.lengthOf(11);
expect(payload.user.eids).to.have.deep.members(DEFAULT_USERID_PAYLOAD);
});

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

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

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

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

0 comments on commit 5f0e374

Please sign in to comment.