Skip to content

Commit

Permalink
move uspDataHandler out of gdprDataHandler (prebid#4562)
Browse files Browse the repository at this point in the history
* move uspDataHandler out of gdprDataHandler

* add missing semi-colon
  • Loading branch information
jsnellbaker authored and afewcc committed Dec 10, 2019
1 parent 2a04ee2 commit 77f62b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adapterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ adapterManager.makeBidRequests = function(adUnits, auctionStart, auctionId, cbTi
if (gdprDataHandler.getConsentData()) {
bidRequests.forEach(bidRequest => {
bidRequest['gdprConsent'] = gdprDataHandler.getConsentData();
});
}

if (uspDataHandler.getConsentData()) {
bidRequests.forEach(bidRequest => {
bidRequest['uspConsent'] = uspDataHandler.getConsentData();
});
}
Expand Down

0 comments on commit 77f62b1

Please sign in to comment.