Skip to content

Commit

Permalink
IX Bid Adapter: Add 33Across to EID allowlist (prebid#10182)
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Yang <amy.yang@indexexchange.com>
  • Loading branch information
2 people authored and Santiago Carabone committed Aug 22, 2023
1 parent ff90459 commit 9128159
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ const SOURCE_RTI_MAPPING = {
'audigent.com': '', // Hadron ID from Audigent, hadronId
'pubcid.org': '', // SharedID, pubcid
'utiq.com': '', // Utiq
'intimatemerger.com': ''
'intimatemerger.com': '',
'33across.com': ''
};
const PROVIDERS = [
'britepoolid',
Expand Down
18 changes: 12 additions & 6 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 () {
uid2: { id: 'testuid2' }, // UID 2.0
// similar to uid2, but id5's getValue takes .uid
id5id: { uid: 'testid5id' }, // ID5
imuid: 'testimuid'
imuid: 'testimuid',
'33acrossId': { envelope: 'v1.5fs.1000.fjdiosmclds' }
};

const DEFAULT_USERIDASEIDS_DATA = createEidsArray(DEFAULT_USERID_DATA);
Expand Down Expand Up @@ -813,7 +814,12 @@ describe('IndexexchangeAdapter', function () {
}, {
source: 'intimatemerger.com',
uids: [{
id: DEFAULT_USERID_DATA.imuid,
id: DEFAULT_USERID_DATA.imuid
}]
}, {
source: '33across.com',
uids: [{
id: DEFAULT_USERID_DATA['33acrossId'].envelope
}]
}
];
Expand Down Expand Up @@ -1219,7 +1225,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(7);
expect(payload.user.eids).to.have.lengthOf(8);
expect(payload.user.eids).to.deep.include(DEFAULT_USERID_PAYLOAD[0]);
});
});
Expand Down Expand Up @@ -1407,7 +1413,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(7);
expect(payload.user.eids).to.have.lengthOf(8);
expect(payload.user.eids).to.have.deep.members(DEFAULT_USERID_PAYLOAD);
});

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

expect(payload.user).to.exist;
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 Expand Up @@ -1582,7 +1588,7 @@ describe('IndexexchangeAdapter', function () {
});

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(validUserIdPayload);
});
});
Expand Down

0 comments on commit 9128159

Please sign in to comment.