From 44b7c8ce59eb530dc61c6167b56f7842d41a54b9 Mon Sep 17 00:00:00 2001 From: support-gotham-ads Date: Fri, 25 Apr 2025 19:21:19 +0300 Subject: [PATCH] rename gothamads to intenze --- ...thamadsBidAdapter.js => intenzeBidAdapter.js} | 8 ++++---- ...thamadsBidAdapter.md => intenzeBidAdapter.md} | 12 ++++++------ ...Adapter_spec.js => intenzeBidAdapter_spec.js} | 16 ++++++++-------- 3 files changed, 18 insertions(+), 18 deletions(-) rename modules/{gothamadsBidAdapter.js => intenzeBidAdapter.js} (97%) rename modules/{gothamadsBidAdapter.md => intenzeBidAdapter.md} (91%) rename test/spec/modules/{gothamadsBidAdapter_spec.js => intenzeBidAdapter_spec.js} (96%) diff --git a/modules/gothamadsBidAdapter.js b/modules/intenzeBidAdapter.js similarity index 97% rename from modules/gothamadsBidAdapter.js rename to modules/intenzeBidAdapter.js index bcd382e507..31e4c69f86 100644 --- a/modules/gothamadsBidAdapter.js +++ b/modules/intenzeBidAdapter.js @@ -9,9 +9,9 @@ import { convertOrtbRequestToProprietaryNative } from '../src/native.js'; * @typedef {import('../src/adapters/bidderFactory.js').Bid} Bid */ -const BIDDER_CODE = 'gothamads'; +const BIDDER_CODE = 'intenze'; const ACCOUNTID_MACROS = '[account_id]'; -const URL_ENDPOINT = `https://us-e-node1.gothamads.com/bid?pass=${ACCOUNTID_MACROS}&integration=prebidjs`; +const URL_ENDPOINT = `https://lb-east.intenze.co/bid?pass=${ACCOUNTID_MACROS}&integration=prebidjs`; const NATIVE_ASSET_IDS = { 0: 'title', 2: 'icon', @@ -136,10 +136,10 @@ export const spec = { */ interpretResponse: (serverResponse) => { if (!serverResponse || !serverResponse.body) return []; - let GothamAdsResponse = serverResponse.body; + let responses = serverResponse.body; let bids = []; - for (let response of GothamAdsResponse) { + for (let response of responses) { let mediaType = response.seatbid[0].bid[0].ext && response.seatbid[0].bid[0].ext.mediaType ? response.seatbid[0].bid[0].ext.mediaType : BANNER; let bid = { diff --git a/modules/gothamadsBidAdapter.md b/modules/intenzeBidAdapter.md similarity index 91% rename from modules/gothamadsBidAdapter.md rename to modules/intenzeBidAdapter.md index 3105dff6c6..ee085b2c89 100644 --- a/modules/gothamadsBidAdapter.md +++ b/modules/intenzeBidAdapter.md @@ -1,14 +1,14 @@ # Overview ``` -Module Name: GothamAds SSP Bidder Adapter +Module Name: Intenze SSP Bidder Adapter Module Type: Bidder Adapter -Maintainer: support@gothamads.com +Maintainer: connect@intenze.co ``` # Description -Module that connects to GothamAds SSP demand sources +Module that connects to Intenze SSP demand sources # Test Parameters ``` @@ -20,7 +20,7 @@ Module that connects to GothamAds SSP demand sources } }, bids: [{ - bidder: 'gothamads', + bidder: 'intenze', params: { placementId: 'hash', accountId: 'accountId' @@ -60,7 +60,7 @@ Module that connects to GothamAds SSP demand sources }, bids: [ { - bidder: 'gothamads', + bidder: 'intenze', params: { placementId: 'hash', accountId: 'accountId' @@ -92,7 +92,7 @@ Module that connects to GothamAds SSP demand sources } }, bids: [ { - bidder: 'gothamads', + bidder: 'intenze', params: { placementId: 'hash', accountId: 'accountId' diff --git a/test/spec/modules/gothamadsBidAdapter_spec.js b/test/spec/modules/intenzeBidAdapter_spec.js similarity index 96% rename from test/spec/modules/gothamadsBidAdapter_spec.js rename to test/spec/modules/intenzeBidAdapter_spec.js index f0a3ea253f..95e32c49b2 100644 --- a/test/spec/modules/gothamadsBidAdapter_spec.js +++ b/test/spec/modules/intenzeBidAdapter_spec.js @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { spec } from 'modules/gothamadsBidAdapter.js'; +import { spec } from 'modules/intenzeBidAdapter'; import { config } from 'src/config.js'; const NATIVE_BID_REQUEST = { @@ -32,7 +32,7 @@ const NATIVE_BID_REQUEST = { } } }, - bidder: 'gothamads', + bidder: 'intenze', params: { placementId: 'hash', accountId: 'accountId' @@ -51,7 +51,7 @@ const BANNER_BID_REQUEST = { ] } }, - bidder: 'gothamads', + bidder: 'intenze', params: { placementId: 'hash', accountId: 'accountId' @@ -96,7 +96,7 @@ const VIDEO_BID_REQUEST = { } }, - bidder: 'gothamads', + bidder: 'intenze', params: { placementId: 'hash', accountId: 'accountId' @@ -189,7 +189,7 @@ const NATIVE_BID_RESPONSE = { }], }; -describe('GothamAdsAdapter', function () { +describe('IntenzeAdapter', function () { describe('with COPPA', function () { beforeEach(function () { sinon.stub(config, 'getConfig') @@ -235,7 +235,7 @@ describe('GothamAdsAdapter', function () { }); it('Returns valid URL', function () { - expect(request.url).to.equal('https://us-e-node1.gothamads.com/bid?pass=accountId&integration=prebidjs'); + expect(request.url).to.equal('https://lb-east.intenze.co/bid?pass=accountId&integration=prebidjs'); }); it('Returns empty data if no valid requests are passed', function () { @@ -265,7 +265,7 @@ describe('GothamAdsAdapter', function () { }); it('Returns valid URL', function () { - expect(request.url).to.equal('https://us-e-node1.gothamads.com/bid?pass=accountId&integration=prebidjs'); + expect(request.url).to.equal('https://lb-east.intenze.co/bid?pass=accountId&integration=prebidjs'); }); }); @@ -284,7 +284,7 @@ describe('GothamAdsAdapter', function () { }); it('Returns valid URL', function () { - expect(request.url).to.equal('https://us-e-node1.gothamads.com/bid?pass=accountId&integration=prebidjs'); + expect(request.url).to.equal('https://lb-east.intenze.co/bid?pass=accountId&integration=prebidjs'); }); });