Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions allowedModules.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const sharedWhiteList = [
"core-js/library/fn/array/find", // no ie11
"core-js/library/fn/array/includes", // no ie11
Expand All @@ -12,7 +11,8 @@ module.exports = {
'modules': [
...sharedWhiteList,
'jsencrypt',
'crypto-js'
'crypto-js',
'ulid'
],
'src': [
...sharedWhiteList,
Expand Down
70 changes: 70 additions & 0 deletions integrationExamples/gpt/liveConnect_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!--
This page shows an example of usage LiveConnect Identity Inception module.
-->

<html lang="en">
<head>
<script>
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
</script>

<script async src="../../build/dev/prebid.js"></script>

<script>

pbjs.que.push(function () {
pbjs.setConfig({
debug: true,
consentManagement: {
cmpApi: 'static',
timeout: 7500,
allowAuctionWithoutConsent: false,
consentData: {
getConsentData: {
'gdprApplies': true,
'hasGlobalScope': false,
'consentData': 'BOOgjO9OOgjO9APABAENAi-AAAAWd7_______9____7_9uz_Gv_r_ff_3nW0739P1A_r_Oz_rm_-zzV44_lpQQRCEA'
},
getVendorConsents: {
'metadata': 'BOOgjO9OOgjO9APABAENAi-AAAAWd7_______9____7_9uz_Gv_r_ff_3nW0739P1A_r_Oz_rm_-zzV44_lpQQRCEA',
'gdprApplies': true,
'hasGlobalScope': false,
'isEU': true,
'cookieVersion': 1,
'created': '2018-05-29T07:45:48.522Z',
'lastUpdated': '2018-05-29T07:45:48.522Z',
'cmpId': 15,
'cmpVersion': 1,
'consentLanguage': 'EN',
'vendorListVersion': 34,
'maxVendorId': 359,
'purposeConsents': {
'1': false
},
'vendorConsents': {
'1': true
}
}
}
},
liveConnect: {
userIdentifier: "pubcid",
additionalUserIdentifiers: ["_parrable_eid"],
storage: {
type: "cookie",
expires: 600
}
}
});
pbjs.liveConnect();
pbjs.requestBids({});
});
</script>
<title>LiveConnect</title>
</head>

<body>
<h2>Prebid.js LiveConnect</h2>
</body>
</html>
1 change: 1 addition & 0 deletions modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ export function setConsentConfig(config) {
}
if (!addedConsentHook) {
$$PREBID_GLOBAL$$.requestBids.before(requestBidsHook, 50);
if ($$PREBID_GLOBAL$$.liveConnectHook) $$PREBID_GLOBAL$$.liveConnectHook.before(requestBidsHook, 50);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain this -- why should the ConsentManagement module be related to LiveConnect?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want to setting our cookie if the consent is not given

}
addedConsentHook = true;
}
Expand Down
Loading