Skip to content

Commit

Permalink
convert bidders: concert
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed May 20, 2022
1 parent 29cd262 commit e5c71dd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion modules/cointrafficBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export const spec = {
currency: currency,
sizes: sizes,
bidId: bidRequest.bidId,
referer: bidderRequest.refererInfo.referer,
// TODO: is 'page' the right value here?
referer: bidderRequest.refererInfo.page,
};

return {
Expand Down
3 changes: 2 additions & 1 deletion modules/coinzillaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const spec = {
width: width,
height: height,
bidId: bidRequest.bidId,
referer: bidderRequest.refererInfo.referer,
// TODO: is 'page' the right value here?
referer: bidderRequest.refererInfo.page,
};
return {
method: 'POST',
Expand Down
3 changes: 2 additions & 1 deletion modules/colossussspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ export const spec = {
winLocation = window.location;
}

const refferUrl = bidderRequest.refererInfo && bidderRequest.refererInfo.referer;
const refferUrl = bidderRequest.refererInfo?.page;
let refferLocation;
try {
refferLocation = refferUrl && new URL(refferUrl);
} catch (e) {
logMessage(e);
}

// TODO: does the fallback to window.location make sense?
const location = refferLocation || winLocation;
let placements = [];
let request = {
Expand Down
4 changes: 2 additions & 2 deletions modules/concertBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const spec = {
let payload = {
meta: {
prebidVersion: '$prebid.version$',
pageUrl: bidderRequest.refererInfo.referer,
pageUrl: bidderRequest.refererInfo.page,
screen: [window.screen.width, window.screen.height].join('x'),
debug: debugTurnedOn(),
uid: getUid(bidderRequest),
Expand All @@ -57,7 +57,7 @@ export const spec = {
slotType: bidRequest.params.slotType,
adSlot: bidRequest.params.slot || bidRequest.adUnitCode,
placementId: bidRequest.params.placementId || '',
site: bidRequest.params.site || bidderRequest.refererInfo.referer
site: bidRequest.params.site || bidderRequest.refererInfo.page
}

return slot;
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/concertBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('ConcertAdapter', function () {

bidRequest = {
refererInfo: {
referer: 'https://www.google.com'
page: 'https://www.google.com'
},
uspConsent: '1YYY',
gdprConsent: {}
Expand Down

0 comments on commit e5c71dd

Please sign in to comment.