diff --git a/modules/BTBidAdapter.js b/modules/BTBidAdapter.js index 657491adb17..e789ec996da 100644 --- a/modules/BTBidAdapter.js +++ b/modules/BTBidAdapter.js @@ -6,8 +6,9 @@ import { ortbConverter } from '../libraries/ortbConverter/converter.js'; const BIDDER_CODE = 'blockthrough'; const GVLID = 815; -const ENDPOINT_URL = 'https://pbs.btloader.com/openrtb2/auction'; -const SYNC_URL = 'https://cdn.btloader.com/user_sync.html'; +// reach out for approval to marketing@blockthrough.com +const ENDPOINT_URL = 'https://pbs.sample.com'; +const SYNC_URL = 'https://cdn.sample.com'; const CONVERTER = ortbConverter({ context: { @@ -32,16 +33,7 @@ function imp(buildImp, bidRequest, context) { const { params, ortb2Imp } = bidRequest; if (params) { - const { blockthrough, ...btBidderParams } = params; - - deepSetValue(imp, 'ext', btBidderParams); - if (blockthrough?.auctionID) { - deepSetValue( - imp, - 'ext.prebid.blockthrough.auctionID', - blockthrough.auctionID - ); - } + deepSetValue(imp, 'ext', params); } if (ortb2Imp?.ext.gpid) { deepSetValue(imp, 'gpid', ortb2Imp.ext.gpid); diff --git a/modules/BTBidAdapter.md b/modules/BTBidAdapter.md index 7897cee1a2a..1d89fec5197 100644 --- a/modules/BTBidAdapter.md +++ b/modules/BTBidAdapter.md @@ -18,7 +18,7 @@ The BT adapter requires setup and approval from the Blockthrough team. Please re # Bidder Config -Make sure to set ab, orgID, websiteID values received after approval using `pbjs.setBidderConfig`. +Make sure to set required ab, orgID, websiteID values received after approval using `pbjs.setBidderConfig`. ## Example diff --git a/test/spec/modules/BTBidAdapte_spec.js b/test/spec/modules/BTBidAdapte_spec.js index c2671970268..f756b3ef7aa 100644 --- a/test/spec/modules/BTBidAdapte_spec.js +++ b/test/spec/modules/BTBidAdapte_spec.js @@ -16,7 +16,7 @@ import 'modules/gppControl_usnat.js'; import 'modules/schain.js'; describe('BT Bid Adapter', () => { - const ENDPOINT_URL = 'https://pbs.btloader.com/openrtb2/auction'; + const ENDPOINT_URL = 'https://pbs.sample.com'; const validBidRequests = [ { bidId: '2e9f38ea93bb9e', @@ -24,9 +24,6 @@ describe('BT Bid Adapter', () => { adUnitCode: 'adunit-code', mediaTypes: { [BANNER]: { sizes: [[300, 250]] } }, params: { - blockthrough: { - auctionID: 'auctionID', - }, bidderA: { pubId: '11111', }, @@ -78,9 +75,6 @@ describe('BT Bid Adapter', () => { bidderA: { pubId: '11111', }, - prebid: { - blockthrough: { auctionID: 'auctionID' }, - }, }; const requests = spec.buildRequests(validBidRequests, bidderRequest); @@ -152,7 +146,7 @@ describe('BT Bid Adapter', () => { }); describe('getUserSyncs', () => { - const SYNC_URL = 'https://cdn.btloader.com/user_sync.html'; + const SYNC_URL = 'https://cdn.sample.com/'; it('should return an empty array if no sync options are provided', () => { const syncs = spec.getUserSyncs({}, [], null, null, null);