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: add 33Across to EID allowlist #10182

Merged
merged 1 commit into from
Jul 6, 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
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