Skip to content

Commit

Permalink
add support for pubcid user opt-out (prebid#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
pycnvr authored and Pedro López Jiménez committed Mar 18, 2019
1 parent 7815cdc commit d752649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pubCommonId.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export function initPubcid() {
config.getConfig('pubcid', config => setConfig(config.pubcid));

if (utils.cookiesAreEnabled()) {
$$PREBID_GLOBAL$$.requestBids.addHook(requestBidHook);
if (!getCookie('_pubcid_optout')) {
$$PREBID_GLOBAL$$.requestBids.addHook(requestBidHook);
}
}
}

Expand Down

0 comments on commit d752649

Please sign in to comment.