Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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 = {
Expand Down
12 changes: 6 additions & 6 deletions modules/gothamadsBidAdapter.md → modules/intenzeBidAdapter.md
Original file line number Diff line number Diff line change
@@ -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
```
Expand All @@ -20,7 +20,7 @@ Module that connects to GothamAds SSP demand sources
}
},
bids: [{
bidder: 'gothamads',
bidder: 'intenze',
params: {
placementId: 'hash',
accountId: 'accountId'
Expand Down Expand Up @@ -60,7 +60,7 @@ Module that connects to GothamAds SSP demand sources

},
bids: [ {
bidder: 'gothamads',
bidder: 'intenze',
params: {
placementId: 'hash',
accountId: 'accountId'
Expand Down Expand Up @@ -92,7 +92,7 @@ Module that connects to GothamAds SSP demand sources
} },
bids: [
{
bidder: 'gothamads',
bidder: 'intenze',
params: {
placementId: 'hash',
accountId: 'accountId'
Expand Down
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down Expand Up @@ -32,7 +32,7 @@ const NATIVE_BID_REQUEST = {
}
}
},
bidder: 'gothamads',
bidder: 'intenze',
params: {
placementId: 'hash',
accountId: 'accountId'
Expand All @@ -51,7 +51,7 @@ const BANNER_BID_REQUEST = {
]
}
},
bidder: 'gothamads',
bidder: 'intenze',
params: {
placementId: 'hash',
accountId: 'accountId'
Expand Down Expand Up @@ -96,7 +96,7 @@ const VIDEO_BID_REQUEST = {
}
},

bidder: 'gothamads',
bidder: 'intenze',
params: {
placementId: 'hash',
accountId: 'accountId'
Expand Down Expand Up @@ -189,7 +189,7 @@ const NATIVE_BID_RESPONSE = {
}],
};

describe('GothamAdsAdapter', function () {
describe('IntenzeAdapter', function () {
describe('with COPPA', function () {
beforeEach(function () {
sinon.stub(config, 'getConfig')
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -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');
});
});

Expand All @@ -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');
});
});

Expand Down
Loading