Skip to content

Commit

Permalink
DSPx Bid Adapter: add ortb2 content, topics support
Browse files Browse the repository at this point in the history
  • Loading branch information
zav1517 committed Jul 8, 2024
1 parent e112cef commit 7cb6490
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/spec/modules/dspxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { config } from 'src/config.js';
import { spec } from 'modules/dspxBidAdapter.js';
import { newBidder } from 'src/adapters/bidderFactory.js';
import { deepClone } from '../../../src/utils';
import {BANNER} from "../../../src/mediaTypes";
import {BANNER} from '../../../src/mediaTypes';

const ENDPOINT_URL = 'https://buyer.dspx.tv/request/';
const ENDPOINT_URL_DEV = 'https://dcbuyer.dspx.tv/request/';
Expand Down Expand Up @@ -36,8 +36,8 @@ describe('dspxAdapter', function () {

it('should return false when required params are not passed', function () {
const invalidBid = {
bidId: "30b31c1838de1e",
bidder: "dspx",
bidId: '30b31c1838de1e',
bidder: 'dspx',
mediaTypes: {
[BANNER]: {
sizes: [[300, 250]]
Expand Down Expand Up @@ -94,7 +94,7 @@ describe('dspxAdapter', function () {
}, {
'id': 'pubid2-123'
}]
},{
}, {
'source': 'puburl.com',
'uids': [{
'id': 'pubid1',
Expand Down Expand Up @@ -438,7 +438,7 @@ describe('dspxAdapter', function () {
'adUnitCode': 'testDiv1',
};

it('does pass segtax, segclass, segments for google topics data', () => {
it('does pass segtax, segclass, segments for google topics data', () => {
const GOOGLE_TOPICS_DATA = {
ortb2: {
user: {
Expand Down Expand Up @@ -502,7 +502,6 @@ describe('dspxAdapter', function () {
});
});


describe('interpretResponse', function () {
let serverResponse = {
'body': {
Expand Down

0 comments on commit 7cb6490

Please sign in to comment.