Skip to content

Commit 9f8cac6

Browse files
vlaktionvlad
and
vlad
authored
Trafficgate Bid Adapter: move to OpenRTB Converter (#4606)
* Trafficgate Bid Adapter: move to OpenRTB Converter * Trafficgate Bid Adapter: move to OpenRTB Converter --------- Co-authored-by: vlad <[email protected]>
1 parent 2b33eb8 commit 9f8cac6

File tree

1 file changed

+87
-7
lines changed

1 file changed

+87
-7
lines changed

dev-docs/bidders/trafficgate.md

Lines changed: 87 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ description: Prebid TrafficGate Bidder Adaptor
55
pbs: true
66
pbjs: true
77
biddercode: trafficgate
8-
media_types: banner, video, native, audio
8+
media_types: banner, video
99
gdpr_supported: true
1010
pbs_app_supported: true
1111
multiformat_supported: will-bid-on-any
1212
usp_supported: true
13-
schain_supported: false
13+
schain_supported: true
1414
coppa_supported: true
1515
dchain_supported: false
1616
deals_supported: true
1717
floors_supported: false
1818
fpd_supported: false
1919
prebid_member: true
2020
sidebarType: 1
21+
ortb_blocking_supported: true
22+
safeframes_ok: true
2123
---
2224

2325
### Note
@@ -27,8 +29,86 @@ The TrafficGate Bidding adapter requires setup before beginning. Please contact
2729
### Bid Params
2830

2931
{: .table .table-bordered .table-striped }
30-
| Name | Scope | Description | Example | Type |
31-
|---------------|----------|--------------|-------------|----------|
32-
| `placementId` | required | Placement ID | `'12345'` | `string` |
33-
|---------------|----------|--------------|-------------|----------|
34-
| `host` | required | Host | `'example'` | `string` |
32+
| Name | Scope | Description | Example | Type |
33+
|---------------|----------|------------------|-------------|----------|
34+
| `placementId` | required | Placement ID | `'12345'` | `string` |
35+
| `host` | required | Host | `'example'` | `string` |
36+
| `customFloor` | optional | Custom Bid Floor | `2.55` | `number` |
37+
38+
39+
### AdUnit Format for Banner
40+
```javascript
41+
var adUnits = [{
42+
code: 'test-banner-div ',
43+
mediaTypes: {
44+
banner: {
45+
sizes: [[300, 250]],
46+
}
47+
},
48+
bids: [{
49+
bidder: 'trafficgate',
50+
params: {
51+
placementId: '16',
52+
host: 'example'
53+
}
54+
}]
55+
}];
56+
```
57+
58+
#### Video
59+
60+
#### mediaTypes.video
61+
62+
The following video parameters are supported here so publishers may fully declare their video inventory:
63+
64+
{: .table .table-bordered .table-striped }
65+
| Name | Scope | Description | Example | Type |
66+
|----------------|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|-----------|
67+
| context | required | instream or outstream |"outstream" | string |
68+
| playerSize| required | width, height of the player in pixels | [640,360] - will be translated to w and h in bid request | array<integers> |
69+
| mimes | required | List of content MIME types supported by the player (see openRTB v2.5 for options) | ["video/mp4"]| array<string>|
70+
| protocols | recommended | Supported video bid response protocol values <br />1: VAST 1.0 <br />2: VAST 2.0 <br />3: VAST 3.0 <br />4: VAST 1.0 Wrapper <br />5: VAST 2.0 Wrapper <br />6: VAST 3.0 Wrapper <br />7: VAST 4.0 <br />8: VAST 4.0 Wrapper | [2,3,5,6] | array<integers>|
71+
| api | recommended | Supported API framework values: <br />1: VPAID 1.0 <br />2: VPAID 2.0 <br />3: MRAID-1 <br />4: ORMMA <br />5: MRAID-2 | [2] | array<integers> |
72+
| linearity | recommended | OpenRTB2 linearity. 1: linear (in-stream ad), 2: non-linear (overlay ad) | 1 | integer |
73+
| maxduration | recommended | Maximum video ad duration in seconds. | 30 | integer |
74+
| minduration | recommended | Minimum video ad duration in seconds | 6 | integer |
75+
| playbackmethod | recommended | Playback methods that may be in use. Only one method is typically used in practice. (see openRTB v2.5 section 5.10 for options)| [2]| array<integers> |
76+
| minbitrate | optional | Minimum bit rate in Kbps. | 300 | integer |
77+
| maxbitrate | optional | Maximum bit rate in Kbps. | 9600 | integer |
78+
| battr | optional | Blocked creative attributes | [13,14] | array<integers>|
79+
| startdelay | recommended | Indicates the start delay in seconds for pre-roll, mid-roll, or post-roll ad placements.<br /> >0: Mid-Roll (value indicates start delay in second)<br /> 0: Pre-Roll<br />-1: Generic Mid-Roll<br />-2: Generic Post-Roll | 0 | integer |
80+
| placement | recommended | Placement type for the impression. (see openRTB v2.5 section 5.9 for options) | 1 | integer |
81+
| | | | | |
82+
83+
84+
### AdUnit Format for Video
85+
```javascript
86+
var videoAdUnits = [{
87+
code: 'test-div-video',
88+
mediaTypes: {
89+
video: {
90+
playerSize: [640, 480], // required
91+
context: 'instream', // required
92+
mimes: ['video/mp4','video/x-flv'], // required
93+
minduration: 5, // optional
94+
maxduration: 30, // optional
95+
startdelay: 5, // optional
96+
playbackmethod: [1,3], // optional
97+
api: [ 1, 2 ], // optional
98+
protocols: [ 2, 3 ], // optional
99+
battr: [ 13, 14 ], // optional
100+
linearity: 1, // optional
101+
placement: 2, // optional
102+
minbitrate: 10, // optional
103+
maxbitrate: 10 // optional
104+
}
105+
},
106+
bids: [{
107+
bidder: 'trafficgate',
108+
params: {
109+
placementId: '10',
110+
host: 'example'
111+
}
112+
}]
113+
}]
114+
```

0 commit comments

Comments
 (0)