Skip to content

Commit

Permalink
Re-adding raw CRB storage (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsadwith authored Feb 13, 2023
1 parent 1102cfa commit 2a44843
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ function buildRequests(validBidRequests, bidderRequest) {
const firstBidRequest = validBidRequests[0];
const tdidAdapter = deepAccess(firstBidRequest, REQUEST_KEYS.TDID_ADAPTER);

const metadata = getAllMetadata(bidderRequest);

const krakenParams = Object.assign({}, {
pbv: PREBID_VERSION,
aid: firstBidRequest.auctionId,
sid: _getSessionId(),
url: getAllMetadata(bidderRequest).pageURL,
url: metadata.pageURL,
timeout: bidderRequest.timeout,
ts: new Date().getTime(),
device: {
Expand All @@ -92,7 +94,9 @@ function buildRequests(validBidRequests, bidderRequest) {
]
},
imp: impressions,
user: getUserIds(tdidAdapter, bidderRequest.uspConsent, bidderRequest.gdprConsent, firstBidRequest.userIdAsEids)
user: getUserIds(tdidAdapter, bidderRequest.uspConsent, bidderRequest.gdprConsent, firstBidRequest.userIdAsEids),
rawCRB: metadata.rawCRB,
rawCRBLocalStorage: metadata.rawCRBLocalStorage,
});

const reqCount = getRequestCount()
Expand Down

0 comments on commit 2a44843

Please sign in to comment.