Skip to content

Commit 1e82414

Browse files
Bill Newmanvladis-teqblazeAiholkinMykhailo Yaremchuk
authored
Colossus Bid Adapter: gpp support (prebid#10096)
* 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 --------- Co-authored-by: Vladislav Isaiko <[email protected]> Co-authored-by: Aiholkin <[email protected]> Co-authored-by: Mykhailo Yaremchuk <[email protected]>
1 parent 8c39bab commit 1e82414

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

modules/colossussspBidAdapter.js

+9
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ export const spec = {
116116
request.gdpr_consent = bidderRequest.gdprConsent.consentString || 'ALL';
117117
request.gdpr_require = bidderRequest.gdprConsent.gdprApplies ? 1 : 0;
118118
}
119+
120+
// Add GPP consent
121+
if (bidderRequest.gppConsent) {
122+
request.gpp = bidderRequest.gppConsent.gppString;
123+
request.gpp_sid = bidderRequest.gppConsent.applicableSections;
124+
} else if (bidderRequest.ortb2?.regs?.gpp) {
125+
request.gpp = bidderRequest.ortb2.regs.gpp;
126+
request.gpp_sid = bidderRequest.ortb2.regs.gpp_sid;
127+
}
119128
}
120129

121130
for (let i = 0; i < validBidRequests.length; i++) {

test/spec/modules/colossussspBidAdapter_spec.js

+29
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,35 @@ describe('ColossussspAdapter', function () {
283283
});
284284
});
285285

286+
describe('gpp consent', function () {
287+
it('bidderRequest.gppConsent', () => {
288+
bidderRequest.gppConsent = {
289+
gppString: 'abc123',
290+
applicableSections: [8]
291+
};
292+
293+
let serverRequest = spec.buildRequests([bid], bidderRequest);
294+
let data = serverRequest.data;
295+
expect(data).to.be.an('object');
296+
expect(data).to.have.property('gpp');
297+
expect(data).to.have.property('gpp_sid');
298+
299+
delete bidderRequest.gppConsent;
300+
})
301+
302+
it('bidderRequest.ortb2.regs.gpp', () => {
303+
bidderRequest.ortb2.regs = bidderRequest.ortb2.regs || {};
304+
bidderRequest.ortb2.regs.gpp = 'abc123';
305+
bidderRequest.ortb2.regs.gpp_sid = [8];
306+
307+
let serverRequest = spec.buildRequests([bid], bidderRequest);
308+
let data = serverRequest.data;
309+
expect(data).to.be.an('object');
310+
expect(data).to.have.property('gpp');
311+
expect(data).to.have.property('gpp_sid');
312+
})
313+
});
314+
286315
describe('interpretResponse', function () {
287316
let resObject = {
288317
body: [{

0 commit comments

Comments
 (0)