Skip to content

Commit

Permalink
Vidazoo: Feature support usp consent (prebid#5111)
Browse files Browse the repository at this point in the history
* feat(module): multi size request

* fix getUserSyncs
added tests

* update(module): package-lock.json from master

* feat(module): add usp consent support

* added uspConsent test

Co-authored-by: roman <shmoop207@gmail.com>
  • Loading branch information
2 people authored and iggyfisk committed Jun 22, 2020
1 parent 4757218 commit cb19417
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/vidazooBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest) {
data.gdpr = bidderRequest.gdprConsent.gdprApplies ? 1 : 0;
}
}
if (bidderRequest.uspConsent) {
data.usPrivacy = bidderRequest.uspConsent
}
const dto = {
method: 'POST',
url: `${URL}/prebid/multi/${cId}`,
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/vidazooBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const BIDDER_REQUEST = {
'consentString': 'consent_string',
'gdprApplies': true
},
'uspConsent': 'consent_string',
'refererInfo': {
'referer': 'https://www.greatsite.com'
}
Expand Down Expand Up @@ -131,6 +132,7 @@ describe('VidazooBidAdapter', function () {
data: {
gdprConsent: 'consent_string',
gdpr: 1,
usPrivacy: 'consent_string',
sizes: ['300x250', '300x600'],
url: 'https%3A%2F%2Fwww.greatsite.com',
cb: 1000,
Expand Down

0 comments on commit cb19417

Please sign in to comment.