diff --git a/modules/danmarketplaceBidAdapter.js b/modules/danmarketBidAdapter.js similarity index 97% rename from modules/danmarketplaceBidAdapter.js rename to modules/danmarketBidAdapter.js index 24b3682042e..619bd893ea2 100644 --- a/modules/danmarketplaceBidAdapter.js +++ b/modules/danmarketBidAdapter.js @@ -1,6 +1,6 @@ import * as utils from 'src/utils'; import {registerBidder} from 'src/adapters/bidderFactory'; -const BIDDER_CODE = 'danmarketplace'; +const BIDDER_CODE = 'danmarket'; const ENDPOINT_URL = '//ads.danmarketplace.com/hb'; const TIME_TO_LIVE = 360; const ADAPTER_SYNC_URL = '//ads.danmarketplace.com/push_sync'; @@ -24,7 +24,7 @@ const LOG_ERROR_MESS = { export const spec = { code: BIDDER_CODE, - aliases: ['DANMarketplace', 'DAN_Marketplace'], + aliases: ['DANMarketplace', 'DAN_Marketplace', 'danmarketplace'], isBidRequestValid: function(bid) { return !!bid.params.uid; diff --git a/modules/danmarketplaceBidAdapter.md b/modules/danmarketBidAdapter.md similarity index 90% rename from modules/danmarketplaceBidAdapter.md rename to modules/danmarketBidAdapter.md index 263385949bd..8ddc83d2cf6 100755 --- a/modules/danmarketplaceBidAdapter.md +++ b/modules/danmarketBidAdapter.md @@ -16,7 +16,7 @@ Module that connects to DAN Marketplace demand source to fetch bids. sizes: [[300, 250]], bids: [ { - bidder: "danmarketplace", + bidder: "danmarket", params: { uid: '4', priceType: 'gross' // by default is 'net' @@ -28,7 +28,7 @@ Module that connects to DAN Marketplace demand source to fetch bids. sizes: [[728, 90]], bids: [ { - bidder: "danmarketplace", + bidder: "danmarket", params: { uid: 5, priceType: 'gross' diff --git a/test/spec/modules/danmarketplaceBidAdapter_spec.js b/test/spec/modules/danmarketBidAdapter_spec.js similarity index 94% rename from test/spec/modules/danmarketplaceBidAdapter_spec.js rename to test/spec/modules/danmarketBidAdapter_spec.js index ee7f844ae98..d1b86d1bf53 100644 --- a/test/spec/modules/danmarketplaceBidAdapter_spec.js +++ b/test/spec/modules/danmarketBidAdapter_spec.js @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { spec } from 'modules/danmarketplaceBidAdapter'; +import { spec } from 'modules/danmarketBidAdapter'; import { newBidder } from 'src/adapters/bidderFactory'; describe('DAN_Marketplace Adapter', function () { @@ -13,7 +13,7 @@ describe('DAN_Marketplace Adapter', function () { describe('isBidRequestValid', () => { let bid = { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '4' }, @@ -41,7 +41,7 @@ describe('DAN_Marketplace Adapter', function () { describe('buildRequests', () => { let bidRequests = [ { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '5' }, @@ -52,7 +52,7 @@ describe('DAN_Marketplace Adapter', function () { 'auctionId': '1d1a030790a475', }, { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '5' }, @@ -63,7 +63,7 @@ describe('DAN_Marketplace Adapter', function () { 'auctionId': '1d1a030790a475', }, { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '6' }, @@ -130,7 +130,7 @@ describe('DAN_Marketplace Adapter', function () { it('should get correct bid response', () => { const bidRequests = [ { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '4' }, @@ -164,7 +164,7 @@ describe('DAN_Marketplace Adapter', function () { it('should get correct multi bid response', () => { const bidRequests = [ { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '4' }, @@ -175,7 +175,7 @@ describe('DAN_Marketplace Adapter', function () { 'auctionId': '1fa09aee5c8c99', }, { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '5' }, @@ -186,7 +186,7 @@ describe('DAN_Marketplace Adapter', function () { 'auctionId': '1fa09aee5c8c99', }, { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '4' }, @@ -244,7 +244,7 @@ describe('DAN_Marketplace Adapter', function () { it('handles wrong and nobid responses', () => { const bidRequests = [ { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '6' }, @@ -255,7 +255,7 @@ describe('DAN_Marketplace Adapter', function () { 'auctionId': '1fa09aee5c84d34', }, { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '7' }, @@ -266,7 +266,7 @@ describe('DAN_Marketplace Adapter', function () { 'auctionId': '1fa09aee5c84d34', }, { - 'bidder': 'danmarketplace', + 'bidder': 'danmarket', 'params': { 'uid': '8' },