Skip to content

Commit

Permalink
Change bidderCode for DAN Marketplace Bid Adapter (prebid#2183)
Browse files Browse the repository at this point in the history
* Make Bid Adapter for Dentsu Aegis Network Marketplace

* Update DAN_Marketplace adapter

* Rename danmarketplaceBidAdapter into danmarketBidAdapter
  • Loading branch information
danmarketplace authored and dluxemburg committed Jul 17, 2018
1 parent f265c51 commit 4856ee3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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 () {
Expand All @@ -13,7 +13,7 @@ describe('DAN_Marketplace Adapter', function () {

describe('isBidRequestValid', () => {
let bid = {
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '4'
},
Expand Down Expand Up @@ -41,7 +41,7 @@ describe('DAN_Marketplace Adapter', function () {
describe('buildRequests', () => {
let bidRequests = [
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '5'
},
Expand All @@ -52,7 +52,7 @@ describe('DAN_Marketplace Adapter', function () {
'auctionId': '1d1a030790a475',
},
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '5'
},
Expand All @@ -63,7 +63,7 @@ describe('DAN_Marketplace Adapter', function () {
'auctionId': '1d1a030790a475',
},
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '6'
},
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('DAN_Marketplace Adapter', function () {
it('should get correct bid response', () => {
const bidRequests = [
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '4'
},
Expand Down Expand Up @@ -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'
},
Expand All @@ -175,7 +175,7 @@ describe('DAN_Marketplace Adapter', function () {
'auctionId': '1fa09aee5c8c99',
},
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '5'
},
Expand All @@ -186,7 +186,7 @@ describe('DAN_Marketplace Adapter', function () {
'auctionId': '1fa09aee5c8c99',
},
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '4'
},
Expand Down Expand Up @@ -244,7 +244,7 @@ describe('DAN_Marketplace Adapter', function () {
it('handles wrong and nobid responses', () => {
const bidRequests = [
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '6'
},
Expand All @@ -255,7 +255,7 @@ describe('DAN_Marketplace Adapter', function () {
'auctionId': '1fa09aee5c84d34',
},
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '7'
},
Expand All @@ -266,7 +266,7 @@ describe('DAN_Marketplace Adapter', function () {
'auctionId': '1fa09aee5c84d34',
},
{
'bidder': 'danmarketplace',
'bidder': 'danmarket',
'params': {
'uid': '8'
},
Expand Down

0 comments on commit 4856ee3

Please sign in to comment.