Skip to content
Merged
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
113 changes: 113 additions & 0 deletions dev-docs/bidders/mtc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
layout: bidder
title: Media Tradecraft
description: Prebid Media Tradecraft Bidder Adapter
pbjs: true
pbs: false
biddercode: mtc
gvl_id: none
tcfeu_supported: true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tcfeu_supported: true
tcfeu_supported: false

if you have no GVL ID you can't claim tcfeu_support. I set those to false in #6549

usp_supported: true
gpp_sids: tcfeu
schain_supported: true
dchain_supported: false
floors_supported: true
userIds: all
media_types: banner, video, native
safeframes_ok: true
deals_supported: true
sidebarType: 1
fpd_supported: true
multiformat_supported: will-bid-on-any

---

## Bid Params

{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example | Type |
|---------------|----------|----------------------------|-------------------------------------- |-----------|
| `tagId` | required*| Media Tradecraft tag ID | `"testnexx"` | `string` |
| `placement` | required*| Media Tradecraft placement | `"test.com_header_ad"` | `string` |

*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.
The `tagId` and `placement` are **mutually exclusive** but at least one is required. If you pass both, `tagId` takes precedence.

## Bidder Config

You can allow writing in localStorage `pbjs.bidderSettings` for the bidder `mtc`

{% include dev-docs/storageAllowed.md %}

```javascript
pbjs.bidderSettings = {
mtc: {
storageAllowed : true
}
}
```

## First Party Data

Publishers should use the `ortb2` method of setting [First Party Data](https://docs.prebid.org/features/firstPartyData.html).

## Test Parameters

```javascript
var adUnits = [
// Banner adUnit
{
code: 'banner-div',
mediaTypes: {
banner: {
sizes: [[300, 250], [300,600]]
}
},
bids: [{
bidder: 'mtc',
params: {
tagId: 'testnexx'
}
}]
},
// Video adUnit
{
code: 'video1',
mediaTypes: {
video: {
playerSize: [640, 480],
context: 'instream'
}
},
bids: [{
bidder: 'mtc',
params: {
tagId: 'testnexx'
}
}]
},
// Native adUnit
{
code: 'native1',
mediaTypes: {
native: {
title: {
required: true
},
image: {
required: true
},
sponsoredBy: {
required: true
}
}
},
bids: [{
bidder: 'mtc',
params: {
tagId: 'testnexx'
}
}]
}
];
```
Loading