Skip to content

Commit

Permalink
smartadserverBidAdapter.js - make bid.params.domain optional (prebid#…
Browse files Browse the repository at this point in the history
…3781)

https://prg.smartadserver.com is the standard domain for smartadserver. This update make the "bid.params.domain"-parameter optional.
  • Loading branch information
phtechno authored and Alex committed Aug 1, 2019
1 parent 5e7b992 commit 16b4537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/smartadserverBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const spec = {
* @return boolean True if this is a valid bid, and false otherwise.
*/
isBidRequestValid: function (bid) {
return !!(bid.params && bid.params.siteId && bid.params.pageId && bid.params.formatId && bid.params.domain);
return !!(bid.params && bid.params.siteId && bid.params.pageId && bid.params.formatId);
},
/**
* Make a server request from the list of BidRequests.
Expand Down Expand Up @@ -63,7 +63,7 @@ export const spec = {
var payloadString = JSON.stringify(payload);
return {
method: 'POST',
url: bid.params.domain + '/prebid/v1',
url: (bid.params.domain !== undefined ? bid.params.domain : 'https://prg.smartadserver.com') + '/prebid/v1',
data: payloadString,
};
});
Expand Down

0 comments on commit 16b4537

Please sign in to comment.