Skip to content

Commit

Permalink
Digital Matter Bid Adapter: initial release (prebid#12114)
Browse files Browse the repository at this point in the history
* update anyclip adapter

* remove coppa

* fix jsdoc warnings

* create bidderUtils

* delete duplicate code

* refactor

* add digitalMatter Bid Adapter

---------

Co-authored-by: Chucky-choo <[email protected]>
  • Loading branch information
Chucky-choo and Chucky-choo authored Aug 12, 2024
1 parent 50d30c4 commit 549e222
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modules/digitalMatterBidAdapter.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 = 'digitalmatter';
const ENDPOINT = 'https://prebid.di-change.live';

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

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

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

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

0 comments on commit 549e222

Please sign in to comment.