-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Resetdigital bid Adapter: add fields and suport for coppa #9400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
ea7c5a9
53fc92d
b066b1c
55c5006
a59f03b
2f11a5e
3e36f10
c5cf2bc
f8b281c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,16 +43,29 @@ export const spec = { | |
}; | ||
} | ||
|
||
if (bidderRequest && bidderRequest.uspConsent) { | ||
payload.ccpa = bidderRequest.uspConsent; | ||
} | ||
|
||
for (let x = 0; x < validBidRequests.length; x++) { | ||
let req = validBidRequests[x] | ||
|
||
payload.imps.push({ | ||
pub_id: req.params.pubId, | ||
site_id: req.params.siteID ? req.params.siteID : null, | ||
placement_id: req.params.placement ? req.params.placement : null, | ||
position: req.params.position ? req.params.position : null, | ||
bid_floor: req.params.bidFloor ? req.params.bidFloor : null, | ||
nicolasresetdigital marked this conversation as resolved.
Show resolved
Hide resolved
|
||
lat_long: req.params.latLong ? req.params.latLong : null, | ||
inventory: req.params.inventory ? req.params.inventory : null, | ||
visitor: req.params.visitor ? req.params.visitor : null, | ||
keywords: req.params.keywords ? req.params.keywords : null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is also true about keywords, the bid request object should have keywords you can append to the keywords you see in params There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I reviewed other adapters and couldn't find one that takes the keywords from the bid request object, so I think we are covered about that. in another case can you share an example with me? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See issue #8660 |
||
zone_id: req.params.zoneId, | ||
bid_id: req.bidId, | ||
imp_id: req.transactionId, | ||
sizes: req.sizes, | ||
force_bid: req.params.forceBid, | ||
coppa: req.ortb2.regs ? req.ortb2.regs.coppa : 0, | ||
media_types: deepAccess(req, 'mediaTypes') | ||
}); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.