Skip to content

Commit 0210d2e

Browse files
bhasker-ddhvladis-teqblazeAiholkinBill NewmanMykhailo Yaremchuk
authored
Colossus Bid Adapter: Add GPP Support and Accept eids from publisher request (prebid#11155)
* 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 * add pbadslot support * fix conflicts * add onBidWon * refactor * add test for onBidWon() * fix * add group_id * Trigger circleci * fix * update user sync * fix window.location * fix test * updates * fix conflict * fix * updates * remove traffic param * add transactionId to request data for colossusssp adapter * Send tid in placements array * update user sync * updated tests * remove changes package-lock file * fix * add First Party Data * gpp support * accepting eids from request * fixing lint errors * resolving a conflict * fixing a failed test case related to tid * fixing karma version for conflict resolution * reverting package json files to original version --------- Co-authored-by: Vladislav Isaiko <[email protected]> Co-authored-by: Aiholkin <[email protected]> Co-authored-by: Bill Newman <[email protected]> Co-authored-by: Mykhailo Yaremchuk <[email protected]> Co-authored-by: kottapally <[email protected]>
1 parent 06bf1e4 commit 0210d2e

File tree

2 files changed

+43
-10
lines changed

2 files changed

+43
-10
lines changed

modules/colossussspBidAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const spec = {
140140
groupId: bid.params.group_id,
141141
bidId: bid.bidId,
142142
tid: bid.ortb2Imp?.ext?.tid,
143-
eids: [],
143+
eids: bid.userIdAsEids || [],
144144
floor: {}
145145
};
146146

test/spec/modules/colossussspBidAdapter_spec.js

+42-9
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,46 @@ describe('ColossussspAdapter', function () {
255255
});
256256

257257
describe('buildRequests with user ids', function () {
258-
bid.userId = {}
259-
bid.userId.britepoolid = 'britepoolid123';
260-
bid.userId.idl_env = 'idl_env123';
261-
bid.userId.tdid = 'tdid123';
262-
bid.userId.id5id = { uid: 'id5id123' };
263-
bid.userId.uid2 = { id: 'uid2id123' };
264-
let serverRequest = spec.buildRequests([bid], bidderRequest);
258+
var clonedBid = JSON.parse(JSON.stringify(bid));
259+
clonedBid.userId = {}
260+
clonedBid.userId.britepoolid = 'britepoolid123';
261+
clonedBid.userId.idl_env = 'idl_env123';
262+
clonedBid.userId.tdid = 'tdid123';
263+
clonedBid.userId.id5id = { uid: 'id5id123' };
264+
clonedBid.userId.uid2 = { id: 'uid2id123' };
265+
clonedBid.userIdAsEids = [
266+
{
267+
'source': 'pubcid.org',
268+
'uids': [
269+
{
270+
'id': '4679e98e-1d83-4718-8aba-aa88hhhaaa',
271+
'atype': 1
272+
}
273+
]
274+
},
275+
{
276+
'source': 'adserver.org',
277+
'uids': [
278+
{
279+
'id': 'e804908e-57b4-4f46-a097-08be44321e79',
280+
'atype': 1,
281+
'ext': {
282+
'rtiPartner': 'TDID'
283+
}
284+
}
285+
]
286+
},
287+
{
288+
'source': 'neustar.biz',
289+
'uids': [
290+
{
291+
'id': 'E1:Bvss1x8hXM2zHeqiqj2umJUziavSvLT6E_ORri5fDCsZb-5sfD18oNWycTmdx6QBNdbURBVv466hLJiKSwHCaTxvROo8smjqj6GfvlKfzQI',
292+
'atype': 1
293+
}
294+
]
295+
}
296+
];
297+
let serverRequest = spec.buildRequests([clonedBid], bidderRequest);
265298
it('Returns valid data if array of bids is valid', function () {
266299
let data = serverRequest.data;
267300
let placements = data['placements'];
@@ -270,11 +303,11 @@ describe('ColossussspAdapter', function () {
270303
let placement = placements[i];
271304
expect(placement).to.have.property('eids')
272305
expect(placement.eids).to.be.an('array')
273-
expect(placement.eids.length).to.be.equal(5)
306+
expect(placement.eids.length).to.be.equal(8)
274307
for (let index in placement.eids) {
275308
let v = placement.eids[index];
276309
expect(v).to.have.all.keys('source', 'uids')
277-
expect(v.source).to.be.oneOf(['britepool.com', 'identityLink', 'adserver.org', 'id5-sync.com', 'uidapi.com'])
310+
expect(v.source).to.be.oneOf(['pubcid.org', 'adserver.org', 'neustar.biz', 'britepool.com', 'identityLink', 'id5-sync.com', 'adserver.org', 'uidapi.com'])
278311
expect(v.uids).to.be.an('array');
279312
expect(v.uids.length).to.be.equal(1)
280313
expect(v.uids[0]).to.have.property('id')

0 commit comments

Comments
 (0)