Skip to content

Commit

Permalink
AdagioBidAdapter: use refererInfo.topmostLocation only
Browse files Browse the repository at this point in the history
  • Loading branch information
osazos committed Aug 11, 2022
1 parent 453207a commit e261f9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,8 @@ function getDevice() {
function getSite(bidderRequest) {
const { refererInfo } = bidderRequest;
return {
// TODO: do these fallbacks make sense?
domain: refererInfo.domain || parseDomain(refererInfo.topmostLocation) || '',
page: refererInfo.page || refererInfo.topmostLocation || '',
domain: parseDomain(refererInfo.topmostLocation) || '',
page: refererInfo.topmostLocation || '',
referrer: refererInfo.ref || getWindowSelf().document.referrer || '',
top: refererInfo.reachedTop
};
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/adagioBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,7 @@ describe('Adagio bid adapter', () => {
refererInfo: {
numIframes: 0,
reachedTop: true,
topmostLocation: 'https://test.io/article/a.html',
page: 'https://test.io/article/a.html',
domain: 'test.io',
ref: 'https://google.com'
Expand All @@ -1417,6 +1418,7 @@ describe('Adagio bid adapter', () => {
numIframes: 0,
reachedTop: true,
page: 'http://level.io/',
topmostLocation: 'http://level.io/',
stack: [
'http://level.io/',
'http://example.com/iframe1.html',
Expand Down

0 comments on commit e261f9f

Please sign in to comment.