Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dichange Bid Adapter #12215

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions modules/dichangeBidAdapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {
buildRequests,
getUserSyncs,
interpretResponse,
isBidRequestValid
} from '../libraries/xeUtils/bidderUtils.js';

const BIDDER_CODE = 'dichange';
const ENDPOINT = 'https://prebid.di-change.live';

export const spec = {
code: BIDDER_CODE,
aliases: ['dichange'],
supportedMediaTypes: [BANNER, VIDEO],
isBidRequestValid,
buildRequests: (validBidRequests, bidderRequest) => buildRequests(validBidRequests, bidderRequest, ENDPOINT),
interpretResponse,
getUserSyncs
}

registerBidder(spec);
50 changes: 50 additions & 0 deletions modules/dichangeBidAdapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Overview

```
Module Name: Dichange Bidder Adapter
Module Type: Dichange Bidder Adapter
Maintainer: [email protected]
```

# Test Parameters
```
var adUnits = [
{
code: 'test-banner',
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
bids: [
{
bidder: 'dichange',
params: {
env: 'dichange',
pid: '40',
ext: {}
}
}
]
},
{
code: 'test-video',
sizes: [ [ 640, 480 ] ],
mediaTypes: {
video: {
playerSize: [640, 480],
context: 'instream',
skipppable: true
}
},
bids: [{
bidder: 'dichange',
params: {
env: 'dichange',
pid: '40',
ext: {}
}
}]
}
];
```
Loading