Skip to content

Commit

Permalink
Underdog Media Bid Adapter: Update ttl & referer information (#9826)
Browse files Browse the repository at this point in the history
* Update ttl and referer info in underdogmediaBidAdapter

* Restore hello world default

* Fix the unit test for referer info

* undo change to package lock

* undo change to package lock

* revert change to package-lock.json

---------

Co-authored-by: Jake <jacobkmiller@icloud.com>
  • Loading branch information
kevpark02 and Jacobkmiller authored May 17, 2023
1 parent 4b62ff5 commit 4d998de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/underdogmediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const spec = {
pbTimeout: config.getConfig('bidderTimeout'),
pbjsVersion: prebidVersion,
placements: [],
ref: deepAccess(bidderRequest, 'refererInfo.ref') ? bidderRequest.refererInfo.ref : undefined,
ref: deepAccess(bidderRequest, 'refererInfo.page') ? bidderRequest.refererInfo.page : undefined,
usp: {},
userIds: {
'33acrossId': deepAccess(validBidRequests[0], 'userId.33acrossId.envelope') ? validBidRequests[0].userId['33acrossId'].envelope : undefined,
Expand Down Expand Up @@ -193,7 +193,7 @@ export const spec = {
creativeId: mid.mid,
currency: 'USD',
netRevenue: false,
ttl: mid.ttl || 60,
ttl: mid.ttl || 300,
meta: {
advertiserDomains: mid.advertiser_domains || []
}
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/underdogmediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ describe('UnderdogMedia adapter', function () {
},
},
refererInfo: {
ref: 'www.example.com'
page: 'www.example.com'
}
}

Expand Down

0 comments on commit 4d998de

Please sign in to comment.