Skip to content

Commit

Permalink
Spotx Bid Adapter: Update endpoint to indicate request is from Prebid (
Browse files Browse the repository at this point in the history
  • Loading branch information
npeceniak authored Apr 16, 2021
1 parent f65fe74 commit 1b28481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/spotxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,10 @@ export const spec = {
if (!utils.isEmpty(userExt)) {
requestPayload.user = { ext: userExt };
}
const urlQueryParams = 'src_sys=prebid'
return {
method: 'POST',
url: URL + channelId,
url: URL + channelId + '?' + urlQueryParams,
data: requestPayload,
bidRequest: bidderRequest
};
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/spotxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('the spotx adapter', function () {
it('should build a very basic request', function() {
var request = spec.buildRequests([bid], bidRequestObj)[0];
expect(request.method).to.equal('POST');
expect(request.url).to.equal('https://search.spotxchange.com/openrtb/2.3/dados/12345');
expect(request.url).to.equal('https://search.spotxchange.com/openrtb/2.3/dados/12345?src_sys=prebid');
expect(request.bidRequest).to.equal(bidRequestObj);
expect(request.data.id).to.equal(12345);
expect(request.data.ext.wrap_response).to.equal(1);
Expand Down

0 comments on commit 1b28481

Please sign in to comment.