Skip to content

Commit

Permalink
feat(getItems): add bid request params
Browse files Browse the repository at this point in the history
  • Loading branch information
yubei01 committed Oct 16, 2023
1 parent 86736ac commit f64fb8e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/discoveryBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,17 @@ function getItems(validBidRequests, bidderRequest) {
tagid: req.params && req.params.tagid
};
}

try {
const otherExt = {
adUnitCode: getKv(req, 'adUnitCode'),
adslot: getKv(req, 'ortb2Imp', 'ext', 'data', 'adserver', 'adslot'),
gpid: getKv(req, 'ortb2Imp', 'ext', 'gpid'),
token: getKv(req, 'params', 'token'),
};
Object.assign(ret.ext, otherExt);
} catch (e) {}

itemMaps[id] = {
req,
ret,
Expand Down

0 comments on commit f64fb8e

Please sign in to comment.