-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.proto
152 lines (130 loc) · 2.6 KB
/
common.proto
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
syntax = "proto3";
package cakeproto;
message IdName {
int64 id = 1;
string name = 2;
}
message TimeWithZone {
int64 unix_seconds = 1;
string timezone_location = 2;
}
message Currency {
int64 id = 1;
string symbol = 2;
string name = 3;
string abbr = 4;
}
message PixelInfo {
string html = 1;
IdName hash_type = 2;
string postback_url = 3;
int64 postback_delay_ms = 4;
}
message Money {
bool is_percentage = 1;
double amount = 2;
string formatted_amount = 3;
}
message MoneyWithCurrency {
int64 currency_id = 1;
double amount = 2;
string formatted_amount = 3;
}
message MediaType {
int64 id = 1;
string name = 2;
int64 category_id = 3;
string category_name = 4;
}
message Country {
string code = 1;
string name = 2;
}
message Region {
string code = 1;
string name = 2;
}
message SuppressionList {
int64 id = 1;
string name = 2;
IdName type = 3;
bool md5_only = 4;
TimeWithZone date_created = 5;
TimeWithZone date_updated = 6;
string list_location = 7;
}
message Contact {
int64 id = 1;
IdName type = 2;
IdName role = 3;
// department omitted - cannot be set in UI
string first_name = 4;
// middle_name omitted - cannot be set in UI
string last_name = 5;
string email_address = 6;
string title = 7;
string phone_work = 8;
string phone_cell = 9;
string phone_fax = 10;
string im_service = 11;
string im_name = 12;
bool include_in_mass_emails = 13;
string notes = 14;
}
message Blacklist {
IdName advertiser = 1;
IdName offer = 2;
IdName affiliate = 3;
IdName sub_affiliate = 4;
IdName reason = 5;
IdName type = 6;
TimeWithZone date_created = 7;
}
message Cap {
int64 limit = 1;
IdName interval = 2;
TimeWithZone start_date = 3;
bool review_no_redirect = 4;
}
message HistorizedMoney {
bool current = 1;
TimeWithZone start_date = 2;
Money money = 3;
string notes = 4;
}
message EventOverride {
int64 id = 1;
string name = 2;
bool active = 3;
string payout_fallback = 4;
string received_fallback = 5;
Cap cap = 6;
TimeWithZone start_date = 7;
bool review_no_redirect = 8;
}
message Upsell {
IdName offer_contract = 1;
IdName creative = 2;
int64 order = 3;
string top_html = 4;
string bottom_html = 5;
bool prepop_link = 6;
}
message ExchangeRate {
Currency base_currency = 1;
Currency quote_currency = 2;
TimeWithZone start_date = 3;
TimeWithZone end_date = 4;
double rate = 5;
}
message Disposition {
int64 id = 1;
string name = 2;
IdName type = 3;
string contact = 4;
TimeWithZone disposition_date = 5;
}
message MaybeInt {
int64 value = 1;
bool has_value = 2;
}