Skip to content

Commit f982b0e

Browse files
gchicoyeGabriel Chicoye
andauthored
MTC Bid Adapter added (#6541)
* mtc added * lint fix --------- Co-authored-by: Gabriel Chicoye <gabriel@macbookrogab24g.lan>
1 parent 77bb4cf commit f982b0e

1 file changed

Lines changed: 113 additions & 0 deletions

File tree

dev-docs/bidders/mtc.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
layout: bidder
3+
title: Media Tradecraft
4+
description: Prebid Media Tradecraft Bidder Adapter
5+
pbjs: true
6+
pbs: false
7+
biddercode: mtc
8+
gvl_id: none
9+
tcfeu_supported: true
10+
usp_supported: true
11+
gpp_sids: tcfeu
12+
schain_supported: true
13+
dchain_supported: false
14+
floors_supported: true
15+
userIds: all
16+
media_types: banner, video, native
17+
safeframes_ok: true
18+
deals_supported: true
19+
sidebarType: 1
20+
fpd_supported: true
21+
multiformat_supported: will-bid-on-any
22+
23+
---
24+
25+
## Bid Params
26+
27+
{: .table .table-bordered .table-striped }
28+
| Name | Scope | Description | Example | Type |
29+
|---------------|----------|----------------------------|-------------------------------------- |-----------|
30+
| `tagId` | required*| Media Tradecraft tag ID | `"testnexx"` | `string` |
31+
| `placement` | required*| Media Tradecraft placement | `"test.com_header_ad"` | `string` |
32+
33+
*You *must* only include one ID field - either `tagId` or `placement`, not both. If you have questions on which parameter to use, please reach out to your Account Manager.
34+
The `tagId` and `placement` are **mutually exclusive** but at least one is required. If you pass both, `tagId` takes precedence.
35+
36+
## Bidder Config
37+
38+
You can allow writing in localStorage `pbjs.bidderSettings` for the bidder `mtc`
39+
40+
{% include dev-docs/storageAllowed.md %}
41+
42+
```javascript
43+
pbjs.bidderSettings = {
44+
mtc: {
45+
storageAllowed : true
46+
}
47+
}
48+
```
49+
50+
## First Party Data
51+
52+
Publishers should use the `ortb2` method of setting [First Party Data](https://docs.prebid.org/features/firstPartyData.html).
53+
54+
## Test Parameters
55+
56+
```javascript
57+
var adUnits = [
58+
// Banner adUnit
59+
{
60+
code: 'banner-div',
61+
mediaTypes: {
62+
banner: {
63+
sizes: [[300, 250], [300,600]]
64+
}
65+
},
66+
bids: [{
67+
bidder: 'mtc',
68+
params: {
69+
tagId: 'testnexx'
70+
}
71+
}]
72+
},
73+
// Video adUnit
74+
{
75+
code: 'video1',
76+
mediaTypes: {
77+
video: {
78+
playerSize: [640, 480],
79+
context: 'instream'
80+
}
81+
},
82+
bids: [{
83+
bidder: 'mtc',
84+
params: {
85+
tagId: 'testnexx'
86+
}
87+
}]
88+
},
89+
// Native adUnit
90+
{
91+
code: 'native1',
92+
mediaTypes: {
93+
native: {
94+
title: {
95+
required: true
96+
},
97+
image: {
98+
required: true
99+
},
100+
sponsoredBy: {
101+
required: true
102+
}
103+
}
104+
},
105+
bids: [{
106+
bidder: 'mtc',
107+
params: {
108+
tagId: 'testnexx'
109+
}
110+
}]
111+
}
112+
];
113+
```

0 commit comments

Comments
 (0)