Skip to content

Commit d16aada

Browse files
Bill Newmanvladis-teqblazeAiholkinMykhailo Yaremchuk
authored
Colossus Bid Adapter: add Unified ID 2.0 (prebid#7358)
* add video&native traffic colossus ssp * Native obj validation * Native obj validation #2 * Added size field in requests * fixed test * fix merge conflicts * move to 3.0 * move to 3.0 * fix IE11 new URL issue * fix IE11 new URL issue * fix IE11 new URL issue * https for 3.0 * add https test * add ccp and schain features * fix test * sync with upstream, fix conflicts * Update colossussspBidAdapter.js remove commented code * Update colossussspBidAdapter.js lint fix * identity extensions * identity extensions * fix * fix * fix * fix * fix * add tests for user ids * fix * fix * fix * fix * fix * fix * fix * add gdpr support * add gdpr support * id5id support * Update colossussspBidAdapter.js add bidfloor parameter * Update colossussspBidAdapter.js check bidfloor * Update colossussspBidAdapter.js * Update colossussspBidAdapter.js * Update colossussspBidAdapter.js * Update colossussspBidAdapter_spec.js * use floor module * Revert "use floor module" This reverts commit f0c5c24. * use floor module * update to 5v * fix * add uid2 and bidFloor support * fix Co-authored-by: Vladislav Isaiko <vladis@smartyads.com> Co-authored-by: Aiholkin <artem.iholkin@smartyads.com> Co-authored-by: Mykhailo Yaremchuk <m.yaremchuk@smartyads.com>
1 parent 695e480 commit d16aada

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

modules/colossussspBidAdapter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ export const spec = {
109109
if (bid.userId) {
110110
getUserId(placement.eids, bid.userId.britepoolid, 'britepool.com');
111111
getUserId(placement.eids, bid.userId.idl_env, 'identityLink');
112-
getUserId(placement.eids, bid.userId.id5id, 'id5-sync.com')
112+
getUserId(placement.eids, bid.userId.id5id, 'id5-sync.com');
113+
getUserId(placement.eids, bid.userId.uid2 && bid.userId.uid2.id, 'uidapi.com');
113114
getUserId(placement.eids, bid.userId.tdid, 'adserver.org', {
114115
rtiPartner: 'TDID'
115116
});

test/spec/modules/colossussspBidAdapter_spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ describe('ColossussspAdapter', function () {
110110
bid.userId.idl_env = 'idl_env123';
111111
bid.userId.tdid = 'tdid123';
112112
bid.userId.id5id = { uid: 'id5id123' };
113+
bid.userId.uid2 = { id: 'uid2id123' };
113114
let serverRequest = spec.buildRequests([bid], bidderRequest);
114115
it('Returns valid data if array of bids is valid', function () {
115116
let data = serverRequest.data;
@@ -119,11 +120,11 @@ describe('ColossussspAdapter', function () {
119120
let placement = placements[i];
120121
expect(placement).to.have.property('eids')
121122
expect(placement.eids).to.be.an('array')
122-
expect(placement.eids.length).to.be.equal(4)
123+
expect(placement.eids.length).to.be.equal(5)
123124
for (let index in placement.eids) {
124125
let v = placement.eids[index];
125126
expect(v).to.have.all.keys('source', 'uids')
126-
expect(v.source).to.be.oneOf(['britepool.com', 'identityLink', 'adserver.org', 'id5-sync.com'])
127+
expect(v.source).to.be.oneOf(['britepool.com', 'identityLink', 'adserver.org', 'id5-sync.com', 'uidapi.com'])
127128
expect(v.uids).to.be.an('array');
128129
expect(v.uids.length).to.be.equal(1)
129130
expect(v.uids[0]).to.have.property('id')

0 commit comments

Comments
 (0)