diff --git a/src/cdk/v2/destinations/the_trade_desk/utils.js b/src/cdk/v2/destinations/the_trade_desk/utils.js index 0a65a5ed08..1e68a0c8f8 100644 --- a/src/cdk/v2/destinations/the_trade_desk/utils.js +++ b/src/cdk/v2/destinations/the_trade_desk/utils.js @@ -28,8 +28,8 @@ const getSignatureHeader = (request, secretKey) => { return base; }; -const responseBuilder = (items, Config) => { - const { advertiserId, dataServer } = Config; +const responseBuilder = (items, config) => { + const { advertiserId, dataServer } = config; const payload = { DataProviderId: DATA_PROVIDER_ID, AdvertiserId: advertiserId, Items: items }; @@ -70,12 +70,12 @@ const splitItemsBasedOnMaxSizeInBytes = (items, maxSize) => { return batches; }; -const batchResponseBuilder = (items, Config) => { +const batchResponseBuilder = (items, config) => { const response = []; const itemsChunks = splitItemsBasedOnMaxSizeInBytes(items, MAX_REQUEST_SIZE_IN_BYTES); itemsChunks.forEach((chunk) => { - response.push(responseBuilder(chunk, Config)); + response.push(responseBuilder(chunk, config)); }); return response; diff --git a/src/v0/destinations/the_trade_desk/networkHandler.js b/src/v0/destinations/the_trade_desk/networkHandler.js index 6bb64882bf..20e0dc8757 100644 --- a/src/v0/destinations/the_trade_desk/networkHandler.js +++ b/src/v0/destinations/the_trade_desk/networkHandler.js @@ -10,7 +10,6 @@ const tags = require('../../util/tags'); const { JSON_MIME_TYPE } = require('../../util/constant'); const proxyRequest = async (request) => { - console.log('request', JSON.stringify(request)); const { endpoint, data, method, params, headers, config } = prepareProxyRequest(request); if (!config?.advertiserSecretKey) {