Skip to content

Commit

Permalink
Colossus Bid Adapter: Add GPP Support and Accept eids from publisher …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
6 people committed Mar 6, 2024
1 parent 06bf1e4 commit 0210d2e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 10 deletions.
2 changes: 1 addition & 1 deletion modules/colossussspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const spec = {
groupId: bid.params.group_id,
bidId: bid.bidId,
tid: bid.ortb2Imp?.ext?.tid,
eids: [],
eids: bid.userIdAsEids || [],
floor: {}
};

Expand Down
51 changes: 42 additions & 9 deletions test/spec/modules/colossussspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,46 @@ describe('ColossussspAdapter', function () {
});

describe('buildRequests with user ids', function () {
bid.userId = {}
bid.userId.britepoolid = 'britepoolid123';
bid.userId.idl_env = 'idl_env123';
bid.userId.tdid = 'tdid123';
bid.userId.id5id = { uid: 'id5id123' };
bid.userId.uid2 = { id: 'uid2id123' };
let serverRequest = spec.buildRequests([bid], bidderRequest);
var clonedBid = JSON.parse(JSON.stringify(bid));
clonedBid.userId = {}
clonedBid.userId.britepoolid = 'britepoolid123';
clonedBid.userId.idl_env = 'idl_env123';
clonedBid.userId.tdid = 'tdid123';
clonedBid.userId.id5id = { uid: 'id5id123' };
clonedBid.userId.uid2 = { id: 'uid2id123' };
clonedBid.userIdAsEids = [
{
'source': 'pubcid.org',
'uids': [
{
'id': '4679e98e-1d83-4718-8aba-aa88hhhaaa',
'atype': 1
}
]
},
{
'source': 'adserver.org',
'uids': [
{
'id': 'e804908e-57b4-4f46-a097-08be44321e79',
'atype': 1,
'ext': {
'rtiPartner': 'TDID'
}
}
]
},
{
'source': 'neustar.biz',
'uids': [
{
'id': 'E1:Bvss1x8hXM2zHeqiqj2umJUziavSvLT6E_ORri5fDCsZb-5sfD18oNWycTmdx6QBNdbURBVv466hLJiKSwHCaTxvROo8smjqj6GfvlKfzQI',
'atype': 1
}
]
}
];
let serverRequest = spec.buildRequests([clonedBid], bidderRequest);
it('Returns valid data if array of bids is valid', function () {
let data = serverRequest.data;
let placements = data['placements'];
Expand All @@ -270,11 +303,11 @@ describe('ColossussspAdapter', function () {
let placement = placements[i];
expect(placement).to.have.property('eids')
expect(placement.eids).to.be.an('array')
expect(placement.eids.length).to.be.equal(5)
expect(placement.eids.length).to.be.equal(8)
for (let index in placement.eids) {
let v = placement.eids[index];
expect(v).to.have.all.keys('source', 'uids')
expect(v.source).to.be.oneOf(['britepool.com', 'identityLink', 'adserver.org', 'id5-sync.com', 'uidapi.com'])
expect(v.source).to.be.oneOf(['pubcid.org', 'adserver.org', 'neustar.biz', 'britepool.com', 'identityLink', 'id5-sync.com', 'adserver.org', 'uidapi.com'])
expect(v.uids).to.be.an('array');
expect(v.uids.length).to.be.equal(1)
expect(v.uids[0]).to.have.property('id')
Expand Down

0 comments on commit 0210d2e

Please sign in to comment.