forked from PubMatic-OpenWrap/prebid-openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
producer.go
69 lines (60 loc) · 1.71 KB
/
producer.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 openrtb2
import (
"encoding/json"
"github.com/prebid/openrtb/v17/adcom1"
)
// 3.2.17 Object: Producer
//
// This object defines the producer of the content in which the ad will be shown.
// This is particularly useful when the content is syndicated and may be distributed through different publishers and thus when the producer and publisher are not necessarily the same entity.
type Producer struct {
// Attribute:
// id
// Type:
// string
// Description:
// Content producer or originator ID. Useful if content is
// syndicated and may be posted on a site using embed tags.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Description:
// Content producer or originator name (e.g., “Warner Bros”).
Name string `json:"name,omitempty"`
// Attribute:
// cattax
// Type:
// integer
// Description:
// The taxonomy in use. Refer to the AdCOM 1.0 list List: Category
// Taxonomies for values.
CatTax adcom1.CategoryTaxonomy `json:"cattax,omitempty"`
// Attribute:
// cat
// Type:
// string array
// Description:
// Array of IAB content categories that describe the content
// producer.
// The taxonomy to be used is defined by the cattax field. If no
// cattax field is supplied IAB Content Category Taxonomy 1.0 is
// assumed.
Cat []string `json:"cat,omitempty"`
// Attribute:
// domain
// Type:
// string
// Description:
// Highest level domain of the content producer (e.g.,
// “producer.com”).
Domain string `json:"domain,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}