Skip to content

Commit

Permalink
discovery add refer stack (#10712)
Browse files Browse the repository at this point in the history
Co-authored-by: lvhuixin <lvhuixin@baidu.com>
  • Loading branch information
lhxx121 and lvhuixin authored Nov 13, 2023
1 parent 95a6107 commit 7dbfba4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/discoveryBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ function addImpExtParams(bidRequest = {}, bidderRequest = {}) {
p_pos: params.position || '',
screenSize: getScreenSize(),
referrer: getReferrer(bidRequest, bidderRequest),
stack: deepAccess(bidRequest, 'refererInfo.stack', []),
b_pos: deepAccess(bidRequest, 'mediaTypes.banner.pos', '', ''),
ortbUser: deepAccess(bidRequest, 'ortb2.user', {}, {}),
ortbSite: deepAccess(bidRequest, 'ortb2.site', {}, {}),
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/discoveryBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ describe('discovery:BidAdapterTests', function () {
},
refererInfo: {
page: 'https://discovery.popin.cc',
stack: [
'a.com',
'b.com'
]
},
mediaTypes: {
banner: {
Expand Down

0 comments on commit 7dbfba4

Please sign in to comment.