@@ -14,7 +14,6 @@ import * as events from '../src/events.js';
14
14
import { BANNER } from '../src/mediaTypes.js' ;
15
15
import CONSTANTS from '../src/constants.json' ;
16
16
17
- const BIDDER_CODE = 'setupad' ;
18
17
const ENDPOINT = 'https://prebid.setupad.io/openrtb2/auction' ;
19
18
const SYNC_ENDPOINT = 'https://cookie.stpd.cloud/sync?' ;
20
19
const REPORT_ENDPOINT = 'https://adapter-analytics.azurewebsites.net/api/adapter-analytics' ;
@@ -33,7 +32,7 @@ function getEids(bidRequest) {
33
32
}
34
33
35
34
export const spec = {
36
- code : BIDDER_CODE ,
35
+ code : 'setupad' ,
37
36
supportedMediaTypes : [ BANNER ] ,
38
37
gvlid : GVLID ,
39
38
@@ -213,7 +212,7 @@ export const spec = {
213
212
getPixelUrl : function ( eventName , bid , timestamp ) {
214
213
let bidder = bid . bidder || bid . bidderCode ;
215
214
const auctionId = bid . auctionId ;
216
- if ( bidder !== BIDDER_CODE ) return ;
215
+ if ( bidder !== 'setupad' ) return ;
217
216
218
217
let params ;
219
218
if ( bid . params ) {
@@ -261,14 +260,6 @@ export const spec = {
261
260
extraBidParams = `&cpm=${ bid . originalCpm } ¤cy=${ bid . originalCurrency } ` ;
262
261
}
263
262
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
-
272
263
const url = `${ REPORT_ENDPOINT } ?event=${ eventName } &bidder=${ bidder } &placementIds=${ placementIds } &auctionId=${ auctionId } ${ extraBidParams } ×tamp=${ timestamp } ` ;
273
264
274
265
return url ;
0 commit comments