From e397325054d751ccd6e29547d7fad4ae7595a4dd Mon Sep 17 00:00:00 2001 From: BrightMountainMedia <69471268+BrightMountainMediaInc@users.noreply.github.com> Date: Tue, 13 Apr 2021 17:19:05 +0530 Subject: [PATCH] Bright Mountain Media Bid Adapter: change bidder code to bmtm; alias old name (#6574) --- modules/brightMountainMediaBidAdapter.js | 3 ++- modules/brightMountainMediaBidAdapter.md | 2 +- test/spec/modules/brightMountainMediaBidAdapter_spec.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/brightMountainMediaBidAdapter.js b/modules/brightMountainMediaBidAdapter.js index aa1076e798a..6434d8b2b81 100644 --- a/modules/brightMountainMediaBidAdapter.js +++ b/modules/brightMountainMediaBidAdapter.js @@ -2,11 +2,12 @@ import { registerBidder } from '../src/adapters/bidderFactory.js'; import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js'; import * as utils from '../src/utils.js'; -const BIDDER_CODE = 'brightmountainmedia'; +const BIDDER_CODE = 'bmtm'; const AD_URL = 'https://console.brightmountainmedia.com/hb/bid'; export const spec = { code: BIDDER_CODE, + aliases: ['brightmountainmedia'], supportedMediaTypes: [BANNER, VIDEO, NATIVE], isBidRequestValid: (bid) => { diff --git a/modules/brightMountainMediaBidAdapter.md b/modules/brightMountainMediaBidAdapter.md index a9900b5264d..8dba3a4e6e5 100644 --- a/modules/brightMountainMediaBidAdapter.md +++ b/modules/brightMountainMediaBidAdapter.md @@ -23,7 +23,7 @@ Bright Mountain Media bid adapter currently supports Banner. }, bids: [ { - bidder: 'brightmountainmedia', + bidder: 'bmtm', params: { placement_id: '5f21784949be82079d08c', traffic: 'banner' diff --git a/test/spec/modules/brightMountainMediaBidAdapter_spec.js b/test/spec/modules/brightMountainMediaBidAdapter_spec.js index f6312253722..7511b5bf239 100644 --- a/test/spec/modules/brightMountainMediaBidAdapter_spec.js +++ b/test/spec/modules/brightMountainMediaBidAdapter_spec.js @@ -4,7 +4,7 @@ import { spec } from '../../../modules/brightMountainMediaBidAdapter.js'; describe('brightMountainMediaBidAdapter_spec', function () { let bid = { bidId: '2dd581a2b6281d', - bidder: 'brightmountainmedia', + bidder: 'bmtm', bidderRequestId: '145e1d6a7837c9', params: { placement_id: '123qwerty' @@ -19,7 +19,7 @@ describe('brightMountainMediaBidAdapter_spec', function () { transactionId: '3bb2f6da-87a6-4029-aeb0-bfe951372e62', }; let bidderRequest = { - bidderCode: 'brightmountainmedia', + bidderCode: 'bmtm', auctionId: 'fffffff-ffff-ffff-ffff-ffffffffffff', bidderRequestId: 'ffffffffffffff', start: 1472239426002,