-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Digital Matter Bid Adapter: initial release (#12114)
* 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
1 parent
50d30c4
commit 549e222
Showing
3 changed files
with
531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} | ||
} | ||
}] | ||
} | ||
]; | ||
``` |
Oops, something went wrong.