Skip to content

Commit

Permalink
Kargo Bid Adapter: Forward schain in the request (prebid#10202)
Browse files Browse the repository at this point in the history
* KargoBidAdapter: GPP Support

* kargo adapter to forward schain object (#21)

* wrap in if statement (#22)

* KRKPD-572: Add spec for schain (#23)

* wrap in if statement

* update test for schain, file formatting

---------

Co-authored-by: Jeremy Sadwith <jeremy@kargo.com>
  • Loading branch information
juliangan07 and jsadwith authored Jul 12, 2023
1 parent b973b2d commit 361cf62
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 106 deletions.
4 changes: 4 additions & 0 deletions modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ function buildRequests(validBidRequests, bidderRequest) {
user: getUserIds(tdidAdapter, bidderRequest.uspConsent, bidderRequest.gdprConsent, firstBidRequest.userIdAsEids, bidderRequest.gppConsent),
});

if (firstBidRequest.schain && firstBidRequest.schain.nodes) {
krakenParams.schain = firstBidRequest.schain
}

const reqCount = getRequestCount()
if (reqCount != null) {
krakenParams.requestCount = reqCount;
Expand Down
Loading

0 comments on commit 361cf62

Please sign in to comment.