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

Support for CCPA consent in Criteo adapter #4604

Merged
merged 81 commits into from
Dec 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
fdc068a
use own package instead of npm dependencies
Oct 10, 2019
df02c46
remove eval call, use utils.insertElement instead
Oct 11, 2019
714af4c
use own package instead of npm dependencies
Oct 10, 2019
b36972b
remove eval call, use utils.insertElement instead
Oct 11, 2019
23ce146
fixed some merge issues after rebasing
leonardlabat Nov 15, 2019
525e86d
Merge branch 'criteo-decrease-bid-adapter-size' of https://github.com…
leonardlabat Nov 15, 2019
e1b38f6
switched rsa validation package to criteo's official one
leonardlabat Nov 29, 2019
5fb81e4
increment adapter version
leonardlabat Nov 29, 2019
bc40236
removed unused querystringify references (probably here after a merge…
leonardlabat Nov 29, 2019
0e2486c
updated package-lock.json
leonardlabat Nov 29, 2019
2ff4069
Staq Adapter: update with meta envelope (#4372)
mquirion Nov 15, 2019
8f9fa39
Rhythmone Adapter - schain support (#4414)
Nov 18, 2019
d3ba67a
Media.net Adapter: Support Prebid 3.0 (#4378)
binoy-chitale Nov 18, 2019
079a0a7
Vi Adapter: Passes additional param in the bid request (#4134)
alpadotsh Nov 18, 2019
cfdb206
Sovrn adapter updates: schain, digitrust, pixel syncing, and 3.0 upgr…
aprakash-sovrn Nov 18, 2019
ceb38f2
TheMediaGrid Bid Adapter update (#4447)
TheMediaGrid Nov 18, 2019
7a607bf
Conversant Bid Adapter adds support for extended ids (#4462)
pycnvr Nov 18, 2019
e79755b
Adkernel 3.0 compatibility (#4477)
ckbo3hrk Nov 18, 2019
b5e9895
Rubicon Adapter pchain support (#4480)
harpere Nov 19, 2019
10d8714
Implemented changes required to provide support for video in the IX b…
ix-prebid-support Nov 19, 2019
327491a
Default size filter & KVP support (#4452)
stevealliance Nov 19, 2019
3d880b7
add id5id to prebid server bid adapter (#4468)
smenzer Nov 19, 2019
3417466
Added _pbjsGlobals for tracking renames. Resolves #4254 (#4419)
mkendall07 Nov 20, 2019
e771855
Feature/smart video (#4367)
tadam75 Nov 20, 2019
bdd9461
do not select element that gets removed after dfp render (#4423)
vkimcm Nov 20, 2019
0b08a1f
add smms adapter (#4439)
songtungmtp Nov 20, 2019
df450ba
Prebid 2.41.0 release
Nov 20, 2019
e46ab13
Increment pre version
Nov 20, 2019
a7c239d
adds schain param (#4442)
susyt Nov 21, 2019
83b6e8f
Create newborntownWeb adapter (#4455)
z-sunshine Nov 22, 2019
6452f88
Provide criteoId to server by user.ext.eids (#4478)
bmwcmw Nov 25, 2019
388cd71
ucfunnel adapter fix error message in debug mode (#4338)
Nov 25, 2019
9c91b3a
explicitly check undefined to allow falsey values in getConfig (#4486)
snapwich Nov 25, 2019
051d9d5
Conversant Bid Adapter handles vast xml (#4492)
pycnvr Nov 25, 2019
189eea5
[feature] Add a config list of submodules that require refreshing the…
eyas-ranjous Nov 26, 2019
874e335
Prebid 2.42.0 Release
bretg Nov 26, 2019
b8c3229
Increment pre version
bretg Nov 26, 2019
8b528a1
Make adhese adapter prebid 3.0 compatible (#4507)
sander-adhese Nov 27, 2019
95d8601
BugFix: Site id missing (#4467)
DeepthiNeeladri Nov 28, 2019
72aa251
Invisibly analytics adapter (#4470)
Hassija Dec 2, 2019
c29a884
Colossus adapter changes for Prebid 3.0 (#4476)
Dec 2, 2019
069e710
New alias for adkernel adapter (#4512)
ckbo3hrk Dec 2, 2019
ef53685
adagioAnalyticsAdapter: fix inconsistent tests (#4417)
osazos Dec 2, 2019
ee3989f
PubMatic adapter avoiding deprecated utils APIs (#4521)
pm-harshad-mane Dec 2, 2019
f0b6f11
Vuble Adapter adaptations for Prebid 3.0 (#4499)
Roffray Dec 2, 2019
8116b1b
quantcastBidAdapter update for 3.0 (#4451)
dpapworth-qc Dec 2, 2019
b127e88
Orbidder Bid Adapter adds withCredentials=true header for bid and win…
RainerVolk4014 Dec 2, 2019
73736ff
InvibesBidAdapter - kw support (#4488)
rcheptanariu Dec 3, 2019
3901e50
logError for missing s2s adapter (#4498)
jonapgar Dec 3, 2019
78140b5
Change protocol to https (#4513)
TinchoF Dec 3, 2019
7231c12
adxcgBidAdapter prebid 3.0 requirements compatibility (#4514)
adxcgcom Dec 3, 2019
25dea00
Add schain support for LockerDome adapter (#4360)
margsliu Dec 3, 2019
3fa0392
adxcgAnalyticsAdapter.js prebid 3.0 requirements compatibility (#4515)
adxcgcom Dec 4, 2019
b3e736a
Add britepool userid submodule (#4314)
bansawbanchee Dec 4, 2019
5add80c
PrebidServerBidAdapter CCPA (USP) Support (#4501)
harpere Dec 4, 2019
db29276
cedato adapter added additional req info (#4508)
alexkh13 Dec 4, 2019
a505438
RubiconBidAdapter: CCPA (USP) Support (#4530)
msm0504 Dec 4, 2019
3f35dff
Update adxcgBidAdapter.md - moved sizes to mediaType.sizes (#4526)
adxcgcom Dec 4, 2019
dcc1ce4
CCPA additions (#4502)
tjeastmond Dec 4, 2019
99a8148
JustPremium: Disable 'btm' requests (#4511)
Dec 4, 2019
833fc81
PubMatic to support Britepool User ID (#4532)
pm-harshad-mane Dec 4, 2019
2177cc8
adding ccpa support for appnexus bid adapter (#4531)
jaiminpanchal27 Dec 4, 2019
d5cc0ee
Prebid 2.43.0 release
jsnellbaker Dec 4, 2019
ff12e87
increment pre version
jsnellbaker Dec 4, 2019
14449df
ucfunnelAnalyticsAdapter (#4432)
Dec 4, 2019
55cf203
ucfunnel adapter add bidfloor parameter (#4495)
Dec 5, 2019
d6a548f
Added AstraOne adapter (#4475)
astraone-ssp Dec 5, 2019
0c2f567
PubMatic bid adapter to support CCPA/USP (#4533)
pm-harshad-mane Dec 6, 2019
8b4b021
Update adxcgBidAdapter.js - native fix (#4534)
adxcgcom Dec 9, 2019
5e5ea7f
Added US Privacy support in TrustX Bid Adapter (#4529)
PWyrembak Dec 9, 2019
20de357
Trion interactive query param additions (#4522)
grohm33 Dec 9, 2019
3b078c2
ShowHeroes Adapter - naming convention issue (#4525)
vadim-mazzherin Dec 9, 2019
2a04ee2
Adkernel: tmax support (#4548)
ckbo3hrk Dec 9, 2019
77f62b1
move uspDataHandler out of gdprDataHandler (#4562)
jsnellbaker Dec 9, 2019
2fde06e
Rubicon bid adapter: fix netRev (#4552)
robertrmartinez Dec 9, 2019
55e4013
RichAudience: Support userIDs + Prebid 3.0 (#4504)
richaudience Dec 10, 2019
56180b4
CCPA and Schain support (#4537)
Dec 10, 2019
c9cd3df
Add support for CCPA consent in Criteo adapter
afewcc Dec 10, 2019
b707dee
Merge branch 'master' into criteo-ccpa-support
afewcc Dec 16, 2019
b33b15f
Fix merge issues
afewcc Dec 16, 2019
77520cc
Fix New Line
afewcc Dec 16, 2019
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
5 changes: 4 additions & 1 deletion modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as utils from '../src/utils';
import find from 'core-js/library/fn/array/find';
import { verify } from 'criteo-direct-rsa-validate/build/verify';

export const ADAPTER_VERSION = 24;
export const ADAPTER_VERSION = 25;
const BIDDER_CODE = 'criteo';
const CDB_ENDPOINT = 'https://bidder.criteo.com/cdb';
const CRITEO_VENDOR_ID = 91;
Expand Down Expand Up @@ -290,6 +290,9 @@ function buildCdbRequest(context, bidRequests, bidderRequest) {
request.gdprConsent.consentData = bidderRequest.gdprConsent.consentString;
}
}
if (bidderRequest && bidderRequest.uspConsent) {
request.user.uspIab = bidderRequest.uspConsent;
}
return request;
}

Expand Down
43 changes: 43 additions & 0 deletions test/spec/modules/criteoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,49 @@ describe('The Criteo bidding adapter', function () {
expect(ortbRequest.gdprConsent.consentGiven).to.equal(undefined);
});

it('should properly build a request with ccpa consent field', function () {
const bidRequests = [
{
bidder: 'criteo',
adUnitCode: 'bid-123',
transactionId: 'transaction-123',
sizes: [[728, 90]],
params: {
zoneId: 123,
},
},
];
const bidderRequest = {
timeout: 3000,
uspConsent: '1YNY',
};

const request = spec.buildRequests(bidRequests, bidderRequest);
expect(request.data.user).to.not.be.null;
expect(request.data.user.uspIab).to.equal('1YNY');
});

it('should properly build a request with if ccpa consent field is not provided', function () {
const bidRequests = [
{
bidder: 'criteo',
adUnitCode: 'bid-123',
transactionId: 'transaction-123',
sizes: [[728, 90]],
params: {
zoneId: 123,
},
},
];
const bidderRequest = {
timeout: 3000
};

const request = spec.buildRequests(bidRequests, bidderRequest);
expect(request.data.user).to.not.be.null;
expect(request.data.user.uspIab).to.equal(undefined);
});

it('should properly build a video request', function () {
const bidRequests = [
{
Expand Down