Skip to content

Commit 610bbeb

Browse files
author
Sajid Mahmood
committed
IX Bid Adapter: Add EUID abd Criteo to EID allowlist
Co-authored-by: Sajid Mahmood <[email protected]>
1 parent df103dd commit 610bbeb

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

modules/ixBidAdapter.js

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ const SOURCE_RTI_MAPPING = {
7676
'audigent.com': '', // Hadron ID from Audigent, hadronId
7777
'pubcid.org': '', // SharedID, pubcid
7878
'utiq.com': '', // Utiq
79+
'criteo.com': '', // Criteo
80+
'euid.eu': '', // EUID
7981
'intimatemerger.com': '',
8082
'33across.com': '',
8183
'liveintent.indexexchange.com': '',

test/spec/modules/ixBidAdapter_spec.js

+17-5
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,9 @@ describe('IndexexchangeAdapter', function () {
760760
// similar to uid2, but id5's getValue takes .uid
761761
id5id: { uid: 'testid5id' }, // ID5
762762
imuid: 'testimuid',
763-
'33acrossId': { envelope: 'v1.5fs.1000.fjdiosmclds' }
763+
'33acrossId': { envelope: 'v1.5fs.1000.fjdiosmclds' },
764+
'criteoID': { envelope: 'testcriteoID' },
765+
'euidID': { envelope: 'testeuid' }
764766
};
765767

766768
const DEFAULT_USERIDASEIDS_DATA = createEidsArray(DEFAULT_USERID_DATA);
@@ -821,6 +823,16 @@ describe('IndexexchangeAdapter', function () {
821823
uids: [{
822824
id: DEFAULT_USERID_DATA['33acrossId'].envelope
823825
}]
826+
}, {
827+
source: 'criteo.com',
828+
uids: [{
829+
id: DEFAULT_USERID_DATA['criteoID'].envelope
830+
}]
831+
}, {
832+
source: 'euid.eu',
833+
uids: [{
834+
id: DEFAULT_USERID_DATA['euidID'].envelope
835+
}]
824836
}
825837
];
826838

@@ -1225,7 +1237,7 @@ describe('IndexexchangeAdapter', function () {
12251237
const payload = extractPayload(request[0]);
12261238
expect(request).to.be.an('array');
12271239
expect(request).to.have.lengthOf.above(0); // should be 1 or more
1228-
expect(payload.user.eids).to.have.lengthOf(8);
1240+
expect(payload.user.eids).to.have.lengthOf(10);
12291241
expect(payload.user.eids).to.deep.include(DEFAULT_USERID_PAYLOAD[0]);
12301242
});
12311243
});
@@ -1413,7 +1425,7 @@ describe('IndexexchangeAdapter', function () {
14131425
cloneValidBid[0].userIdAsEids = utils.deepClone(DEFAULT_USERIDASEIDS_DATA);
14141426
const request = spec.buildRequests(cloneValidBid, DEFAULT_OPTION)[0];
14151427
const payload = extractPayload(request);
1416-
expect(payload.user.eids).to.have.lengthOf(8);
1428+
expect(payload.user.eids).to.have.lengthOf(10);
14171429
expect(payload.user.eids).to.have.deep.members(DEFAULT_USERID_PAYLOAD);
14181430
});
14191431

@@ -1546,7 +1558,7 @@ describe('IndexexchangeAdapter', function () {
15461558
})
15471559

15481560
expect(payload.user).to.exist;
1549-
expect(payload.user.eids).to.have.lengthOf(10);
1561+
expect(payload.user.eids).to.have.lengthOf(12);
15501562

15511563
expect(payload.user.eids).to.have.deep.members(validUserIdPayload);
15521564
});
@@ -1588,7 +1600,7 @@ describe('IndexexchangeAdapter', function () {
15881600
});
15891601

15901602
const payload = extractPayload(request);
1591-
expect(payload.user.eids).to.have.lengthOf(9);
1603+
expect(payload.user.eids).to.have.lengthOf(11);
15921604
expect(payload.user.eids).to.have.deep.members(validUserIdPayload);
15931605
});
15941606
});

0 commit comments

Comments
 (0)