Skip to content

Commit b678786

Browse files
committed
Fix BIDDER_CODE const
1 parent e06d20a commit b678786

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

modules/setupadBidAdapter.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import * as events from '../src/events.js';
1414
import { BANNER } from '../src/mediaTypes.js';
1515
import CONSTANTS from '../src/constants.json';
1616

17-
const BIDDER_CODE = 'setupad';
1817
const ENDPOINT = 'https://prebid.setupad.io/openrtb2/auction';
1918
const SYNC_ENDPOINT = 'https://cookie.stpd.cloud/sync?';
2019
const REPORT_ENDPOINT = 'https://adapter-analytics.azurewebsites.net/api/adapter-analytics';
@@ -33,7 +32,7 @@ function getEids(bidRequest) {
3332
}
3433

3534
export const spec = {
36-
code: BIDDER_CODE,
35+
code: 'setupad',
3736
supportedMediaTypes: [BANNER],
3837
gvlid: GVLID,
3938

@@ -213,7 +212,7 @@ export const spec = {
213212
getPixelUrl: function (eventName, bid, timestamp) {
214213
let bidder = bid.bidder || bid.bidderCode;
215214
const auctionId = bid.auctionId;
216-
if (bidder !== BIDDER_CODE) return;
215+
if (bidder !== 'setupad') return;
217216

218217
let params;
219218
if (bid.params) {
@@ -261,14 +260,6 @@ export const spec = {
261260
extraBidParams = `&cpm=${bid.originalCpm}&currency=${bid.originalCurrency}`;
262261
}
263262

264-
if (
265-
eventName === CONSTANTS.EVENTS.BID_REQUESTED ||
266-
eventName === CONSTANTS.EVENTS.BID_TIMEOUT ||
267-
eventName === CONSTANTS.EVENTS.NO_BID
268-
) {
269-
bidder = BIDDER_CODE;
270-
}
271-
272263
const url = `${REPORT_ENDPOINT}?event=${eventName}&bidder=${bidder}&placementIds=${placementIds}&auctionId=${auctionId}${extraBidParams}&timestamp=${timestamp}`;
273264

274265
return url;

0 commit comments

Comments
 (0)