forked from mxmCherry/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.go
69 lines (62 loc) · 1.75 KB
/
video.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package request
import (
"encoding/json"
"github.com/mxmCherry/openrtb/native"
)
// 4.5 Video Object
//
// The video object to be used for all video elements supported in the Native Ad.
// This corresponds to the Video object of OpenRTB.
// Exchange implementers can impose their own specific restrictions.
// Here are the required attributes of the Video Object.
// For optional attributes please refer to OpenRTB.
type Video struct {
// Field:
// mimes
// Scope:
// required
// Type:
// array of string
// Description:
// Content MIME types supported.
// Popular MIME types include,but are not limited to “video/x-mswmv” for Windows Media, and “video/x-flv” for Flash Video, or “video/mp4”.
// Note that native frequently does not support flash.
MIMEs []string `json:"mimes"`
// Field:
// minduration
// Scope:
// required
// Type:
// integer
// Description:
// Minimum video ad duration in seconds.
MinDuration int64 `json:"minduration"`
// Field:
// maxduration
// Scope:
// required
// Type:
// integer
// Description:
// Maximum video ad duration in seconds.
MaxDuration int64 `json:"maxduration"`
// Field:
// protocols
// Scope:
// required
// Type:
// array of integers
// Description:
// An array of video protocols the publisher can accept in the bid response.
// See OpenRTB Table ‘Video Bid Response Protocols’ for a list of possible values.
Protocols []native.Protocol `json:"protocols"`
// Field:
// ext
// Scope:
// optional
// Type:
// object
// Description:
// This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification
Ext json.RawMessage `json:"ext,omitempty"`
}