Skip to content

Commit

Permalink
add support for pubcid user opt-out (#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
pycnvr authored and mkendall07 committed Sep 19, 2018
1 parent 46d5386 commit 1b97d55
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 1b97d55

Please sign in to comment.