Skip to content

Commit ee76707

Browse files
Merge pull request #58 from vishalkumarAdpushup/hotfix/addedProgrammaticXBidAdapter
Added programmaticX bid adapter
2 parents a97b365 + eacec67 commit ee76707

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

modules/programmaticXBidAdapter.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { registerBidder } from '../src/adapters/bidderFactory.js';
2+
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
3+
import {
4+
isBidRequestValid,
5+
buildRequests,
6+
interpretResponse,
7+
getUserSyncs
8+
} from '../libraries/teqblazeUtils/bidderUtils.js';
9+
10+
const BIDDER_CODE = 'programmaticX';
11+
const GVLID = 1344;
12+
const AD_URL = 'https://us-east.progrtb.com/pbjs';
13+
const SYNC_URL = 'https://sync.progrtb.com';
14+
15+
export const spec = {
16+
code: BIDDER_CODE,
17+
gvlid: GVLID,
18+
supportedMediaTypes: [BANNER, VIDEO, NATIVE],
19+
20+
isBidRequestValid: isBidRequestValid(),
21+
buildRequests: buildRequests(AD_URL),
22+
interpretResponse,
23+
getUserSyncs: getUserSyncs(SYNC_URL)
24+
};
25+
26+
registerBidder(spec);

modules/programmaticXBidAdapter.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Overview
2+
3+
**Module Name:** ProgrammaticX Bidder Adapter
4+
5+
**Module Type:** Bidder Adapter
6+
7+
**Maintainer:** pxteam@programmaticx.ai
8+
9+
# Description
10+
11+
Module that connects to ProgrammaticX's Open RTB demand sources.
12+
13+
# Test Parameters
14+
15+
```js
16+
var adUnits = [
17+
{
18+
code: 'test-ad',
19+
sizes: [[300, 250]],
20+
bids: [
21+
{
22+
bidder: 'programmaticX',
23+
params: {
24+
cId: '562524b21b1c1f08117fc7f9',
25+
pId: '59ac17c192832d0011283fe3',
26+
bidFloor: 0.0001,
27+
ext: {
28+
param1: 'loremipsum',
29+
param2: 'dolorsitamet'
30+
},
31+
placementId: 'testBanner'
32+
}
33+
}
34+
]
35+
}
36+
];
37+
```

0 commit comments

Comments
 (0)