Skip to content

Commit

Permalink
Merge pull request #16 from KargoGlobal/KRKPD-138b
Browse files Browse the repository at this point in the history
Kargo Bid Adapter: Updating tests and refactoring
  • Loading branch information
njflynn authored Mar 1, 2023
2 parents da6654e + f648421 commit 83213d6
Show file tree
Hide file tree
Showing 4 changed files with 5,312 additions and 8,494 deletions.
10 changes: 8 additions & 2 deletions modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ function buildRequests(validBidRequests, bidderRequest) {
},
imp: impressions,
user: getUserIds(tdidAdapter, bidderRequest.uspConsent, bidderRequest.gdprConsent, firstBidRequest.userIdAsEids, bidderRequest.gppConsent),
rawCRB: metadata.rawCRB,
rawCRBLocalStorage: metadata.rawCRBLocalStorage,
});

const reqCount = getRequestCount()
Expand All @@ -108,6 +106,14 @@ function buildRequests(validBidRequests, bidderRequest) {
krakenParams.cur = currency;
}

if(metadata.rawCRB != null) {
krakenParams.rawCRB = metadata.rawCRB
}

if(metadata.rawCRBLocalStorage != null) {
krakenParams.rawCRBLocalStorage = metadata.rawCRBLocalStorage
}

// Pull Social Canvas segments and embed URL
const socialCanvas = deepAccess(firstBidRequest, REQUEST_KEYS.SOCIAL_CANVAS);

Expand Down
Loading

0 comments on commit 83213d6

Please sign in to comment.