-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathrestrictions.go
57 lines (50 loc) · 1.49 KB
/
restrictions.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
package adcom1
import "encoding/json"
// Restrictions object allows lists of restrictions on ad responses to be specified including specific content categories, advertisers, ads pertaining to specific apps, or creative attributes.
type Restrictions struct {
// Attribute:
// bcat
// Type:
// string array
// Definition:
// Block list of content categories using IDs from the taxonomy indicated in cattax.
BCat []string `json:"bcat,omitempty"`
// Attribute:
// cattax
// Type:
// integer; default 2
// Definition:
// The taxonomy in use for the bcat attribute
// Refer to List: Category Taxonomies.
CatTax CategoryTaxonomy `json:"cattax,omitempty"`
// Attribute:
// badv
// Type:
// string array
// Definition:
// Block list of advertisers by their domains (e.g., “ford.com”).
BAdv []string `json:"badv,omitempty"`
// Attribute:
// bapp
// Type:
// string array
// Definition:
// Block list of apps for which ads are disallowed
// These should be bundle or package names (e.g., “com.foo.mygame”) and should NOT be app store IDs (e.g., not iTunes store IDs).
BApp []string `json:"bapp,omitempty"`
// Attribute:
// battr
// Type:
// integer array
// Definition:
// Block list of creative attributes
// Refer to List: Creative Attributes.
BAttr []CreativeAttribute `json:"battr,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}