-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathevent.go
59 lines (52 loc) · 1.51 KB
/
event.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
package adcom1
import "encoding/json"
// Event object specifies a type of event that the advertiser or buying platform wants to track along with the information required to do so.
type Event struct {
// Attribute:
// type
// Type:
// integer; required
// Definition:
// Type of event to track.
// Refer to List: Event Types.
Type EventType `json:"type"`
// Attribute:
// method
// Type:
// integer; required
// Definition:
// Method of tracking requested.
// Refer to List: Event Tracking Methods.
Method EventTrackingMethod `json:"method"`
// Attribute:
// api
// Type:
// integer array
// Definition:
// The APIs being used by the tracker; only relevant when the tracking method is JavaScript.
// Refer to List: API Frameworks.
API []APIFramework `json:"api,omitempty"`
// Attribute:
// url
// Type:
// string; required *
// Definition:
// The URL of the tracking pixel or JavaScript tag, respectively.
// * Required for Image-Pixel or JavaScript methods.
URL string `json:"url,omitempty"`
// Attribute:
// cdata
// Type:
// object (Map)
// Definition:
// An array of key-value pairs to support vendor-specific data required for custom tracking.
// For example, the account number of a buyer with a tracking company might be represented as: {"acct": "123"}.
CData map[string]string `json:"cdata,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}