Skip to content

Commit

Permalink
rename buyer to dspx (prebid#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
avj83 authored and Isaac Dettman committed Nov 12, 2018
1 parent ef3233f commit 2aaab93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions modules/buyerBidAdapter.js → modules/dspxBidAdapter.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import * as utils from 'src/utils';
import {config} from 'src/config';
import {registerBidder} from 'src/adapters/bidderFactory';

const BIDDER_CODE = 'buyer';
const BIDDER_CODE = 'dspx';
const ENDPOINT_URL = 'https://buyer.dspx.tv/request/';

export const spec = {
code: BIDDER_CODE,
aliases: ['buyer'],
aliases: ['dspx'],
isBidRequestValid: function(bid) {
return !!(bid.params.placement);
},
Expand Down
14 changes: 7 additions & 7 deletions modules/buyerBidAdapter.md → modules/dspxBidAdapter.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Overview

```
Module Name: Buyer Bidder Adapter
Module Name: Dspx Bidder Adapter
Module Type: Bidder Adapter
Maintainer: avj83@list.ru
Maintainer: prebid@dspx.tv
```

# Description

Buyer adapter for Prebid.js 1.0
Dspx adapter for Prebid.js 1.0

# Test Parameters
```
Expand All @@ -25,9 +25,9 @@ Buyer adapter for Prebid.js 1.0
},
bids: [
{
bidder: "buyer",
bidder: "dspx",
params: {
placement: '12345',
placement: '101',
pfilter: {
floorprice: 1000000, // EUR * 1,000,000
private_auction: 1, // Is private auction? 0 - no, 1 - yes
Expand Down Expand Up @@ -60,9 +60,9 @@ Buyer adapter for Prebid.js 1.0
},
bids: [
{
bidder: "buyer",
bidder: "dspx",
params: {
placement: 67890
placement: 101
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/buyerBidAdapter_spec.js → test/spec/modules/dspxBidAdapter_spec.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { expect } from 'chai';
import { spec } from 'modules/buyerBidAdapter';
import { spec } from 'modules/dspxBidAdapter';
import { newBidder } from 'src/adapters/bidderFactory';

const ENDPOINT_URL = 'https://buyer.dspx.tv/request/';

describe('buyerAdapter', function () {
describe('dspxAdapter', function () {
const adapter = newBidder(spec);

describe('isBidRequestValid', function () {
let bid = {
'bidder': 'buyer',
'bidder': 'dspx',
'params': {
'placement': '6682',
'pfilter': {
Expand Down Expand Up @@ -42,7 +42,7 @@ describe('buyerAdapter', function () {

describe('buildRequests', function () {
let bidRequests = [{
'bidder': 'buyer',
'bidder': 'dspx',
'params': {
'placement': '6682',
'pfilter': {
Expand Down

0 comments on commit 2aaab93

Please sign in to comment.