File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const spec = {
12
12
code : BIDDER_CODE ,
13
13
supportedMediaTypes : [ BANNER ] ,
14
14
isBidRequestValid : function ( bidRequest ) {
15
- return 'params' in bidRequest && bidRequest . params . source !== undefined && bidRequest . params . id !== undefined && utils . isInteger ( bidRequest . params . id ) && bidRequest . params . token !== undefined ;
15
+ return 'params' in bidRequest && bidRequest . params . id !== undefined && utils . isInteger ( bidRequest . params . id ) && bidRequest . params . token !== undefined ;
16
16
} ,
17
17
buildRequests : function ( validBidRequests ) {
18
18
var requests = [ ] ;
@@ -124,9 +124,10 @@ function makeBanner(req) {
124
124
}
125
125
126
126
function makeSite ( req ) {
127
+ let domain = getDomain ( config . getConfig ( 'publisherDomain' ) ) ;
127
128
return {
128
- 'id' : req . params . source ,
129
- 'domain' : getDomain ( config . getConfig ( 'publisherDomain' ) ) ,
129
+ 'id' : req . params . source || domain ,
130
+ 'domain' : domain ,
130
131
'page' : utils . getTopWindowUrl ( ) ,
131
132
'ref' : utils . getTopWindowReferrer ( )
132
133
} ;
You can’t perform that action at this time.
0 commit comments