This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
audit.go
57 lines (50 loc) · 1.84 KB
/
audit.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"
// Audit objects represents the outcome of some form of review of the ad.
// This is typical, for example, when scanning for malware or otherwise performing ad quality reviews.
type Audit struct {
// Attribute:
// status
// Type:
// integer
// Definition:
// The audit status of the ad.
// Refer to List: Audit Status Codes.
Status AuditStatus `json:"status,omitempty"`
// Attribute:
// feedback
// Type:
// string array
// Definition:
// One or more human-readable explanations as to reasons for rejection or any changes to fields for ad quality reasons (e.g., adomain, cat, attr, etc.).
Feedback []string `json:"feedback,omitempty"`
// Attribute:
// init
// Type:
// integer
// Definition:
// Timestamp of the original instantiation of this object in Unix format (i.e., milliseconds since the epoch).
Init int64 `json:"init,omitempty"`
// Attribute:
// lastmod
// Type:
// integer
// Definition:
// Timestamp of most recent modification to this object in Unix format (i.e., milliseconds since the epoch).
LastMod int64 `json:"lastmod,omitempty"`
// Attribute:
// corr
// Type:
// object
// Definition:
// Correction object wherein the auditor can specify changes to attributes of the Ad object or its children they believe to be proper.
// For example, if the original Ad indicated a category of “IAB3”, but the auditor deems the correct category to be “IAB13”, then corr could include a sparse Ad object including just the cat array indicating “IAB13”.
Corr *Ad `json:"corr,omitempty"` // TODO: probably, this won't work due to "omitempty" stuff. Probably, will need an all-pointer Ad equivalent.
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}