Skip to content

Commit

Permalink
move uspDataHandler out of gdprDataHandler (#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 jaiminpanchal27 committed Dec 9, 2019
1 parent 4eb1e44 commit b640d0b
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 b640d0b

Please sign in to comment.