-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathevent_spec.go
76 lines (67 loc) · 2.06 KB
/
event_spec.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
70
71
72
73
74
75
76
package adcom1
import "encoding/json"
// EventSpec object specifies a type of ad tracking event and which methods of tracking are available for it.
// This object may appear as an array for a given placement indicating various types of available tracking events.
type EventSpec struct {
// Attribute:
// type
// Type:
// integer; required
// Definition:
// Type of supported ad tracking event.
// Refer to List: Event Types.
Type EventType `json:"type,omitempty"`
// Attribute:
// method
// Type:
// integer array
// Definition:
// Array of supported event tracking methods for this event type.
// Refer to List: Event Tracking Methods.
Method []EventTrackingMethod `json:"method,omitempty"`
// Attribute:
// api
// Type:
// integer array
// Definition:
// Event tracking APIs available for use; only relevant for JavaScript method trackers.
// Refer to List: API Frameworks.
API []APIFramework `json:"api,omitempty"`
// Attribute:
// jstrk
// Type:
// string array
// Definition:
// Array of domains, top two levels only (e.g., “tracker.com”), that constitute a restriction list of JavaScript trackers.
// The sense of the restrictions is determined by wjs.
JSTrk []string `json:"jstrk,omitempty"`
// Attribute:
// wjs
// Type:
// integer; default 1
// Definition:
// Sense of the jstrk restriction list, where 0 = block list, 1 = whitelist.
WJS int8 `json:"wjs,omitempty"`
// Attribute:
// pxtrk
// Type:
// string array
// Definition:
// Array of domains, top two levels only (e.g., “tracker.com”), that constitute a restriction list of pixel image trackers.
// The sense of the restrictions is determined by wpx.
PxTrk []string `json:"pxtrk,omitempty"`
// Attribute:
// wpx
// Type:
// integer; default 1
// Definition:
// Sense of the pxtrk restriction list, where 0 = block list, 1 = whitelist.
WPx int8 `json:"wpx,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}