Skip to content

Commit

Permalink
rasBidAdapter - enpoint bugfix (prebid#8726)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoklowski authored and Chris Corbo committed Jul 27, 2022
1 parent 029cc77 commit 50a6da5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/rasBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { isEmpty, getAdUnitSizes, parseSizesInput, deepAccess } from '../src/uti
const BIDDER_CODE = 'ras';
const VERSION = '1.0';

const getEndpoint = (network) => `https://csr.onet.pl/${encodeURIComponent(network)}/csr-006/csr.json?`;
const getEndpoint = (network) => {
return `https://csr.onet.pl/${encodeURIComponent(network)}/csr-006/csr.json?nid=${encodeURIComponent(network)}&`;
};

function parseParams(params, bidderRequest) {
const newParams = {};
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/rasBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from 'chai';
import { spec } from 'modules/rasBidAdapter.js';
import { newBidder } from 'src/adapters/bidderFactory.js';

const CSR_ENDPOINT = 'https://csr.onet.pl/4178463/csr-006/csr.json?';
const CSR_ENDPOINT = 'https://csr.onet.pl/4178463/csr-006/csr.json?nid=4178463&';

describe('rasBidAdapter', function () {
const adapter = newBidder(spec);
Expand Down

0 comments on commit 50a6da5

Please sign in to comment.