From 50a6da57fc8c5751fb50ee216420b23b8499085a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Kok=C5=82owski?= <38455696+skoklowski@users.noreply.github.com> Date: Thu, 21 Jul 2022 20:43:33 +0200 Subject: [PATCH] rasBidAdapter - enpoint bugfix (#8726) --- modules/rasBidAdapter.js | 4 +++- test/spec/modules/rasBidAdapter_spec.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/rasBidAdapter.js b/modules/rasBidAdapter.js index d9e6b6a9126..909b6a7b795 100644 --- a/modules/rasBidAdapter.js +++ b/modules/rasBidAdapter.js @@ -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 = {}; diff --git a/test/spec/modules/rasBidAdapter_spec.js b/test/spec/modules/rasBidAdapter_spec.js index e3f41566c99..324bf782672 100644 --- a/test/spec/modules/rasBidAdapter_spec.js +++ b/test/spec/modules/rasBidAdapter_spec.js @@ -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);