OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.partners.v2; | 3 library googleapis.partners.v2; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client partners/v2'; | 15 const core.String USER_AGENT = 'dart-api-client partners/v2'; |
16 | 16 |
17 /** | 17 /// Searches certified companies and creates contact leads with them, and also |
18 * Searches certified companies and creates contact leads with them, and also | 18 /// audits the usage of clients. |
19 * audits the usage of clients. | |
20 */ | |
21 class PartnersApi { | 19 class PartnersApi { |
22 | |
23 final commons.ApiRequester _requester; | 20 final commons.ApiRequester _requester; |
24 | 21 |
25 AnalyticsResourceApi get analytics => new AnalyticsResourceApi(_requester); | 22 AnalyticsResourceApi get analytics => new AnalyticsResourceApi(_requester); |
26 ClientMessagesResourceApi get clientMessages => new ClientMessagesResourceApi(
_requester); | 23 ClientMessagesResourceApi get clientMessages => |
| 24 new ClientMessagesResourceApi(_requester); |
27 CompaniesResourceApi get companies => new CompaniesResourceApi(_requester); | 25 CompaniesResourceApi get companies => new CompaniesResourceApi(_requester); |
28 ExamsResourceApi get exams => new ExamsResourceApi(_requester); | 26 ExamsResourceApi get exams => new ExamsResourceApi(_requester); |
29 LeadsResourceApi get leads => new LeadsResourceApi(_requester); | 27 LeadsResourceApi get leads => new LeadsResourceApi(_requester); |
30 OffersResourceApi get offers => new OffersResourceApi(_requester); | 28 OffersResourceApi get offers => new OffersResourceApi(_requester); |
31 UserEventsResourceApi get userEvents => new UserEventsResourceApi(_requester); | 29 UserEventsResourceApi get userEvents => new UserEventsResourceApi(_requester); |
32 UserStatesResourceApi get userStates => new UserStatesResourceApi(_requester); | 30 UserStatesResourceApi get userStates => new UserStatesResourceApi(_requester); |
33 UsersResourceApi get users => new UsersResourceApi(_requester); | 31 UsersResourceApi get users => new UsersResourceApi(_requester); |
34 V2ResourceApi get v2 => new V2ResourceApi(_requester); | 32 V2ResourceApi get v2 => new V2ResourceApi(_requester); |
35 | 33 |
36 PartnersApi(http.Client client, {core.String rootUrl: "https://partners.google
apis.com/", core.String servicePath: ""}) : | 34 PartnersApi(http.Client client, |
37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 35 {core.String rootUrl: "https://partners.googleapis.com/", |
| 36 core.String servicePath: ""}) |
| 37 : _requester = |
| 38 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
38 } | 39 } |
39 | 40 |
40 | |
41 class AnalyticsResourceApi { | 41 class AnalyticsResourceApi { |
42 final commons.ApiRequester _requester; | 42 final commons.ApiRequester _requester; |
43 | 43 |
44 AnalyticsResourceApi(commons.ApiRequester client) : | 44 AnalyticsResourceApi(commons.ApiRequester client) : _requester = client; |
45 _requester = client; | |
46 | 45 |
47 /** | 46 /// Lists analytics data for a user's associated company. |
48 * Lists analytics data for a user's associated company. | 47 /// Should only be called within the context of an authorized logged in user. |
49 * Should only be called within the context of an authorized logged in user. | 48 /// |
50 * | 49 /// Request parameters: |
51 * Request parameters: | 50 /// |
52 * | 51 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
53 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 52 /// instead of the user's ID. |
54 * instead of the user's ID. | 53 /// |
55 * | 54 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
56 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 55 /// |
57 * | 56 /// [pageToken] - A token identifying a page of results that the server |
58 * [pageToken] - A token identifying a page of results that the server | 57 /// returns. |
59 * returns. | 58 /// Typically, this is the value of `ListAnalyticsResponse.next_page_token` |
60 * Typically, this is the value of `ListAnalyticsResponse.next_page_token` | 59 /// returned from the previous call to |
61 * returned from the previous call to | 60 /// ListAnalytics. |
62 * ListAnalytics. | 61 /// Will be a date string in `YYYY-MM-DD` format representing the end date |
63 * Will be a date string in `YYYY-MM-DD` format representing the end date | 62 /// of the date range of results to return. |
64 * of the date range of results to return. | 63 /// If unspecified or set to "", default value is the current date. |
65 * If unspecified or set to "", default value is the current date. | 64 /// |
66 * | 65 /// [pageSize] - Requested page size. Server may return fewer analytics than |
67 * [pageSize] - Requested page size. Server may return fewer analytics than | 66 /// requested. |
68 * requested. | 67 /// If unspecified or set to 0, default value is 30. |
69 * If unspecified or set to 0, default value is 30. | 68 /// Specifies the number of days in the date range when querying analytics. |
70 * Specifies the number of days in the date range when querying analytics. | 69 /// The `page_token` represents the end date of the date range |
71 * The `page_token` represents the end date of the date range | 70 /// and the start date is calculated using the `page_size` as the number |
72 * and the start date is calculated using the `page_size` as the number | 71 /// of days BEFORE the end date. |
73 * of days BEFORE the end date. | 72 /// Must be a non-negative integer. |
74 * Must be a non-negative integer. | 73 /// |
75 * | 74 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
76 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 75 /// where the traffic comes from. |
77 * where the traffic comes from. | 76 /// An identifier has multiple letters created by a team which redirected the |
78 * An identifier has multiple letters created by a team which redirected the | 77 /// traffic to us. |
79 * traffic to us. | 78 /// |
80 * | 79 /// [requestMetadata_locale] - Locale to use for the current request. |
81 * [requestMetadata_locale] - Locale to use for the current request. | 80 /// |
82 * | 81 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
83 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 82 /// the user's geo-located IP address. |
84 * the user's geo-located IP address. | 83 /// |
85 * | 84 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
86 * [requestMetadata_experimentIds] - Experiment IDs the current request | 85 /// belongs to. |
87 * belongs to. | 86 /// |
88 * | 87 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
89 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 88 /// indicate where the traffic comes from. |
90 * indicate where the traffic comes from. | 89 /// An identifier has multiple letters created by a team which redirected the |
91 * An identifier has multiple letters created by a team which redirected the | 90 /// traffic to us. |
92 * traffic to us. | 91 /// |
93 * | 92 /// Completes with a [ListAnalyticsResponse]. |
94 * Completes with a [ListAnalyticsResponse]. | 93 /// |
95 * | 94 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
96 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 95 /// an error. |
97 * error. | 96 /// |
98 * | 97 /// If the used [http.Client] completes with an error when making a REST |
99 * If the used [http.Client] completes with an error when making a REST call, | 98 /// call, this method will complete with the same error. |
100 * this method will complete with the same error. | 99 async.Future<ListAnalyticsResponse> list( |
101 */ | 100 {core.String requestMetadata_userOverrides_userId, |
102 async.Future<ListAnalyticsResponse> list({core.String requestMetadata_userOver
rides_userId, core.String requestMetadata_partnersSessionId, core.String pageTok
en, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId
, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_
ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String req
uestMetadata_trafficSource_trafficSubId}) { | 101 core.String requestMetadata_partnersSessionId, |
| 102 core.String pageToken, |
| 103 core.int pageSize, |
| 104 core.String requestMetadata_trafficSource_trafficSourceId, |
| 105 core.String requestMetadata_locale, |
| 106 core.String requestMetadata_userOverrides_ipAddress, |
| 107 core.List<core.String> requestMetadata_experimentIds, |
| 108 core.String requestMetadata_trafficSource_trafficSubId}) { |
103 var _url = null; | 109 var _url = null; |
104 var _queryParams = new core.Map(); | 110 var _queryParams = new core.Map(); |
105 var _uploadMedia = null; | 111 var _uploadMedia = null; |
106 var _uploadOptions = null; | 112 var _uploadOptions = null; |
107 var _downloadOptions = commons.DownloadOptions.Metadata; | 113 var _downloadOptions = commons.DownloadOptions.Metadata; |
108 var _body = null; | 114 var _body = null; |
109 | 115 |
110 if (requestMetadata_userOverrides_userId != null) { | 116 if (requestMetadata_userOverrides_userId != null) { |
111 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 117 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 118 requestMetadata_userOverrides_userId |
| 119 ]; |
112 } | 120 } |
113 if (requestMetadata_partnersSessionId != null) { | 121 if (requestMetadata_partnersSessionId != null) { |
114 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 122 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 123 requestMetadata_partnersSessionId |
| 124 ]; |
115 } | 125 } |
116 if (pageToken != null) { | 126 if (pageToken != null) { |
117 _queryParams["pageToken"] = [pageToken]; | 127 _queryParams["pageToken"] = [pageToken]; |
118 } | 128 } |
119 if (pageSize != null) { | 129 if (pageSize != null) { |
120 _queryParams["pageSize"] = ["${pageSize}"]; | 130 _queryParams["pageSize"] = ["${pageSize}"]; |
121 } | 131 } |
122 if (requestMetadata_trafficSource_trafficSourceId != null) { | 132 if (requestMetadata_trafficSource_trafficSourceId != null) { |
123 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 133 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 134 requestMetadata_trafficSource_trafficSourceId |
| 135 ]; |
124 } | 136 } |
125 if (requestMetadata_locale != null) { | 137 if (requestMetadata_locale != null) { |
126 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 138 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
127 } | 139 } |
128 if (requestMetadata_userOverrides_ipAddress != null) { | 140 if (requestMetadata_userOverrides_ipAddress != null) { |
129 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 141 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 142 requestMetadata_userOverrides_ipAddress |
| 143 ]; |
130 } | 144 } |
131 if (requestMetadata_experimentIds != null) { | 145 if (requestMetadata_experimentIds != null) { |
132 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 146 _queryParams["requestMetadata.experimentIds"] = |
| 147 requestMetadata_experimentIds; |
133 } | 148 } |
134 if (requestMetadata_trafficSource_trafficSubId != null) { | 149 if (requestMetadata_trafficSource_trafficSubId != null) { |
135 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 150 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 151 requestMetadata_trafficSource_trafficSubId |
| 152 ]; |
136 } | 153 } |
137 | 154 |
138 _url = 'v2/analytics'; | 155 _url = 'v2/analytics'; |
139 | 156 |
140 var _response = _requester.request(_url, | 157 var _response = _requester.request(_url, "GET", |
141 "GET", | 158 body: _body, |
142 body: _body, | 159 queryParams: _queryParams, |
143 queryParams: _queryParams, | 160 uploadOptions: _uploadOptions, |
144 uploadOptions: _uploadOptions, | 161 uploadMedia: _uploadMedia, |
145 uploadMedia: _uploadMedia, | 162 downloadOptions: _downloadOptions); |
146 downloadOptions: _downloadOptions); | |
147 return _response.then((data) => new ListAnalyticsResponse.fromJson(data)); | 163 return _response.then((data) => new ListAnalyticsResponse.fromJson(data)); |
148 } | 164 } |
149 | |
150 } | 165 } |
151 | 166 |
152 | |
153 class ClientMessagesResourceApi { | 167 class ClientMessagesResourceApi { |
154 final commons.ApiRequester _requester; | 168 final commons.ApiRequester _requester; |
155 | 169 |
156 ClientMessagesResourceApi(commons.ApiRequester client) : | 170 ClientMessagesResourceApi(commons.ApiRequester client) : _requester = client; |
157 _requester = client; | |
158 | 171 |
159 /** | 172 /// Logs a generic message from the client, such as |
160 * Logs a generic message from the client, such as | 173 /// `Failed to render component`, `Profile page is running slow`, |
161 * `Failed to render component`, `Profile page is running slow`, | 174 /// `More than 500 users have accessed this result.`, etc. |
162 * `More than 500 users have accessed this result.`, etc. | 175 /// |
163 * | 176 /// [request] - The metadata request object. |
164 * [request] - The metadata request object. | 177 /// |
165 * | 178 /// Request parameters: |
166 * Request parameters: | 179 /// |
167 * | 180 /// Completes with a [LogMessageResponse]. |
168 * Completes with a [LogMessageResponse]. | 181 /// |
169 * | 182 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 183 /// an error. |
171 * error. | 184 /// |
172 * | 185 /// If the used [http.Client] completes with an error when making a REST |
173 * If the used [http.Client] completes with an error when making a REST call, | 186 /// call, this method will complete with the same error. |
174 * this method will complete with the same error. | |
175 */ | |
176 async.Future<LogMessageResponse> log(LogMessageRequest request) { | 187 async.Future<LogMessageResponse> log(LogMessageRequest request) { |
177 var _url = null; | 188 var _url = null; |
178 var _queryParams = new core.Map(); | 189 var _queryParams = new core.Map(); |
179 var _uploadMedia = null; | 190 var _uploadMedia = null; |
180 var _uploadOptions = null; | 191 var _uploadOptions = null; |
181 var _downloadOptions = commons.DownloadOptions.Metadata; | 192 var _downloadOptions = commons.DownloadOptions.Metadata; |
182 var _body = null; | 193 var _body = null; |
183 | 194 |
184 if (request != null) { | 195 if (request != null) { |
185 _body = convert.JSON.encode((request).toJson()); | 196 _body = convert.JSON.encode((request).toJson()); |
186 } | 197 } |
187 | 198 |
188 _url = 'v2/clientMessages:log'; | 199 _url = 'v2/clientMessages:log'; |
189 | 200 |
190 var _response = _requester.request(_url, | 201 var _response = _requester.request(_url, "POST", |
191 "POST", | 202 body: _body, |
192 body: _body, | 203 queryParams: _queryParams, |
193 queryParams: _queryParams, | 204 uploadOptions: _uploadOptions, |
194 uploadOptions: _uploadOptions, | 205 uploadMedia: _uploadMedia, |
195 uploadMedia: _uploadMedia, | 206 downloadOptions: _downloadOptions); |
196 downloadOptions: _downloadOptions); | |
197 return _response.then((data) => new LogMessageResponse.fromJson(data)); | 207 return _response.then((data) => new LogMessageResponse.fromJson(data)); |
198 } | 208 } |
199 | |
200 } | 209 } |
201 | 210 |
202 | |
203 class CompaniesResourceApi { | 211 class CompaniesResourceApi { |
204 final commons.ApiRequester _requester; | 212 final commons.ApiRequester _requester; |
205 | 213 |
206 CompaniesLeadsResourceApi get leads => new CompaniesLeadsResourceApi(_requeste
r); | 214 CompaniesLeadsResourceApi get leads => |
| 215 new CompaniesLeadsResourceApi(_requester); |
207 | 216 |
208 CompaniesResourceApi(commons.ApiRequester client) : | 217 CompaniesResourceApi(commons.ApiRequester client) : _requester = client; |
209 _requester = client; | |
210 | 218 |
211 /** | 219 /// Gets a company. |
212 * Gets a company. | 220 /// |
213 * | 221 /// Request parameters: |
214 * Request parameters: | 222 /// |
215 * | 223 /// [companyId] - The ID of the company to retrieve. |
216 * [companyId] - The ID of the company to retrieve. | 224 /// |
217 * | 225 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
218 * [orderBy] - How to order addresses within the returned company. Currently, | 226 /// where the traffic comes from. |
219 * only | 227 /// An identifier has multiple letters created by a team which redirected the |
220 * `address` and `address desc` is supported which will sorted by closest to | 228 /// traffic to us. |
221 * farthest in distance from given address and farthest to closest distance | 229 /// |
222 * from given address respectively. | 230 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
223 * | 231 /// the user's geo-located IP address. |
224 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 232 /// |
225 * indicate where the traffic comes from. | 233 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
226 * An identifier has multiple letters created by a team which redirected the | 234 /// belongs to. |
227 * traffic to us. | 235 /// |
228 * | 236 /// [currencyCode] - If the company's budget is in a different currency code |
229 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 237 /// than this one, then |
230 * | 238 /// the converted budget is converted to this currency code. |
231 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 239 /// |
232 * instead of the user's ID. | 240 /// [orderBy] - How to order addresses within the returned company. |
233 * | 241 /// Currently, only |
234 * [view] - The view of `Company` resource to be returned. This must not be | 242 /// `address` and `address desc` is supported which will sorted by closest to |
235 * `COMPANY_VIEW_UNSPECIFIED`. | 243 /// farthest in distance from given address and farthest to closest distance |
236 * Possible string values are: | 244 /// from given address respectively. |
237 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. | 245 /// |
238 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. | 246 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
239 * | 247 /// indicate where the traffic comes from. |
240 * [requestMetadata_locale] - Locale to use for the current request. | 248 /// An identifier has multiple letters created by a team which redirected the |
241 * | 249 /// traffic to us. |
242 * [address] - The address to use for sorting the company's addresses by | 250 /// |
243 * proximity. | 251 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
244 * If not given, the geo-located address of the request is used. | 252 /// instead of the user's ID. |
245 * Used when order_by is set. | 253 /// |
246 * | 254 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
247 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 255 /// |
248 * where the traffic comes from. | 256 /// [view] - The view of `Company` resource to be returned. This must not be |
249 * An identifier has multiple letters created by a team which redirected the | 257 /// `COMPANY_VIEW_UNSPECIFIED`. |
250 * traffic to us. | 258 /// Possible string values are: |
251 * | 259 /// - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. |
252 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 260 /// - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. |
253 * the user's geo-located IP address. | 261 /// |
254 * | 262 /// [address] - The address to use for sorting the company's addresses by |
255 * [requestMetadata_experimentIds] - Experiment IDs the current request | 263 /// proximity. |
256 * belongs to. | 264 /// If not given, the geo-located address of the request is used. |
257 * | 265 /// Used when order_by is set. |
258 * [currencyCode] - If the company's budget is in a different currency code | 266 /// |
259 * than this one, then | 267 /// [requestMetadata_locale] - Locale to use for the current request. |
260 * the converted budget is converted to this currency code. | 268 /// |
261 * | 269 /// Completes with a [GetCompanyResponse]. |
262 * Completes with a [GetCompanyResponse]. | 270 /// |
263 * | 271 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 272 /// an error. |
265 * error. | 273 /// |
266 * | 274 /// If the used [http.Client] completes with an error when making a REST |
267 * If the used [http.Client] completes with an error when making a REST call, | 275 /// call, this method will complete with the same error. |
268 * this method will complete with the same error. | 276 async.Future<GetCompanyResponse> get(core.String companyId, |
269 */ | 277 {core.String requestMetadata_trafficSource_trafficSourceId, |
270 async.Future<GetCompanyResponse> get(core.String companyId, {core.String order
By, core.String requestMetadata_trafficSource_trafficSubId, core.String requestM
etadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, cor
e.String view, core.String requestMetadata_locale, core.String address, core.Str
ing requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_u
serOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, co
re.String currencyCode}) { | 278 core.String requestMetadata_userOverrides_ipAddress, |
| 279 core.List<core.String> requestMetadata_experimentIds, |
| 280 core.String currencyCode, |
| 281 core.String orderBy, |
| 282 core.String requestMetadata_trafficSource_trafficSubId, |
| 283 core.String requestMetadata_userOverrides_userId, |
| 284 core.String requestMetadata_partnersSessionId, |
| 285 core.String view, |
| 286 core.String address, |
| 287 core.String requestMetadata_locale}) { |
271 var _url = null; | 288 var _url = null; |
272 var _queryParams = new core.Map(); | 289 var _queryParams = new core.Map(); |
273 var _uploadMedia = null; | 290 var _uploadMedia = null; |
274 var _uploadOptions = null; | 291 var _uploadOptions = null; |
275 var _downloadOptions = commons.DownloadOptions.Metadata; | 292 var _downloadOptions = commons.DownloadOptions.Metadata; |
276 var _body = null; | 293 var _body = null; |
277 | 294 |
278 if (companyId == null) { | 295 if (companyId == null) { |
279 throw new core.ArgumentError("Parameter companyId is required."); | 296 throw new core.ArgumentError("Parameter companyId is required."); |
280 } | 297 } |
| 298 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 299 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 300 requestMetadata_trafficSource_trafficSourceId |
| 301 ]; |
| 302 } |
| 303 if (requestMetadata_userOverrides_ipAddress != null) { |
| 304 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 305 requestMetadata_userOverrides_ipAddress |
| 306 ]; |
| 307 } |
| 308 if (requestMetadata_experimentIds != null) { |
| 309 _queryParams["requestMetadata.experimentIds"] = |
| 310 requestMetadata_experimentIds; |
| 311 } |
| 312 if (currencyCode != null) { |
| 313 _queryParams["currencyCode"] = [currencyCode]; |
| 314 } |
281 if (orderBy != null) { | 315 if (orderBy != null) { |
282 _queryParams["orderBy"] = [orderBy]; | 316 _queryParams["orderBy"] = [orderBy]; |
283 } | 317 } |
284 if (requestMetadata_trafficSource_trafficSubId != null) { | 318 if (requestMetadata_trafficSource_trafficSubId != null) { |
285 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 319 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 320 requestMetadata_trafficSource_trafficSubId |
| 321 ]; |
| 322 } |
| 323 if (requestMetadata_userOverrides_userId != null) { |
| 324 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 325 requestMetadata_userOverrides_userId |
| 326 ]; |
286 } | 327 } |
287 if (requestMetadata_partnersSessionId != null) { | 328 if (requestMetadata_partnersSessionId != null) { |
288 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 329 _queryParams["requestMetadata.partnersSessionId"] = [ |
289 } | 330 requestMetadata_partnersSessionId |
290 if (requestMetadata_userOverrides_userId != null) { | 331 ]; |
291 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
292 } | 332 } |
293 if (view != null) { | 333 if (view != null) { |
294 _queryParams["view"] = [view]; | 334 _queryParams["view"] = [view]; |
295 } | 335 } |
| 336 if (address != null) { |
| 337 _queryParams["address"] = [address]; |
| 338 } |
296 if (requestMetadata_locale != null) { | 339 if (requestMetadata_locale != null) { |
297 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 340 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
298 } | 341 } |
299 if (address != null) { | |
300 _queryParams["address"] = [address]; | |
301 } | |
302 if (requestMetadata_trafficSource_trafficSourceId != null) { | |
303 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | |
304 } | |
305 if (requestMetadata_userOverrides_ipAddress != null) { | |
306 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | |
307 } | |
308 if (requestMetadata_experimentIds != null) { | |
309 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | |
310 } | |
311 if (currencyCode != null) { | |
312 _queryParams["currencyCode"] = [currencyCode]; | |
313 } | |
314 | 342 |
315 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId'); | 343 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId'); |
316 | 344 |
317 var _response = _requester.request(_url, | 345 var _response = _requester.request(_url, "GET", |
318 "GET", | 346 body: _body, |
319 body: _body, | 347 queryParams: _queryParams, |
320 queryParams: _queryParams, | 348 uploadOptions: _uploadOptions, |
321 uploadOptions: _uploadOptions, | 349 uploadMedia: _uploadMedia, |
322 uploadMedia: _uploadMedia, | 350 downloadOptions: _downloadOptions); |
323 downloadOptions: _downloadOptions); | |
324 return _response.then((data) => new GetCompanyResponse.fromJson(data)); | 351 return _response.then((data) => new GetCompanyResponse.fromJson(data)); |
325 } | 352 } |
326 | 353 |
327 /** | 354 /// Lists companies. |
328 * Lists companies. | 355 /// |
329 * | 356 /// Request parameters: |
330 * Request parameters: | 357 /// |
331 * | 358 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
332 * [languageCodes] - List of language codes that company can support. Only | 359 /// where the traffic comes from. |
333 * primary language | 360 /// An identifier has multiple letters created by a team which redirected the |
334 * subtags are accepted as defined by | 361 /// traffic to us. |
335 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 362 /// |
336 * (IETF BCP 47, "Tags for Identifying Languages"). | 363 /// [maxMonthlyBudget_units] - The whole units of the amount. |
337 * | 364 /// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
338 * [pageSize] - Requested page size. Server may return fewer companies than | 365 /// |
339 * requested. | 366 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
340 * If unspecified, server picks an appropriate default. | 367 /// indicate where the traffic comes from. |
341 * | 368 /// An identifier has multiple letters created by a team which redirected the |
342 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 369 /// traffic to us. |
343 * the user's geo-located IP address. | 370 /// |
344 * | 371 /// [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. |
345 * [requestMetadata_experimentIds] - Experiment IDs the current request | 372 /// The value must be between -999,999,999 and +999,999,999 inclusive. |
346 * belongs to. | 373 /// If `units` is positive, `nanos` must be positive or zero. |
347 * | 374 /// If `units` is zero, `nanos` can be positive, zero, or negative. |
348 * [orderBy] - How to order addresses within the returned companies. | 375 /// If `units` is negative, `nanos` must be negative or zero. |
349 * Currently, only | 376 /// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. |
350 * `address` and `address desc` is supported which will sorted by closest to | 377 /// |
351 * farthest in distance from given address and farthest to closest distance | 378 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
352 * from given address respectively. | 379 /// |
353 * | 380 /// [companyName] - Company name to search for. |
354 * [specializations] - List of specializations that the returned agencies | 381 /// |
355 * should provide. If this | 382 /// [pageToken] - A token identifying a page of results that the server |
356 * is not empty, any returned agency must have at least one of these | 383 /// returns. |
357 * specializations, or one of the services in the "services" field. | 384 /// Typically, this is the value of `ListCompaniesResponse.next_page_token` |
358 * | 385 /// returned from the previous call to |
359 * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO | 386 /// ListCompanies. |
360 * 4217. | 387 /// |
361 * | 388 /// [industries] - List of industries the company can help with. |
362 * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO | 389 /// |
363 * 4217. | 390 /// [websiteUrl] - Website URL that will help to find a better matched |
364 * | 391 /// company. |
365 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 392 /// . |
366 * instead of the user's ID. | 393 /// |
367 * | 394 /// [gpsMotivations] - List of reasons for using Google Partner Search to get |
368 * [view] - The view of the `Company` resource to be returned. This must not | 395 /// companies. |
369 * be | 396 /// |
370 * `COMPANY_VIEW_UNSPECIFIED`. | 397 /// [languageCodes] - List of language codes that company can support. Only |
371 * Possible string values are: | 398 /// primary language |
372 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. | 399 /// subtags are accepted as defined by |
373 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. | 400 /// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> |
374 * | 401 /// (IETF BCP 47, "Tags for Identifying Languages"). |
375 * [address] - The address to use when searching for companies. | 402 /// |
376 * If not given, the geo-located address of the request is used. | 403 /// [pageSize] - Requested page size. Server may return fewer companies than |
377 * | 404 /// requested. |
378 * [requestMetadata_locale] - Locale to use for the current request. | 405 /// If unspecified, server picks an appropriate default. |
379 * | 406 /// |
380 * [minMonthlyBudget_units] - The whole units of the amount. | 407 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
381 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. | 408 /// the user's geo-located IP address. |
382 * | 409 /// |
383 * [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. | 410 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
384 * The value must be between -999,999,999 and +999,999,999 inclusive. | 411 /// belongs to. |
385 * If `units` is positive, `nanos` must be positive or zero. | 412 /// |
386 * If `units` is zero, `nanos` can be positive, zero, or negative. | 413 /// [orderBy] - How to order addresses within the returned companies. |
387 * If `units` is negative, `nanos` must be negative or zero. | 414 /// Currently, only |
388 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. | 415 /// `address` and `address desc` is supported which will sorted by closest to |
389 * | 416 /// farthest in distance from given address and farthest to closest distance |
390 * [services] - List of services that the returned agencies should provide. If | 417 /// from given address respectively. |
391 * this is | 418 /// |
392 * not empty, any returned agency must have at least one of these services, | 419 /// [specializations] - List of specializations that the returned agencies |
393 * or one of the specializations in the "specializations" field. | 420 /// should provide. If this |
394 * | 421 /// is not empty, any returned agency must have at least one of these |
395 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 422 /// specializations, or one of the services in the "services" field. |
396 * where the traffic comes from. | 423 /// |
397 * An identifier has multiple letters created by a team which redirected the | 424 /// [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in |
398 * traffic to us. | 425 /// ISO 4217. |
399 * | 426 /// |
400 * [maxMonthlyBudget_units] - The whole units of the amount. | 427 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
401 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. | 428 /// instead of the user's ID. |
402 * | 429 /// |
403 * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. | 430 /// [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in |
404 * The value must be between -999,999,999 and +999,999,999 inclusive. | 431 /// ISO 4217. |
405 * If `units` is positive, `nanos` must be positive or zero. | 432 /// |
406 * If `units` is zero, `nanos` can be positive, zero, or negative. | 433 /// [view] - The view of the `Company` resource to be returned. This must not |
407 * If `units` is negative, `nanos` must be negative or zero. | 434 /// be |
408 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. | 435 /// `COMPANY_VIEW_UNSPECIFIED`. |
409 * | 436 /// Possible string values are: |
410 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 437 /// - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. |
411 * indicate where the traffic comes from. | 438 /// - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. |
412 * An identifier has multiple letters created by a team which redirected the | 439 /// |
413 * traffic to us. | 440 /// [requestMetadata_locale] - Locale to use for the current request. |
414 * | 441 /// |
415 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 442 /// [address] - The address to use when searching for companies. |
416 * | 443 /// If not given, the geo-located address of the request is used. |
417 * [companyName] - Company name to search for. | 444 /// |
418 * | 445 /// [minMonthlyBudget_units] - The whole units of the amount. |
419 * [pageToken] - A token identifying a page of results that the server | 446 /// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
420 * returns. | 447 /// |
421 * Typically, this is the value of `ListCompaniesResponse.next_page_token` | 448 /// [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. |
422 * returned from the previous call to | 449 /// The value must be between -999,999,999 and +999,999,999 inclusive. |
423 * ListCompanies. | 450 /// If `units` is positive, `nanos` must be positive or zero. |
424 * | 451 /// If `units` is zero, `nanos` can be positive, zero, or negative. |
425 * [industries] - List of industries the company can help with. | 452 /// If `units` is negative, `nanos` must be negative or zero. |
426 * | 453 /// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. |
427 * [websiteUrl] - Website URL that will help to find a better matched company. | 454 /// |
428 * . | 455 /// [services] - List of services that the returned agencies should provide. |
429 * | 456 /// If this is |
430 * [gpsMotivations] - List of reasons for using Google Partner Search to get | 457 /// not empty, any returned agency must have at least one of these services, |
431 * companies. | 458 /// or one of the specializations in the "specializations" field. |
432 * | 459 /// |
433 * Completes with a [ListCompaniesResponse]. | 460 /// Completes with a [ListCompaniesResponse]. |
434 * | 461 /// |
435 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 462 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
436 * error. | 463 /// an error. |
437 * | 464 /// |
438 * If the used [http.Client] completes with an error when making a REST call, | 465 /// If the used [http.Client] completes with an error when making a REST |
439 * this method will complete with the same error. | 466 /// call, this method will complete with the same error. |
440 */ | 467 async.Future<ListCompaniesResponse> list( |
441 async.Future<ListCompaniesResponse> list({core.List<core.String> languageCodes
, core.int pageSize, core.String requestMetadata_userOverrides_ipAddress, core.L
ist<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<c
ore.String> specializations, core.String maxMonthlyBudget_currencyCode, core.Str
ing minMonthlyBudget_currencyCode, core.String requestMetadata_userOverrides_use
rId, core.String view, core.String address, core.String requestMetadata_locale,
core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<c
ore.String> services, core.String requestMetadata_trafficSource_trafficSourceId,
core.String maxMonthlyBudget_units, core.int minMonthlyBudget_nanos, core.Strin
g requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partne
rsSessionId, core.String companyName, core.String pageToken, core.List<core.Stri
ng> industries, core.String websiteUrl, core.List<core.String> gpsMotivations})
{ | 468 {core.String requestMetadata_trafficSource_trafficSourceId, |
| 469 core.String maxMonthlyBudget_units, |
| 470 core.String requestMetadata_trafficSource_trafficSubId, |
| 471 core.int minMonthlyBudget_nanos, |
| 472 core.String requestMetadata_partnersSessionId, |
| 473 core.String companyName, |
| 474 core.String pageToken, |
| 475 core.List<core.String> industries, |
| 476 core.String websiteUrl, |
| 477 core.List<core.String> gpsMotivations, |
| 478 core.List<core.String> languageCodes, |
| 479 core.int pageSize, |
| 480 core.String requestMetadata_userOverrides_ipAddress, |
| 481 core.List<core.String> requestMetadata_experimentIds, |
| 482 core.String orderBy, |
| 483 core.List<core.String> specializations, |
| 484 core.String maxMonthlyBudget_currencyCode, |
| 485 core.String requestMetadata_userOverrides_userId, |
| 486 core.String minMonthlyBudget_currencyCode, |
| 487 core.String view, |
| 488 core.String requestMetadata_locale, |
| 489 core.String address, |
| 490 core.String minMonthlyBudget_units, |
| 491 core.int maxMonthlyBudget_nanos, |
| 492 core.List<core.String> services}) { |
442 var _url = null; | 493 var _url = null; |
443 var _queryParams = new core.Map(); | 494 var _queryParams = new core.Map(); |
444 var _uploadMedia = null; | 495 var _uploadMedia = null; |
445 var _uploadOptions = null; | 496 var _uploadOptions = null; |
446 var _downloadOptions = commons.DownloadOptions.Metadata; | 497 var _downloadOptions = commons.DownloadOptions.Metadata; |
447 var _body = null; | 498 var _body = null; |
448 | 499 |
| 500 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 501 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 502 requestMetadata_trafficSource_trafficSourceId |
| 503 ]; |
| 504 } |
| 505 if (maxMonthlyBudget_units != null) { |
| 506 _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; |
| 507 } |
| 508 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 509 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 510 requestMetadata_trafficSource_trafficSubId |
| 511 ]; |
| 512 } |
| 513 if (minMonthlyBudget_nanos != null) { |
| 514 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; |
| 515 } |
| 516 if (requestMetadata_partnersSessionId != null) { |
| 517 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 518 requestMetadata_partnersSessionId |
| 519 ]; |
| 520 } |
| 521 if (companyName != null) { |
| 522 _queryParams["companyName"] = [companyName]; |
| 523 } |
| 524 if (pageToken != null) { |
| 525 _queryParams["pageToken"] = [pageToken]; |
| 526 } |
| 527 if (industries != null) { |
| 528 _queryParams["industries"] = industries; |
| 529 } |
| 530 if (websiteUrl != null) { |
| 531 _queryParams["websiteUrl"] = [websiteUrl]; |
| 532 } |
| 533 if (gpsMotivations != null) { |
| 534 _queryParams["gpsMotivations"] = gpsMotivations; |
| 535 } |
449 if (languageCodes != null) { | 536 if (languageCodes != null) { |
450 _queryParams["languageCodes"] = languageCodes; | 537 _queryParams["languageCodes"] = languageCodes; |
451 } | 538 } |
452 if (pageSize != null) { | 539 if (pageSize != null) { |
453 _queryParams["pageSize"] = ["${pageSize}"]; | 540 _queryParams["pageSize"] = ["${pageSize}"]; |
454 } | 541 } |
455 if (requestMetadata_userOverrides_ipAddress != null) { | 542 if (requestMetadata_userOverrides_ipAddress != null) { |
456 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 543 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 544 requestMetadata_userOverrides_ipAddress |
| 545 ]; |
457 } | 546 } |
458 if (requestMetadata_experimentIds != null) { | 547 if (requestMetadata_experimentIds != null) { |
459 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 548 _queryParams["requestMetadata.experimentIds"] = |
| 549 requestMetadata_experimentIds; |
460 } | 550 } |
461 if (orderBy != null) { | 551 if (orderBy != null) { |
462 _queryParams["orderBy"] = [orderBy]; | 552 _queryParams["orderBy"] = [orderBy]; |
463 } | 553 } |
464 if (specializations != null) { | 554 if (specializations != null) { |
465 _queryParams["specializations"] = specializations; | 555 _queryParams["specializations"] = specializations; |
466 } | 556 } |
467 if (maxMonthlyBudget_currencyCode != null) { | 557 if (maxMonthlyBudget_currencyCode != null) { |
468 _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currency
Code]; | 558 _queryParams["maxMonthlyBudget.currencyCode"] = [ |
| 559 maxMonthlyBudget_currencyCode |
| 560 ]; |
| 561 } |
| 562 if (requestMetadata_userOverrides_userId != null) { |
| 563 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 564 requestMetadata_userOverrides_userId |
| 565 ]; |
469 } | 566 } |
470 if (minMonthlyBudget_currencyCode != null) { | 567 if (minMonthlyBudget_currencyCode != null) { |
471 _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currency
Code]; | 568 _queryParams["minMonthlyBudget.currencyCode"] = [ |
472 } | 569 minMonthlyBudget_currencyCode |
473 if (requestMetadata_userOverrides_userId != null) { | 570 ]; |
474 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
475 } | 571 } |
476 if (view != null) { | 572 if (view != null) { |
477 _queryParams["view"] = [view]; | 573 _queryParams["view"] = [view]; |
478 } | 574 } |
| 575 if (requestMetadata_locale != null) { |
| 576 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 577 } |
479 if (address != null) { | 578 if (address != null) { |
480 _queryParams["address"] = [address]; | 579 _queryParams["address"] = [address]; |
481 } | 580 } |
482 if (requestMetadata_locale != null) { | |
483 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | |
484 } | |
485 if (minMonthlyBudget_units != null) { | 581 if (minMonthlyBudget_units != null) { |
486 _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; | 582 _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; |
487 } | 583 } |
488 if (maxMonthlyBudget_nanos != null) { | 584 if (maxMonthlyBudget_nanos != null) { |
489 _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; | 585 _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; |
490 } | 586 } |
491 if (services != null) { | 587 if (services != null) { |
492 _queryParams["services"] = services; | 588 _queryParams["services"] = services; |
493 } | 589 } |
494 if (requestMetadata_trafficSource_trafficSourceId != null) { | |
495 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | |
496 } | |
497 if (maxMonthlyBudget_units != null) { | |
498 _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; | |
499 } | |
500 if (minMonthlyBudget_nanos != null) { | |
501 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; | |
502 } | |
503 if (requestMetadata_trafficSource_trafficSubId != null) { | |
504 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
505 } | |
506 if (requestMetadata_partnersSessionId != null) { | |
507 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
508 } | |
509 if (companyName != null) { | |
510 _queryParams["companyName"] = [companyName]; | |
511 } | |
512 if (pageToken != null) { | |
513 _queryParams["pageToken"] = [pageToken]; | |
514 } | |
515 if (industries != null) { | |
516 _queryParams["industries"] = industries; | |
517 } | |
518 if (websiteUrl != null) { | |
519 _queryParams["websiteUrl"] = [websiteUrl]; | |
520 } | |
521 if (gpsMotivations != null) { | |
522 _queryParams["gpsMotivations"] = gpsMotivations; | |
523 } | |
524 | 590 |
525 _url = 'v2/companies'; | 591 _url = 'v2/companies'; |
526 | 592 |
527 var _response = _requester.request(_url, | 593 var _response = _requester.request(_url, "GET", |
528 "GET", | 594 body: _body, |
529 body: _body, | 595 queryParams: _queryParams, |
530 queryParams: _queryParams, | 596 uploadOptions: _uploadOptions, |
531 uploadOptions: _uploadOptions, | 597 uploadMedia: _uploadMedia, |
532 uploadMedia: _uploadMedia, | 598 downloadOptions: _downloadOptions); |
533 downloadOptions: _downloadOptions); | |
534 return _response.then((data) => new ListCompaniesResponse.fromJson(data)); | 599 return _response.then((data) => new ListCompaniesResponse.fromJson(data)); |
535 } | 600 } |
536 | |
537 } | 601 } |
538 | 602 |
539 | |
540 class CompaniesLeadsResourceApi { | 603 class CompaniesLeadsResourceApi { |
541 final commons.ApiRequester _requester; | 604 final commons.ApiRequester _requester; |
542 | 605 |
543 CompaniesLeadsResourceApi(commons.ApiRequester client) : | 606 CompaniesLeadsResourceApi(commons.ApiRequester client) : _requester = client; |
544 _requester = client; | |
545 | 607 |
546 /** | 608 /// Creates an advertiser lead for the given company ID. |
547 * Creates an advertiser lead for the given company ID. | 609 /// |
548 * | 610 /// [request] - The metadata request object. |
549 * [request] - The metadata request object. | 611 /// |
550 * | 612 /// Request parameters: |
551 * Request parameters: | 613 /// |
552 * | 614 /// [companyId] - The ID of the company to contact. |
553 * [companyId] - The ID of the company to contact. | 615 /// |
554 * | 616 /// Completes with a [CreateLeadResponse]. |
555 * Completes with a [CreateLeadResponse]. | 617 /// |
556 * | 618 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
557 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 619 /// an error. |
558 * error. | 620 /// |
559 * | 621 /// If the used [http.Client] completes with an error when making a REST |
560 * If the used [http.Client] completes with an error when making a REST call, | 622 /// call, this method will complete with the same error. |
561 * this method will complete with the same error. | 623 async.Future<CreateLeadResponse> create( |
562 */ | 624 CreateLeadRequest request, core.String companyId) { |
563 async.Future<CreateLeadResponse> create(CreateLeadRequest request, core.String
companyId) { | |
564 var _url = null; | 625 var _url = null; |
565 var _queryParams = new core.Map(); | 626 var _queryParams = new core.Map(); |
566 var _uploadMedia = null; | 627 var _uploadMedia = null; |
567 var _uploadOptions = null; | 628 var _uploadOptions = null; |
568 var _downloadOptions = commons.DownloadOptions.Metadata; | 629 var _downloadOptions = commons.DownloadOptions.Metadata; |
569 var _body = null; | 630 var _body = null; |
570 | 631 |
571 if (request != null) { | 632 if (request != null) { |
572 _body = convert.JSON.encode((request).toJson()); | 633 _body = convert.JSON.encode((request).toJson()); |
573 } | 634 } |
574 if (companyId == null) { | 635 if (companyId == null) { |
575 throw new core.ArgumentError("Parameter companyId is required."); | 636 throw new core.ArgumentError("Parameter companyId is required."); |
576 } | 637 } |
577 | 638 |
578 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId') + '/lea
ds'; | 639 _url = 'v2/companies/' + |
| 640 commons.Escaper.ecapeVariable('$companyId') + |
| 641 '/leads'; |
579 | 642 |
580 var _response = _requester.request(_url, | 643 var _response = _requester.request(_url, "POST", |
581 "POST", | 644 body: _body, |
582 body: _body, | 645 queryParams: _queryParams, |
583 queryParams: _queryParams, | 646 uploadOptions: _uploadOptions, |
584 uploadOptions: _uploadOptions, | 647 uploadMedia: _uploadMedia, |
585 uploadMedia: _uploadMedia, | 648 downloadOptions: _downloadOptions); |
586 downloadOptions: _downloadOptions); | |
587 return _response.then((data) => new CreateLeadResponse.fromJson(data)); | 649 return _response.then((data) => new CreateLeadResponse.fromJson(data)); |
588 } | 650 } |
589 | |
590 } | 651 } |
591 | 652 |
592 | |
593 class ExamsResourceApi { | 653 class ExamsResourceApi { |
594 final commons.ApiRequester _requester; | 654 final commons.ApiRequester _requester; |
595 | 655 |
596 ExamsResourceApi(commons.ApiRequester client) : | 656 ExamsResourceApi(commons.ApiRequester client) : _requester = client; |
597 _requester = client; | |
598 | 657 |
599 /** | 658 /// Gets an Exam Token for a Partner's user to take an exam in the Exams |
600 * Gets an Exam Token for a Partner's user to take an exam in the Exams System | 659 /// System |
601 * | 660 /// |
602 * Request parameters: | 661 /// Request parameters: |
603 * | 662 /// |
604 * [examType] - The exam type we are requesting a token for. | 663 /// [examType] - The exam type we are requesting a token for. |
605 * Possible string values are: | 664 /// Possible string values are: |
606 * - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : A | 665 /// - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : A |
607 * CERTIFICATION_EXAM_TYPE_UNSPECIFIED. | 666 /// CERTIFICATION_EXAM_TYPE_UNSPECIFIED. |
608 * - "CET_ADWORDS_FUNDAMENTALS" : A CET_ADWORDS_FUNDAMENTALS. | 667 /// - "CET_ADWORDS_FUNDAMENTALS" : A CET_ADWORDS_FUNDAMENTALS. |
609 * - "CET_ADWORDS_ADVANCED_SEARCH" : A CET_ADWORDS_ADVANCED_SEARCH. | 668 /// - "CET_ADWORDS_ADVANCED_SEARCH" : A CET_ADWORDS_ADVANCED_SEARCH. |
610 * - "CET_ADWORDS_ADVANCED_DISPLAY" : A CET_ADWORDS_ADVANCED_DISPLAY. | 669 /// - "CET_ADWORDS_ADVANCED_DISPLAY" : A CET_ADWORDS_ADVANCED_DISPLAY. |
611 * - "CET_VIDEO_ADS" : A CET_VIDEO_ADS. | 670 /// - "CET_VIDEO_ADS" : A CET_VIDEO_ADS. |
612 * - "CET_DOUBLECLICK" : A CET_DOUBLECLICK. | 671 /// - "CET_DOUBLECLICK" : A CET_DOUBLECLICK. |
613 * - "CET_ANALYTICS" : A CET_ANALYTICS. | 672 /// - "CET_ANALYTICS" : A CET_ANALYTICS. |
614 * - "CET_SHOPPING" : A CET_SHOPPING. | 673 /// - "CET_SHOPPING" : A CET_SHOPPING. |
615 * - "CET_MOBILE" : A CET_MOBILE. | 674 /// - "CET_MOBILE" : A CET_MOBILE. |
616 * - "CET_DIGITAL_SALES" : A CET_DIGITAL_SALES. | 675 /// - "CET_DIGITAL_SALES" : A CET_DIGITAL_SALES. |
617 * - "CET_MOBILE_SITES" : A CET_MOBILE_SITES. | 676 /// - "CET_MOBILE_SITES" : A CET_MOBILE_SITES. |
618 * | 677 /// |
619 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 678 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
620 * | 679 /// belongs to. |
621 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 680 /// |
622 * instead of the user's ID. | 681 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
623 * | 682 /// indicate where the traffic comes from. |
624 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 683 /// An identifier has multiple letters created by a team which redirected the |
625 * where the traffic comes from. | 684 /// traffic to us. |
626 * An identifier has multiple letters created by a team which redirected the | 685 /// |
627 * traffic to us. | 686 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
628 * | 687 /// instead of the user's ID. |
629 * [requestMetadata_locale] - Locale to use for the current request. | 688 /// |
630 * | 689 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
631 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 690 /// |
632 * the user's geo-located IP address. | 691 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
633 * | 692 /// where the traffic comes from. |
634 * [requestMetadata_experimentIds] - Experiment IDs the current request | 693 /// An identifier has multiple letters created by a team which redirected the |
635 * belongs to. | 694 /// traffic to us. |
636 * | 695 /// |
637 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 696 /// [requestMetadata_locale] - Locale to use for the current request. |
638 * indicate where the traffic comes from. | 697 /// |
639 * An identifier has multiple letters created by a team which redirected the | 698 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
640 * traffic to us. | 699 /// the user's geo-located IP address. |
641 * | 700 /// |
642 * Completes with a [ExamToken]. | 701 /// Completes with a [ExamToken]. |
643 * | 702 /// |
644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 703 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
645 * error. | 704 /// an error. |
646 * | 705 /// |
647 * If the used [http.Client] completes with an error when making a REST call, | 706 /// If the used [http.Client] completes with an error when making a REST |
648 * this method will complete with the same error. | 707 /// call, this method will complete with the same error. |
649 */ | 708 async.Future<ExamToken> getToken(core.String examType, |
650 async.Future<ExamToken> getToken(core.String examType, {core.String requestMet
adata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.
String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadat
a_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.St
ring> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_t
rafficSubId}) { | 709 {core.List<core.String> requestMetadata_experimentIds, |
| 710 core.String requestMetadata_trafficSource_trafficSubId, |
| 711 core.String requestMetadata_userOverrides_userId, |
| 712 core.String requestMetadata_partnersSessionId, |
| 713 core.String requestMetadata_trafficSource_trafficSourceId, |
| 714 core.String requestMetadata_locale, |
| 715 core.String requestMetadata_userOverrides_ipAddress}) { |
651 var _url = null; | 716 var _url = null; |
652 var _queryParams = new core.Map(); | 717 var _queryParams = new core.Map(); |
653 var _uploadMedia = null; | 718 var _uploadMedia = null; |
654 var _uploadOptions = null; | 719 var _uploadOptions = null; |
655 var _downloadOptions = commons.DownloadOptions.Metadata; | 720 var _downloadOptions = commons.DownloadOptions.Metadata; |
656 var _body = null; | 721 var _body = null; |
657 | 722 |
658 if (examType == null) { | 723 if (examType == null) { |
659 throw new core.ArgumentError("Parameter examType is required."); | 724 throw new core.ArgumentError("Parameter examType is required."); |
660 } | 725 } |
661 if (requestMetadata_partnersSessionId != null) { | 726 if (requestMetadata_experimentIds != null) { |
662 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 727 _queryParams["requestMetadata.experimentIds"] = |
| 728 requestMetadata_experimentIds; |
| 729 } |
| 730 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 731 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 732 requestMetadata_trafficSource_trafficSubId |
| 733 ]; |
663 } | 734 } |
664 if (requestMetadata_userOverrides_userId != null) { | 735 if (requestMetadata_userOverrides_userId != null) { |
665 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 736 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 737 requestMetadata_userOverrides_userId |
| 738 ]; |
| 739 } |
| 740 if (requestMetadata_partnersSessionId != null) { |
| 741 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 742 requestMetadata_partnersSessionId |
| 743 ]; |
666 } | 744 } |
667 if (requestMetadata_trafficSource_trafficSourceId != null) { | 745 if (requestMetadata_trafficSource_trafficSourceId != null) { |
668 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 746 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 747 requestMetadata_trafficSource_trafficSourceId |
| 748 ]; |
669 } | 749 } |
670 if (requestMetadata_locale != null) { | 750 if (requestMetadata_locale != null) { |
671 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 751 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
672 } | 752 } |
673 if (requestMetadata_userOverrides_ipAddress != null) { | 753 if (requestMetadata_userOverrides_ipAddress != null) { |
674 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 754 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
675 } | 755 requestMetadata_userOverrides_ipAddress |
676 if (requestMetadata_experimentIds != null) { | 756 ]; |
677 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | |
678 } | |
679 if (requestMetadata_trafficSource_trafficSubId != null) { | |
680 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
681 } | 757 } |
682 | 758 |
683 _url = 'v2/exams/' + commons.Escaper.ecapeVariable('$examType') + '/token'; | 759 _url = 'v2/exams/' + commons.Escaper.ecapeVariable('$examType') + '/token'; |
684 | 760 |
685 var _response = _requester.request(_url, | 761 var _response = _requester.request(_url, "GET", |
686 "GET", | 762 body: _body, |
687 body: _body, | 763 queryParams: _queryParams, |
688 queryParams: _queryParams, | 764 uploadOptions: _uploadOptions, |
689 uploadOptions: _uploadOptions, | 765 uploadMedia: _uploadMedia, |
690 uploadMedia: _uploadMedia, | 766 downloadOptions: _downloadOptions); |
691 downloadOptions: _downloadOptions); | |
692 return _response.then((data) => new ExamToken.fromJson(data)); | 767 return _response.then((data) => new ExamToken.fromJson(data)); |
693 } | 768 } |
694 | |
695 } | 769 } |
696 | 770 |
697 | |
698 class LeadsResourceApi { | 771 class LeadsResourceApi { |
699 final commons.ApiRequester _requester; | 772 final commons.ApiRequester _requester; |
700 | 773 |
701 LeadsResourceApi(commons.ApiRequester client) : | 774 LeadsResourceApi(commons.ApiRequester client) : _requester = client; |
702 _requester = client; | |
703 | 775 |
704 /** | 776 /// Lists advertiser leads for a user's associated company. |
705 * Lists advertiser leads for a user's associated company. | 777 /// Should only be called within the context of an authorized logged in user. |
706 * Should only be called within the context of an authorized logged in user. | 778 /// |
707 * | 779 /// Request parameters: |
708 * Request parameters: | 780 /// |
709 * | 781 /// [pageToken] - A token identifying a page of results that the server |
710 * [requestMetadata_locale] - Locale to use for the current request. | 782 /// returns. |
711 * | 783 /// Typically, this is the value of `ListLeadsResponse.next_page_token` |
712 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 784 /// returned from the previous call to |
713 * the user's geo-located IP address. | 785 /// ListLeads. |
714 * | 786 /// |
715 * [requestMetadata_experimentIds] - Experiment IDs the current request | 787 /// [pageSize] - Requested page size. Server may return fewer leads than |
716 * belongs to. | 788 /// requested. |
717 * | 789 /// If unspecified, server picks an appropriate default. |
718 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 790 /// |
719 * indicate where the traffic comes from. | 791 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
720 * An identifier has multiple letters created by a team which redirected the | 792 /// where the traffic comes from. |
721 * traffic to us. | 793 /// An identifier has multiple letters created by a team which redirected the |
722 * | 794 /// traffic to us. |
723 * [orderBy] - How to order Leads. Currently, only `create_time` | 795 /// |
724 * and `create_time desc` are supported | 796 /// [requestMetadata_locale] - Locale to use for the current request. |
725 * | 797 /// |
726 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 798 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
727 * | 799 /// the user's geo-located IP address. |
728 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 800 /// |
729 * instead of the user's ID. | 801 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
730 * | 802 /// belongs to. |
731 * [pageToken] - A token identifying a page of results that the server | 803 /// |
732 * returns. | 804 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
733 * Typically, this is the value of `ListLeadsResponse.next_page_token` | 805 /// indicate where the traffic comes from. |
734 * returned from the previous call to | 806 /// An identifier has multiple letters created by a team which redirected the |
735 * ListLeads. | 807 /// traffic to us. |
736 * | 808 /// |
737 * [pageSize] - Requested page size. Server may return fewer leads than | 809 /// [orderBy] - How to order Leads. Currently, only `create_time` |
738 * requested. | 810 /// and `create_time desc` are supported |
739 * If unspecified, server picks an appropriate default. | 811 /// |
740 * | 812 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
741 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 813 /// |
742 * where the traffic comes from. | 814 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
743 * An identifier has multiple letters created by a team which redirected the | 815 /// instead of the user's ID. |
744 * traffic to us. | 816 /// |
745 * | 817 /// Completes with a [ListLeadsResponse]. |
746 * Completes with a [ListLeadsResponse]. | 818 /// |
747 * | 819 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 820 /// an error. |
749 * error. | 821 /// |
750 * | 822 /// If the used [http.Client] completes with an error when making a REST |
751 * If the used [http.Client] completes with an error when making a REST call, | 823 /// call, this method will complete with the same error. |
752 * this method will complete with the same error. | 824 async.Future<ListLeadsResponse> list( |
753 */ | 825 {core.String pageToken, |
754 async.Future<ListLeadsResponse> list({core.String requestMetadata_locale, core
.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestM
etadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, c
ore.String orderBy, core.String requestMetadata_partnersSessionId, core.String r
equestMetadata_userOverrides_userId, core.String pageToken, core.int pageSize, c
ore.String requestMetadata_trafficSource_trafficSourceId}) { | 826 core.int pageSize, |
| 827 core.String requestMetadata_trafficSource_trafficSourceId, |
| 828 core.String requestMetadata_locale, |
| 829 core.String requestMetadata_userOverrides_ipAddress, |
| 830 core.List<core.String> requestMetadata_experimentIds, |
| 831 core.String requestMetadata_trafficSource_trafficSubId, |
| 832 core.String orderBy, |
| 833 core.String requestMetadata_partnersSessionId, |
| 834 core.String requestMetadata_userOverrides_userId}) { |
755 var _url = null; | 835 var _url = null; |
756 var _queryParams = new core.Map(); | 836 var _queryParams = new core.Map(); |
757 var _uploadMedia = null; | 837 var _uploadMedia = null; |
758 var _uploadOptions = null; | 838 var _uploadOptions = null; |
759 var _downloadOptions = commons.DownloadOptions.Metadata; | 839 var _downloadOptions = commons.DownloadOptions.Metadata; |
760 var _body = null; | 840 var _body = null; |
761 | 841 |
762 if (requestMetadata_locale != null) { | |
763 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | |
764 } | |
765 if (requestMetadata_userOverrides_ipAddress != null) { | |
766 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | |
767 } | |
768 if (requestMetadata_experimentIds != null) { | |
769 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | |
770 } | |
771 if (requestMetadata_trafficSource_trafficSubId != null) { | |
772 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
773 } | |
774 if (orderBy != null) { | |
775 _queryParams["orderBy"] = [orderBy]; | |
776 } | |
777 if (requestMetadata_partnersSessionId != null) { | |
778 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
779 } | |
780 if (requestMetadata_userOverrides_userId != null) { | |
781 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
782 } | |
783 if (pageToken != null) { | 842 if (pageToken != null) { |
784 _queryParams["pageToken"] = [pageToken]; | 843 _queryParams["pageToken"] = [pageToken]; |
785 } | 844 } |
786 if (pageSize != null) { | 845 if (pageSize != null) { |
787 _queryParams["pageSize"] = ["${pageSize}"]; | 846 _queryParams["pageSize"] = ["${pageSize}"]; |
788 } | 847 } |
789 if (requestMetadata_trafficSource_trafficSourceId != null) { | 848 if (requestMetadata_trafficSource_trafficSourceId != null) { |
790 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 849 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 850 requestMetadata_trafficSource_trafficSourceId |
| 851 ]; |
| 852 } |
| 853 if (requestMetadata_locale != null) { |
| 854 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 855 } |
| 856 if (requestMetadata_userOverrides_ipAddress != null) { |
| 857 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 858 requestMetadata_userOverrides_ipAddress |
| 859 ]; |
| 860 } |
| 861 if (requestMetadata_experimentIds != null) { |
| 862 _queryParams["requestMetadata.experimentIds"] = |
| 863 requestMetadata_experimentIds; |
| 864 } |
| 865 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 866 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 867 requestMetadata_trafficSource_trafficSubId |
| 868 ]; |
| 869 } |
| 870 if (orderBy != null) { |
| 871 _queryParams["orderBy"] = [orderBy]; |
| 872 } |
| 873 if (requestMetadata_partnersSessionId != null) { |
| 874 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 875 requestMetadata_partnersSessionId |
| 876 ]; |
| 877 } |
| 878 if (requestMetadata_userOverrides_userId != null) { |
| 879 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 880 requestMetadata_userOverrides_userId |
| 881 ]; |
791 } | 882 } |
792 | 883 |
793 _url = 'v2/leads'; | 884 _url = 'v2/leads'; |
794 | 885 |
795 var _response = _requester.request(_url, | 886 var _response = _requester.request(_url, "GET", |
796 "GET", | 887 body: _body, |
797 body: _body, | 888 queryParams: _queryParams, |
798 queryParams: _queryParams, | 889 uploadOptions: _uploadOptions, |
799 uploadOptions: _uploadOptions, | 890 uploadMedia: _uploadMedia, |
800 uploadMedia: _uploadMedia, | 891 downloadOptions: _downloadOptions); |
801 downloadOptions: _downloadOptions); | |
802 return _response.then((data) => new ListLeadsResponse.fromJson(data)); | 892 return _response.then((data) => new ListLeadsResponse.fromJson(data)); |
803 } | 893 } |
804 | |
805 } | 894 } |
806 | 895 |
807 | |
808 class OffersResourceApi { | 896 class OffersResourceApi { |
809 final commons.ApiRequester _requester; | 897 final commons.ApiRequester _requester; |
810 | 898 |
811 OffersHistoryResourceApi get history => new OffersHistoryResourceApi(_requeste
r); | 899 OffersHistoryResourceApi get history => |
| 900 new OffersHistoryResourceApi(_requester); |
812 | 901 |
813 OffersResourceApi(commons.ApiRequester client) : | 902 OffersResourceApi(commons.ApiRequester client) : _requester = client; |
814 _requester = client; | |
815 | 903 |
816 /** | 904 /// Lists the Offers available for the current user |
817 * Lists the Offers available for the current user | 905 /// |
818 * | 906 /// Request parameters: |
819 * Request parameters: | 907 /// |
820 * | 908 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
821 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 909 /// where the traffic comes from. |
822 * | 910 /// An identifier has multiple letters created by a team which redirected the |
823 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 911 /// traffic to us. |
824 * instead of the user's ID. | 912 /// |
825 * | 913 /// [requestMetadata_locale] - Locale to use for the current request. |
826 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 914 /// |
827 * where the traffic comes from. | 915 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
828 * An identifier has multiple letters created by a team which redirected the | 916 /// the user's geo-located IP address. |
829 * traffic to us. | 917 /// |
830 * | 918 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
831 * [requestMetadata_locale] - Locale to use for the current request. | 919 /// belongs to. |
832 * | 920 /// |
833 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 921 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
834 * the user's geo-located IP address. | 922 /// indicate where the traffic comes from. |
835 * | 923 /// An identifier has multiple letters created by a team which redirected the |
836 * [requestMetadata_experimentIds] - Experiment IDs the current request | 924 /// traffic to us. |
837 * belongs to. | 925 /// |
838 * | 926 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
839 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 927 /// instead of the user's ID. |
840 * indicate where the traffic comes from. | 928 /// |
841 * An identifier has multiple letters created by a team which redirected the | 929 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
842 * traffic to us. | 930 /// |
843 * | 931 /// Completes with a [ListOffersResponse]. |
844 * Completes with a [ListOffersResponse]. | 932 /// |
845 * | 933 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
846 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 934 /// an error. |
847 * error. | 935 /// |
848 * | 936 /// If the used [http.Client] completes with an error when making a REST |
849 * If the used [http.Client] completes with an error when making a REST call, | 937 /// call, this method will complete with the same error. |
850 * this method will complete with the same error. | 938 async.Future<ListOffersResponse> list( |
851 */ | 939 {core.String requestMetadata_trafficSource_trafficSourceId, |
852 async.Future<ListOffersResponse> list({core.String requestMetadata_partnersSes
sionId, core.String requestMetadata_userOverrides_userId, core.String requestMet
adata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.St
ring requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMeta
data_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { | 940 core.String requestMetadata_locale, |
| 941 core.String requestMetadata_userOverrides_ipAddress, |
| 942 core.List<core.String> requestMetadata_experimentIds, |
| 943 core.String requestMetadata_trafficSource_trafficSubId, |
| 944 core.String requestMetadata_userOverrides_userId, |
| 945 core.String requestMetadata_partnersSessionId}) { |
853 var _url = null; | 946 var _url = null; |
854 var _queryParams = new core.Map(); | 947 var _queryParams = new core.Map(); |
855 var _uploadMedia = null; | 948 var _uploadMedia = null; |
856 var _uploadOptions = null; | 949 var _uploadOptions = null; |
857 var _downloadOptions = commons.DownloadOptions.Metadata; | 950 var _downloadOptions = commons.DownloadOptions.Metadata; |
858 var _body = null; | 951 var _body = null; |
859 | 952 |
860 if (requestMetadata_partnersSessionId != null) { | |
861 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
862 } | |
863 if (requestMetadata_userOverrides_userId != null) { | |
864 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
865 } | |
866 if (requestMetadata_trafficSource_trafficSourceId != null) { | 953 if (requestMetadata_trafficSource_trafficSourceId != null) { |
867 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 954 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 955 requestMetadata_trafficSource_trafficSourceId |
| 956 ]; |
868 } | 957 } |
869 if (requestMetadata_locale != null) { | 958 if (requestMetadata_locale != null) { |
870 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 959 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
871 } | 960 } |
872 if (requestMetadata_userOverrides_ipAddress != null) { | 961 if (requestMetadata_userOverrides_ipAddress != null) { |
873 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 962 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 963 requestMetadata_userOverrides_ipAddress |
| 964 ]; |
874 } | 965 } |
875 if (requestMetadata_experimentIds != null) { | 966 if (requestMetadata_experimentIds != null) { |
876 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 967 _queryParams["requestMetadata.experimentIds"] = |
| 968 requestMetadata_experimentIds; |
877 } | 969 } |
878 if (requestMetadata_trafficSource_trafficSubId != null) { | 970 if (requestMetadata_trafficSource_trafficSubId != null) { |
879 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 971 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 972 requestMetadata_trafficSource_trafficSubId |
| 973 ]; |
| 974 } |
| 975 if (requestMetadata_userOverrides_userId != null) { |
| 976 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 977 requestMetadata_userOverrides_userId |
| 978 ]; |
| 979 } |
| 980 if (requestMetadata_partnersSessionId != null) { |
| 981 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 982 requestMetadata_partnersSessionId |
| 983 ]; |
880 } | 984 } |
881 | 985 |
882 _url = 'v2/offers'; | 986 _url = 'v2/offers'; |
883 | 987 |
884 var _response = _requester.request(_url, | 988 var _response = _requester.request(_url, "GET", |
885 "GET", | 989 body: _body, |
886 body: _body, | 990 queryParams: _queryParams, |
887 queryParams: _queryParams, | 991 uploadOptions: _uploadOptions, |
888 uploadOptions: _uploadOptions, | 992 uploadMedia: _uploadMedia, |
889 uploadMedia: _uploadMedia, | 993 downloadOptions: _downloadOptions); |
890 downloadOptions: _downloadOptions); | |
891 return _response.then((data) => new ListOffersResponse.fromJson(data)); | 994 return _response.then((data) => new ListOffersResponse.fromJson(data)); |
892 } | 995 } |
893 | |
894 } | 996 } |
895 | 997 |
896 | |
897 class OffersHistoryResourceApi { | 998 class OffersHistoryResourceApi { |
898 final commons.ApiRequester _requester; | 999 final commons.ApiRequester _requester; |
899 | 1000 |
900 OffersHistoryResourceApi(commons.ApiRequester client) : | 1001 OffersHistoryResourceApi(commons.ApiRequester client) : _requester = client; |
901 _requester = client; | |
902 | 1002 |
903 /** | 1003 /// Lists the Historical Offers for the current user (or user's entire |
904 * Lists the Historical Offers for the current user (or user's entire company) | 1004 /// company) |
905 * | 1005 /// |
906 * Request parameters: | 1006 /// Request parameters: |
907 * | 1007 /// |
908 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1008 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
909 * belongs to. | 1009 /// instead of the user's ID. |
910 * | 1010 /// |
911 * [entireCompany] - if true, show history for the entire company. Requires | 1011 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
912 * user to be admin. | 1012 /// |
913 * | 1013 /// [pageToken] - Token to retrieve a specific page. |
914 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1014 /// |
915 * indicate where the traffic comes from. | 1015 /// [pageSize] - Maximum number of rows to return per page. |
916 * An identifier has multiple letters created by a team which redirected the | 1016 /// |
917 * traffic to us. | 1017 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
918 * | 1018 /// where the traffic comes from. |
919 * [orderBy] - Comma-separated list of fields to order by, e.g.: | 1019 /// An identifier has multiple letters created by a team which redirected the |
920 * "foo,bar,baz". | 1020 /// traffic to us. |
921 * Use "foo desc" to sort descending. | 1021 /// |
922 * List of valid field names is: name, offer_code, expiration_time, status, | 1022 /// [requestMetadata_locale] - Locale to use for the current request. |
923 * last_modified_time, sender_name, creation_time, country_code, | 1023 /// |
924 * offer_type. | 1024 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
925 * | 1025 /// the user's geo-located IP address. |
926 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1026 /// |
927 * | 1027 /// [entireCompany] - if true, show history for the entire company. Requires |
928 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1028 /// user to be admin. |
929 * instead of the user's ID. | 1029 /// |
930 * | 1030 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
931 * [pageToken] - Token to retrieve a specific page. | 1031 /// belongs to. |
932 * | 1032 /// |
933 * [pageSize] - Maximum number of rows to return per page. | 1033 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
934 * | 1034 /// indicate where the traffic comes from. |
935 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1035 /// An identifier has multiple letters created by a team which redirected the |
936 * where the traffic comes from. | 1036 /// traffic to us. |
937 * An identifier has multiple letters created by a team which redirected the | 1037 /// |
938 * traffic to us. | 1038 /// [orderBy] - Comma-separated list of fields to order by, e.g.: |
939 * | 1039 /// "foo,bar,baz". |
940 * [requestMetadata_locale] - Locale to use for the current request. | 1040 /// Use "foo desc" to sort descending. |
941 * | 1041 /// List of valid field names is: name, offer_code, expiration_time, status, |
942 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1042 /// last_modified_time, sender_name, creation_time, country_code, |
943 * the user's geo-located IP address. | 1043 /// offer_type. |
944 * | 1044 /// |
945 * Completes with a [ListOffersHistoryResponse]. | 1045 /// Completes with a [ListOffersHistoryResponse]. |
946 * | 1046 /// |
947 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1047 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
948 * error. | 1048 /// an error. |
949 * | 1049 /// |
950 * If the used [http.Client] completes with an error when making a REST call, | 1050 /// If the used [http.Client] completes with an error when making a REST |
951 * this method will complete with the same error. | 1051 /// call, this method will complete with the same error. |
952 */ | 1052 async.Future<ListOffersHistoryResponse> list( |
953 async.Future<ListOffersHistoryResponse> list({core.List<core.String> requestMe
tadata_experimentIds, core.bool entireCompany, core.String requestMetadata_traff
icSource_trafficSubId, core.String orderBy, core.String requestMetadata_partners
SessionId, core.String requestMetadata_userOverrides_userId, core.String pageTok
en, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId
, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_
ipAddress}) { | 1053 {core.String requestMetadata_userOverrides_userId, |
| 1054 core.String requestMetadata_partnersSessionId, |
| 1055 core.String pageToken, |
| 1056 core.int pageSize, |
| 1057 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1058 core.String requestMetadata_locale, |
| 1059 core.String requestMetadata_userOverrides_ipAddress, |
| 1060 core.bool entireCompany, |
| 1061 core.List<core.String> requestMetadata_experimentIds, |
| 1062 core.String requestMetadata_trafficSource_trafficSubId, |
| 1063 core.String orderBy}) { |
954 var _url = null; | 1064 var _url = null; |
955 var _queryParams = new core.Map(); | 1065 var _queryParams = new core.Map(); |
956 var _uploadMedia = null; | 1066 var _uploadMedia = null; |
957 var _uploadOptions = null; | 1067 var _uploadOptions = null; |
958 var _downloadOptions = commons.DownloadOptions.Metadata; | 1068 var _downloadOptions = commons.DownloadOptions.Metadata; |
959 var _body = null; | 1069 var _body = null; |
960 | 1070 |
961 if (requestMetadata_experimentIds != null) { | 1071 if (requestMetadata_userOverrides_userId != null) { |
962 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1072 _queryParams["requestMetadata.userOverrides.userId"] = [ |
963 } | 1073 requestMetadata_userOverrides_userId |
964 if (entireCompany != null) { | 1074 ]; |
965 _queryParams["entireCompany"] = ["${entireCompany}"]; | |
966 } | |
967 if (requestMetadata_trafficSource_trafficSubId != null) { | |
968 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
969 } | |
970 if (orderBy != null) { | |
971 _queryParams["orderBy"] = [orderBy]; | |
972 } | 1075 } |
973 if (requestMetadata_partnersSessionId != null) { | 1076 if (requestMetadata_partnersSessionId != null) { |
974 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1077 _queryParams["requestMetadata.partnersSessionId"] = [ |
975 } | 1078 requestMetadata_partnersSessionId |
976 if (requestMetadata_userOverrides_userId != null) { | 1079 ]; |
977 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
978 } | 1080 } |
979 if (pageToken != null) { | 1081 if (pageToken != null) { |
980 _queryParams["pageToken"] = [pageToken]; | 1082 _queryParams["pageToken"] = [pageToken]; |
981 } | 1083 } |
982 if (pageSize != null) { | 1084 if (pageSize != null) { |
983 _queryParams["pageSize"] = ["${pageSize}"]; | 1085 _queryParams["pageSize"] = ["${pageSize}"]; |
984 } | 1086 } |
985 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1087 if (requestMetadata_trafficSource_trafficSourceId != null) { |
986 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1088 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1089 requestMetadata_trafficSource_trafficSourceId |
| 1090 ]; |
987 } | 1091 } |
988 if (requestMetadata_locale != null) { | 1092 if (requestMetadata_locale != null) { |
989 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1093 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
990 } | 1094 } |
991 if (requestMetadata_userOverrides_ipAddress != null) { | 1095 if (requestMetadata_userOverrides_ipAddress != null) { |
992 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1096 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1097 requestMetadata_userOverrides_ipAddress |
| 1098 ]; |
| 1099 } |
| 1100 if (entireCompany != null) { |
| 1101 _queryParams["entireCompany"] = ["${entireCompany}"]; |
| 1102 } |
| 1103 if (requestMetadata_experimentIds != null) { |
| 1104 _queryParams["requestMetadata.experimentIds"] = |
| 1105 requestMetadata_experimentIds; |
| 1106 } |
| 1107 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1108 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1109 requestMetadata_trafficSource_trafficSubId |
| 1110 ]; |
| 1111 } |
| 1112 if (orderBy != null) { |
| 1113 _queryParams["orderBy"] = [orderBy]; |
993 } | 1114 } |
994 | 1115 |
995 _url = 'v2/offers/history'; | 1116 _url = 'v2/offers/history'; |
996 | 1117 |
997 var _response = _requester.request(_url, | 1118 var _response = _requester.request(_url, "GET", |
998 "GET", | 1119 body: _body, |
999 body: _body, | 1120 queryParams: _queryParams, |
1000 queryParams: _queryParams, | 1121 uploadOptions: _uploadOptions, |
1001 uploadOptions: _uploadOptions, | 1122 uploadMedia: _uploadMedia, |
1002 uploadMedia: _uploadMedia, | 1123 downloadOptions: _downloadOptions); |
1003 downloadOptions: _downloadOptions); | 1124 return _response |
1004 return _response.then((data) => new ListOffersHistoryResponse.fromJson(data)
); | 1125 .then((data) => new ListOffersHistoryResponse.fromJson(data)); |
1005 } | 1126 } |
1006 | |
1007 } | 1127 } |
1008 | 1128 |
1009 | |
1010 class UserEventsResourceApi { | 1129 class UserEventsResourceApi { |
1011 final commons.ApiRequester _requester; | 1130 final commons.ApiRequester _requester; |
1012 | 1131 |
1013 UserEventsResourceApi(commons.ApiRequester client) : | 1132 UserEventsResourceApi(commons.ApiRequester client) : _requester = client; |
1014 _requester = client; | |
1015 | 1133 |
1016 /** | 1134 /// Logs a user event. |
1017 * Logs a user event. | 1135 /// |
1018 * | 1136 /// [request] - The metadata request object. |
1019 * [request] - The metadata request object. | 1137 /// |
1020 * | 1138 /// Request parameters: |
1021 * Request parameters: | 1139 /// |
1022 * | 1140 /// Completes with a [LogUserEventResponse]. |
1023 * Completes with a [LogUserEventResponse]. | 1141 /// |
1024 * | 1142 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1025 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1143 /// an error. |
1026 * error. | 1144 /// |
1027 * | 1145 /// If the used [http.Client] completes with an error when making a REST |
1028 * If the used [http.Client] completes with an error when making a REST call, | 1146 /// call, this method will complete with the same error. |
1029 * this method will complete with the same error. | |
1030 */ | |
1031 async.Future<LogUserEventResponse> log(LogUserEventRequest request) { | 1147 async.Future<LogUserEventResponse> log(LogUserEventRequest request) { |
1032 var _url = null; | 1148 var _url = null; |
1033 var _queryParams = new core.Map(); | 1149 var _queryParams = new core.Map(); |
1034 var _uploadMedia = null; | 1150 var _uploadMedia = null; |
1035 var _uploadOptions = null; | 1151 var _uploadOptions = null; |
1036 var _downloadOptions = commons.DownloadOptions.Metadata; | 1152 var _downloadOptions = commons.DownloadOptions.Metadata; |
1037 var _body = null; | 1153 var _body = null; |
1038 | 1154 |
1039 if (request != null) { | 1155 if (request != null) { |
1040 _body = convert.JSON.encode((request).toJson()); | 1156 _body = convert.JSON.encode((request).toJson()); |
1041 } | 1157 } |
1042 | 1158 |
1043 _url = 'v2/userEvents:log'; | 1159 _url = 'v2/userEvents:log'; |
1044 | 1160 |
1045 var _response = _requester.request(_url, | 1161 var _response = _requester.request(_url, "POST", |
1046 "POST", | 1162 body: _body, |
1047 body: _body, | 1163 queryParams: _queryParams, |
1048 queryParams: _queryParams, | 1164 uploadOptions: _uploadOptions, |
1049 uploadOptions: _uploadOptions, | 1165 uploadMedia: _uploadMedia, |
1050 uploadMedia: _uploadMedia, | 1166 downloadOptions: _downloadOptions); |
1051 downloadOptions: _downloadOptions); | |
1052 return _response.then((data) => new LogUserEventResponse.fromJson(data)); | 1167 return _response.then((data) => new LogUserEventResponse.fromJson(data)); |
1053 } | 1168 } |
1054 | |
1055 } | 1169 } |
1056 | 1170 |
1057 | |
1058 class UserStatesResourceApi { | 1171 class UserStatesResourceApi { |
1059 final commons.ApiRequester _requester; | 1172 final commons.ApiRequester _requester; |
1060 | 1173 |
1061 UserStatesResourceApi(commons.ApiRequester client) : | 1174 UserStatesResourceApi(commons.ApiRequester client) : _requester = client; |
1062 _requester = client; | |
1063 | 1175 |
1064 /** | 1176 /// Lists states for current user. |
1065 * Lists states for current user. | 1177 /// |
1066 * | 1178 /// Request parameters: |
1067 * Request parameters: | 1179 /// |
1068 * | 1180 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1069 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1181 /// instead of the user's ID. |
1070 * instead of the user's ID. | 1182 /// |
1071 * | 1183 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1072 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1184 /// |
1073 * | 1185 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1074 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1186 /// where the traffic comes from. |
1075 * where the traffic comes from. | 1187 /// An identifier has multiple letters created by a team which redirected the |
1076 * An identifier has multiple letters created by a team which redirected the | 1188 /// traffic to us. |
1077 * traffic to us. | 1189 /// |
1078 * | 1190 /// [requestMetadata_locale] - Locale to use for the current request. |
1079 * [requestMetadata_locale] - Locale to use for the current request. | 1191 /// |
1080 * | 1192 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1081 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1193 /// the user's geo-located IP address. |
1082 * the user's geo-located IP address. | 1194 /// |
1083 * | 1195 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1084 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1196 /// belongs to. |
1085 * belongs to. | 1197 /// |
1086 * | 1198 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1087 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1199 /// indicate where the traffic comes from. |
1088 * indicate where the traffic comes from. | 1200 /// An identifier has multiple letters created by a team which redirected the |
1089 * An identifier has multiple letters created by a team which redirected the | 1201 /// traffic to us. |
1090 * traffic to us. | 1202 /// |
1091 * | 1203 /// Completes with a [ListUserStatesResponse]. |
1092 * Completes with a [ListUserStatesResponse]. | 1204 /// |
1093 * | 1205 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1094 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1206 /// an error. |
1095 * error. | 1207 /// |
1096 * | 1208 /// If the used [http.Client] completes with an error when making a REST |
1097 * If the used [http.Client] completes with an error when making a REST call, | 1209 /// call, this method will complete with the same error. |
1098 * this method will complete with the same error. | 1210 async.Future<ListUserStatesResponse> list( |
1099 */ | 1211 {core.String requestMetadata_userOverrides_userId, |
1100 async.Future<ListUserStatesResponse> list({core.String requestMetadata_userOve
rrides_userId, core.String requestMetadata_partnersSessionId, core.String reques
tMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, cor
e.String requestMetadata_userOverrides_ipAddress, core.List<core.String> request
Metadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId})
{ | 1212 core.String requestMetadata_partnersSessionId, |
| 1213 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1214 core.String requestMetadata_locale, |
| 1215 core.String requestMetadata_userOverrides_ipAddress, |
| 1216 core.List<core.String> requestMetadata_experimentIds, |
| 1217 core.String requestMetadata_trafficSource_trafficSubId}) { |
1101 var _url = null; | 1218 var _url = null; |
1102 var _queryParams = new core.Map(); | 1219 var _queryParams = new core.Map(); |
1103 var _uploadMedia = null; | 1220 var _uploadMedia = null; |
1104 var _uploadOptions = null; | 1221 var _uploadOptions = null; |
1105 var _downloadOptions = commons.DownloadOptions.Metadata; | 1222 var _downloadOptions = commons.DownloadOptions.Metadata; |
1106 var _body = null; | 1223 var _body = null; |
1107 | 1224 |
1108 if (requestMetadata_userOverrides_userId != null) { | 1225 if (requestMetadata_userOverrides_userId != null) { |
1109 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1226 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 1227 requestMetadata_userOverrides_userId |
| 1228 ]; |
1110 } | 1229 } |
1111 if (requestMetadata_partnersSessionId != null) { | 1230 if (requestMetadata_partnersSessionId != null) { |
1112 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1231 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 1232 requestMetadata_partnersSessionId |
| 1233 ]; |
1113 } | 1234 } |
1114 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1235 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1115 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1236 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1237 requestMetadata_trafficSource_trafficSourceId |
| 1238 ]; |
1116 } | 1239 } |
1117 if (requestMetadata_locale != null) { | 1240 if (requestMetadata_locale != null) { |
1118 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1241 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1119 } | 1242 } |
1120 if (requestMetadata_userOverrides_ipAddress != null) { | 1243 if (requestMetadata_userOverrides_ipAddress != null) { |
1121 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1244 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1245 requestMetadata_userOverrides_ipAddress |
| 1246 ]; |
1122 } | 1247 } |
1123 if (requestMetadata_experimentIds != null) { | 1248 if (requestMetadata_experimentIds != null) { |
1124 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1249 _queryParams["requestMetadata.experimentIds"] = |
| 1250 requestMetadata_experimentIds; |
1125 } | 1251 } |
1126 if (requestMetadata_trafficSource_trafficSubId != null) { | 1252 if (requestMetadata_trafficSource_trafficSubId != null) { |
1127 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1253 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1254 requestMetadata_trafficSource_trafficSubId |
| 1255 ]; |
1128 } | 1256 } |
1129 | 1257 |
1130 _url = 'v2/userStates'; | 1258 _url = 'v2/userStates'; |
1131 | 1259 |
1132 var _response = _requester.request(_url, | 1260 var _response = _requester.request(_url, "GET", |
1133 "GET", | 1261 body: _body, |
1134 body: _body, | 1262 queryParams: _queryParams, |
1135 queryParams: _queryParams, | 1263 uploadOptions: _uploadOptions, |
1136 uploadOptions: _uploadOptions, | 1264 uploadMedia: _uploadMedia, |
1137 uploadMedia: _uploadMedia, | 1265 downloadOptions: _downloadOptions); |
1138 downloadOptions: _downloadOptions); | |
1139 return _response.then((data) => new ListUserStatesResponse.fromJson(data)); | 1266 return _response.then((data) => new ListUserStatesResponse.fromJson(data)); |
1140 } | 1267 } |
1141 | |
1142 } | 1268 } |
1143 | 1269 |
1144 | |
1145 class UsersResourceApi { | 1270 class UsersResourceApi { |
1146 final commons.ApiRequester _requester; | 1271 final commons.ApiRequester _requester; |
1147 | 1272 |
1148 UsersResourceApi(commons.ApiRequester client) : | 1273 UsersResourceApi(commons.ApiRequester client) : _requester = client; |
1149 _requester = client; | |
1150 | 1274 |
1151 /** | 1275 /// Creates a user's company relation. Affiliates the user to a company. |
1152 * Creates a user's company relation. Affiliates the user to a company. | 1276 /// |
1153 * | 1277 /// [request] - The metadata request object. |
1154 * [request] - The metadata request object. | 1278 /// |
1155 * | 1279 /// Request parameters: |
1156 * Request parameters: | 1280 /// |
1157 * | 1281 /// [userId] - The ID of the user. Can be set to <code>me</code> to mean |
1158 * [userId] - The ID of the user. Can be set to <code>me</code> to mean | 1282 /// the currently authenticated user. |
1159 * the currently authenticated user. | 1283 /// |
1160 * | 1284 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1161 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1285 /// where the traffic comes from. |
1162 * instead of the user's ID. | 1286 /// An identifier has multiple letters created by a team which redirected the |
1163 * | 1287 /// traffic to us. |
1164 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1288 /// |
1165 * | 1289 /// [requestMetadata_locale] - Locale to use for the current request. |
1166 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1290 /// |
1167 * where the traffic comes from. | 1291 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1168 * An identifier has multiple letters created by a team which redirected the | 1292 /// the user's geo-located IP address. |
1169 * traffic to us. | 1293 /// |
1170 * | 1294 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1171 * [requestMetadata_locale] - Locale to use for the current request. | 1295 /// belongs to. |
1172 * | 1296 /// |
1173 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1297 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1174 * the user's geo-located IP address. | 1298 /// indicate where the traffic comes from. |
1175 * | 1299 /// An identifier has multiple letters created by a team which redirected the |
1176 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1300 /// traffic to us. |
1177 * belongs to. | 1301 /// |
1178 * | 1302 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1179 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1303 /// instead of the user's ID. |
1180 * indicate where the traffic comes from. | 1304 /// |
1181 * An identifier has multiple letters created by a team which redirected the | 1305 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1182 * traffic to us. | 1306 /// |
1183 * | 1307 /// Completes with a [CompanyRelation]. |
1184 * Completes with a [CompanyRelation]. | 1308 /// |
1185 * | 1309 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1310 /// an error. |
1187 * error. | 1311 /// |
1188 * | 1312 /// If the used [http.Client] completes with an error when making a REST |
1189 * If the used [http.Client] completes with an error when making a REST call, | 1313 /// call, this method will complete with the same error. |
1190 * this method will complete with the same error. | 1314 async.Future<CompanyRelation> createCompanyRelation( |
1191 */ | 1315 CompanyRelation request, core.String userId, |
1192 async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, c
ore.String userId, {core.String requestMetadata_userOverrides_userId, core.Strin
g requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_t
rafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_
userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, c
ore.String requestMetadata_trafficSource_trafficSubId}) { | 1316 {core.String requestMetadata_trafficSource_trafficSourceId, |
| 1317 core.String requestMetadata_locale, |
| 1318 core.String requestMetadata_userOverrides_ipAddress, |
| 1319 core.List<core.String> requestMetadata_experimentIds, |
| 1320 core.String requestMetadata_trafficSource_trafficSubId, |
| 1321 core.String requestMetadata_userOverrides_userId, |
| 1322 core.String requestMetadata_partnersSessionId}) { |
1193 var _url = null; | 1323 var _url = null; |
1194 var _queryParams = new core.Map(); | 1324 var _queryParams = new core.Map(); |
1195 var _uploadMedia = null; | 1325 var _uploadMedia = null; |
1196 var _uploadOptions = null; | 1326 var _uploadOptions = null; |
1197 var _downloadOptions = commons.DownloadOptions.Metadata; | 1327 var _downloadOptions = commons.DownloadOptions.Metadata; |
1198 var _body = null; | 1328 var _body = null; |
1199 | 1329 |
1200 if (request != null) { | 1330 if (request != null) { |
1201 _body = convert.JSON.encode((request).toJson()); | 1331 _body = convert.JSON.encode((request).toJson()); |
1202 } | 1332 } |
1203 if (userId == null) { | 1333 if (userId == null) { |
1204 throw new core.ArgumentError("Parameter userId is required."); | 1334 throw new core.ArgumentError("Parameter userId is required."); |
1205 } | 1335 } |
1206 if (requestMetadata_userOverrides_userId != null) { | |
1207 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
1208 } | |
1209 if (requestMetadata_partnersSessionId != null) { | |
1210 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
1211 } | |
1212 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1336 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1213 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1337 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1338 requestMetadata_trafficSource_trafficSourceId |
| 1339 ]; |
1214 } | 1340 } |
1215 if (requestMetadata_locale != null) { | 1341 if (requestMetadata_locale != null) { |
1216 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1342 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1217 } | 1343 } |
1218 if (requestMetadata_userOverrides_ipAddress != null) { | 1344 if (requestMetadata_userOverrides_ipAddress != null) { |
1219 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1345 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1346 requestMetadata_userOverrides_ipAddress |
| 1347 ]; |
1220 } | 1348 } |
1221 if (requestMetadata_experimentIds != null) { | 1349 if (requestMetadata_experimentIds != null) { |
1222 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1350 _queryParams["requestMetadata.experimentIds"] = |
| 1351 requestMetadata_experimentIds; |
1223 } | 1352 } |
1224 if (requestMetadata_trafficSource_trafficSubId != null) { | 1353 if (requestMetadata_trafficSource_trafficSubId != null) { |
1225 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1354 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1355 requestMetadata_trafficSource_trafficSubId |
| 1356 ]; |
| 1357 } |
| 1358 if (requestMetadata_userOverrides_userId != null) { |
| 1359 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 1360 requestMetadata_userOverrides_userId |
| 1361 ]; |
| 1362 } |
| 1363 if (requestMetadata_partnersSessionId != null) { |
| 1364 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 1365 requestMetadata_partnersSessionId |
| 1366 ]; |
1226 } | 1367 } |
1227 | 1368 |
1228 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId') + '/companyRel
ation'; | 1369 _url = 'v2/users/' + |
| 1370 commons.Escaper.ecapeVariable('$userId') + |
| 1371 '/companyRelation'; |
1229 | 1372 |
1230 var _response = _requester.request(_url, | 1373 var _response = _requester.request(_url, "PUT", |
1231 "PUT", | 1374 body: _body, |
1232 body: _body, | 1375 queryParams: _queryParams, |
1233 queryParams: _queryParams, | 1376 uploadOptions: _uploadOptions, |
1234 uploadOptions: _uploadOptions, | 1377 uploadMedia: _uploadMedia, |
1235 uploadMedia: _uploadMedia, | 1378 downloadOptions: _downloadOptions); |
1236 downloadOptions: _downloadOptions); | |
1237 return _response.then((data) => new CompanyRelation.fromJson(data)); | 1379 return _response.then((data) => new CompanyRelation.fromJson(data)); |
1238 } | 1380 } |
1239 | 1381 |
1240 /** | 1382 /// Deletes a user's company relation. Unaffiliaites the user from a company. |
1241 * Deletes a user's company relation. Unaffiliaites the user from a company. | 1383 /// |
1242 * | 1384 /// Request parameters: |
1243 * Request parameters: | 1385 /// |
1244 * | 1386 /// [userId] - The ID of the user. Can be set to <code>me</code> to mean |
1245 * [userId] - The ID of the user. Can be set to <code>me</code> to mean | 1387 /// the currently authenticated user. |
1246 * the currently authenticated user. | 1388 /// |
1247 * | 1389 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1248 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1390 /// instead of the user's ID. |
1249 * belongs to. | 1391 /// |
1250 * | 1392 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1251 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1393 /// |
1252 * indicate where the traffic comes from. | 1394 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1253 * An identifier has multiple letters created by a team which redirected the | 1395 /// where the traffic comes from. |
1254 * traffic to us. | 1396 /// An identifier has multiple letters created by a team which redirected the |
1255 * | 1397 /// traffic to us. |
1256 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1398 /// |
1257 * | 1399 /// [requestMetadata_locale] - Locale to use for the current request. |
1258 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1400 /// |
1259 * instead of the user's ID. | 1401 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1260 * | 1402 /// the user's geo-located IP address. |
1261 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1403 /// |
1262 * where the traffic comes from. | 1404 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1263 * An identifier has multiple letters created by a team which redirected the | 1405 /// belongs to. |
1264 * traffic to us. | 1406 /// |
1265 * | 1407 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1266 * [requestMetadata_locale] - Locale to use for the current request. | 1408 /// indicate where the traffic comes from. |
1267 * | 1409 /// An identifier has multiple letters created by a team which redirected the |
1268 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1410 /// traffic to us. |
1269 * the user's geo-located IP address. | 1411 /// |
1270 * | 1412 /// Completes with a [Empty]. |
1271 * Completes with a [Empty]. | 1413 /// |
1272 * | 1414 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1273 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1415 /// an error. |
1274 * error. | 1416 /// |
1275 * | 1417 /// If the used [http.Client] completes with an error when making a REST |
1276 * If the used [http.Client] completes with an error when making a REST call, | 1418 /// call, this method will complete with the same error. |
1277 * this method will complete with the same error. | 1419 async.Future<Empty> deleteCompanyRelation(core.String userId, |
1278 */ | 1420 {core.String requestMetadata_userOverrides_userId, |
1279 async.Future<Empty> deleteCompanyRelation(core.String userId, {core.List<core.
String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource
_trafficSubId, core.String requestMetadata_partnersSessionId, core.String reques
tMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_traffi
cSourceId, core.String requestMetadata_locale, core.String requestMetadata_userO
verrides_ipAddress}) { | 1421 core.String requestMetadata_partnersSessionId, |
| 1422 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1423 core.String requestMetadata_locale, |
| 1424 core.String requestMetadata_userOverrides_ipAddress, |
| 1425 core.List<core.String> requestMetadata_experimentIds, |
| 1426 core.String requestMetadata_trafficSource_trafficSubId}) { |
1280 var _url = null; | 1427 var _url = null; |
1281 var _queryParams = new core.Map(); | 1428 var _queryParams = new core.Map(); |
1282 var _uploadMedia = null; | 1429 var _uploadMedia = null; |
1283 var _uploadOptions = null; | 1430 var _uploadOptions = null; |
1284 var _downloadOptions = commons.DownloadOptions.Metadata; | 1431 var _downloadOptions = commons.DownloadOptions.Metadata; |
1285 var _body = null; | 1432 var _body = null; |
1286 | 1433 |
1287 if (userId == null) { | 1434 if (userId == null) { |
1288 throw new core.ArgumentError("Parameter userId is required."); | 1435 throw new core.ArgumentError("Parameter userId is required."); |
1289 } | 1436 } |
1290 if (requestMetadata_experimentIds != null) { | 1437 if (requestMetadata_userOverrides_userId != null) { |
1291 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1438 _queryParams["requestMetadata.userOverrides.userId"] = [ |
1292 } | 1439 requestMetadata_userOverrides_userId |
1293 if (requestMetadata_trafficSource_trafficSubId != null) { | 1440 ]; |
1294 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
1295 } | 1441 } |
1296 if (requestMetadata_partnersSessionId != null) { | 1442 if (requestMetadata_partnersSessionId != null) { |
1297 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1443 _queryParams["requestMetadata.partnersSessionId"] = [ |
1298 } | 1444 requestMetadata_partnersSessionId |
1299 if (requestMetadata_userOverrides_userId != null) { | 1445 ]; |
1300 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
1301 } | 1446 } |
1302 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1447 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1303 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1448 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1449 requestMetadata_trafficSource_trafficSourceId |
| 1450 ]; |
1304 } | 1451 } |
1305 if (requestMetadata_locale != null) { | 1452 if (requestMetadata_locale != null) { |
1306 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1453 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1307 } | 1454 } |
1308 if (requestMetadata_userOverrides_ipAddress != null) { | 1455 if (requestMetadata_userOverrides_ipAddress != null) { |
1309 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1456 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1457 requestMetadata_userOverrides_ipAddress |
| 1458 ]; |
| 1459 } |
| 1460 if (requestMetadata_experimentIds != null) { |
| 1461 _queryParams["requestMetadata.experimentIds"] = |
| 1462 requestMetadata_experimentIds; |
| 1463 } |
| 1464 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1465 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1466 requestMetadata_trafficSource_trafficSubId |
| 1467 ]; |
1310 } | 1468 } |
1311 | 1469 |
1312 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId') + '/companyRel
ation'; | 1470 _url = 'v2/users/' + |
| 1471 commons.Escaper.ecapeVariable('$userId') + |
| 1472 '/companyRelation'; |
1313 | 1473 |
1314 var _response = _requester.request(_url, | 1474 var _response = _requester.request(_url, "DELETE", |
1315 "DELETE", | 1475 body: _body, |
1316 body: _body, | 1476 queryParams: _queryParams, |
1317 queryParams: _queryParams, | 1477 uploadOptions: _uploadOptions, |
1318 uploadOptions: _uploadOptions, | 1478 uploadMedia: _uploadMedia, |
1319 uploadMedia: _uploadMedia, | 1479 downloadOptions: _downloadOptions); |
1320 downloadOptions: _downloadOptions); | |
1321 return _response.then((data) => new Empty.fromJson(data)); | 1480 return _response.then((data) => new Empty.fromJson(data)); |
1322 } | 1481 } |
1323 | 1482 |
1324 /** | 1483 /// Gets a user. |
1325 * Gets a user. | 1484 /// |
1326 * | 1485 /// Request parameters: |
1327 * Request parameters: | 1486 /// |
1328 * | 1487 /// [userId] - Identifier of the user. Can be set to <code>me</code> to mean |
1329 * [userId] - Identifier of the user. Can be set to <code>me</code> to mean | 1488 /// the currently |
1330 * the currently | 1489 /// authenticated user. |
1331 * authenticated user. | 1490 /// |
1332 * | 1491 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1333 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1492 /// instead of the user's ID. |
1334 * belongs to. | 1493 /// |
1335 * | 1494 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1336 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1495 /// |
1337 * indicate where the traffic comes from. | 1496 /// [userView] - Specifies what parts of the user information to return. |
1338 * An identifier has multiple letters created by a team which redirected the | 1497 /// Possible string values are: |
1339 * traffic to us. | 1498 /// - "BASIC" : A BASIC. |
1340 * | 1499 /// - "PROFILE" : A PROFILE. |
1341 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1500 /// - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. |
1342 * | 1501 /// |
1343 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1502 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1344 * instead of the user's ID. | 1503 /// where the traffic comes from. |
1345 * | 1504 /// An identifier has multiple letters created by a team which redirected the |
1346 * [userView] - Specifies what parts of the user information to return. | 1505 /// traffic to us. |
1347 * Possible string values are: | 1506 /// |
1348 * - "BASIC" : A BASIC. | 1507 /// [requestMetadata_locale] - Locale to use for the current request. |
1349 * - "PROFILE" : A PROFILE. | 1508 /// |
1350 * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. | 1509 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1351 * | 1510 /// the user's geo-located IP address. |
1352 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1511 /// |
1353 * where the traffic comes from. | 1512 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1354 * An identifier has multiple letters created by a team which redirected the | 1513 /// belongs to. |
1355 * traffic to us. | 1514 /// |
1356 * | 1515 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1357 * [requestMetadata_locale] - Locale to use for the current request. | 1516 /// indicate where the traffic comes from. |
1358 * | 1517 /// An identifier has multiple letters created by a team which redirected the |
1359 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1518 /// traffic to us. |
1360 * the user's geo-located IP address. | 1519 /// |
1361 * | 1520 /// Completes with a [User]. |
1362 * Completes with a [User]. | 1521 /// |
1363 * | 1522 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1523 /// an error. |
1365 * error. | 1524 /// |
1366 * | 1525 /// If the used [http.Client] completes with an error when making a REST |
1367 * If the used [http.Client] completes with an error when making a REST call, | 1526 /// call, this method will complete with the same error. |
1368 * this method will complete with the same error. | 1527 async.Future<User> get(core.String userId, |
1369 */ | 1528 {core.String requestMetadata_userOverrides_userId, |
1370 async.Future<User> get(core.String userId, {core.List<core.String> requestMeta
data_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core
.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverr
ides_userId, core.String userView, core.String requestMetadata_trafficSource_tra
fficSourceId, core.String requestMetadata_locale, core.String requestMetadata_us
erOverrides_ipAddress}) { | 1529 core.String requestMetadata_partnersSessionId, |
| 1530 core.String userView, |
| 1531 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1532 core.String requestMetadata_locale, |
| 1533 core.String requestMetadata_userOverrides_ipAddress, |
| 1534 core.List<core.String> requestMetadata_experimentIds, |
| 1535 core.String requestMetadata_trafficSource_trafficSubId}) { |
1371 var _url = null; | 1536 var _url = null; |
1372 var _queryParams = new core.Map(); | 1537 var _queryParams = new core.Map(); |
1373 var _uploadMedia = null; | 1538 var _uploadMedia = null; |
1374 var _uploadOptions = null; | 1539 var _uploadOptions = null; |
1375 var _downloadOptions = commons.DownloadOptions.Metadata; | 1540 var _downloadOptions = commons.DownloadOptions.Metadata; |
1376 var _body = null; | 1541 var _body = null; |
1377 | 1542 |
1378 if (userId == null) { | 1543 if (userId == null) { |
1379 throw new core.ArgumentError("Parameter userId is required."); | 1544 throw new core.ArgumentError("Parameter userId is required."); |
1380 } | 1545 } |
1381 if (requestMetadata_experimentIds != null) { | 1546 if (requestMetadata_userOverrides_userId != null) { |
1382 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1547 _queryParams["requestMetadata.userOverrides.userId"] = [ |
1383 } | 1548 requestMetadata_userOverrides_userId |
1384 if (requestMetadata_trafficSource_trafficSubId != null) { | 1549 ]; |
1385 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
1386 } | 1550 } |
1387 if (requestMetadata_partnersSessionId != null) { | 1551 if (requestMetadata_partnersSessionId != null) { |
1388 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1552 _queryParams["requestMetadata.partnersSessionId"] = [ |
1389 } | 1553 requestMetadata_partnersSessionId |
1390 if (requestMetadata_userOverrides_userId != null) { | 1554 ]; |
1391 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
1392 } | 1555 } |
1393 if (userView != null) { | 1556 if (userView != null) { |
1394 _queryParams["userView"] = [userView]; | 1557 _queryParams["userView"] = [userView]; |
1395 } | 1558 } |
1396 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1559 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1397 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1560 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1561 requestMetadata_trafficSource_trafficSourceId |
| 1562 ]; |
1398 } | 1563 } |
1399 if (requestMetadata_locale != null) { | 1564 if (requestMetadata_locale != null) { |
1400 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1565 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1401 } | 1566 } |
1402 if (requestMetadata_userOverrides_ipAddress != null) { | 1567 if (requestMetadata_userOverrides_ipAddress != null) { |
1403 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1568 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1569 requestMetadata_userOverrides_ipAddress |
| 1570 ]; |
| 1571 } |
| 1572 if (requestMetadata_experimentIds != null) { |
| 1573 _queryParams["requestMetadata.experimentIds"] = |
| 1574 requestMetadata_experimentIds; |
| 1575 } |
| 1576 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1577 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1578 requestMetadata_trafficSource_trafficSubId |
| 1579 ]; |
1404 } | 1580 } |
1405 | 1581 |
1406 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId'); | 1582 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId'); |
1407 | 1583 |
1408 var _response = _requester.request(_url, | 1584 var _response = _requester.request(_url, "GET", |
1409 "GET", | 1585 body: _body, |
1410 body: _body, | 1586 queryParams: _queryParams, |
1411 queryParams: _queryParams, | 1587 uploadOptions: _uploadOptions, |
1412 uploadOptions: _uploadOptions, | 1588 uploadMedia: _uploadMedia, |
1413 uploadMedia: _uploadMedia, | 1589 downloadOptions: _downloadOptions); |
1414 downloadOptions: _downloadOptions); | |
1415 return _response.then((data) => new User.fromJson(data)); | 1590 return _response.then((data) => new User.fromJson(data)); |
1416 } | 1591 } |
1417 | 1592 |
1418 /** | 1593 /// Updates a user's profile. A user can only update their own profile and |
1419 * Updates a user's profile. A user can only update their own profile and | 1594 /// should only be called within the context of a logged in user. |
1420 * should only be called within the context of a logged in user. | 1595 /// |
1421 * | 1596 /// [request] - The metadata request object. |
1422 * [request] - The metadata request object. | 1597 /// |
1423 * | 1598 /// Request parameters: |
1424 * Request parameters: | 1599 /// |
1425 * | 1600 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1426 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1601 /// |
1427 * | 1602 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1428 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1603 /// instead of the user's ID. |
1429 * instead of the user's ID. | 1604 /// |
1430 * | 1605 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1431 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1606 /// where the traffic comes from. |
1432 * where the traffic comes from. | 1607 /// An identifier has multiple letters created by a team which redirected the |
1433 * An identifier has multiple letters created by a team which redirected the | 1608 /// traffic to us. |
1434 * traffic to us. | 1609 /// |
1435 * | 1610 /// [requestMetadata_locale] - Locale to use for the current request. |
1436 * [requestMetadata_locale] - Locale to use for the current request. | 1611 /// |
1437 * | 1612 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1438 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1613 /// the user's geo-located IP address. |
1439 * the user's geo-located IP address. | 1614 /// |
1440 * | 1615 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1441 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1616 /// belongs to. |
1442 * belongs to. | 1617 /// |
1443 * | 1618 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1444 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1619 /// indicate where the traffic comes from. |
1445 * indicate where the traffic comes from. | 1620 /// An identifier has multiple letters created by a team which redirected the |
1446 * An identifier has multiple letters created by a team which redirected the | 1621 /// traffic to us. |
1447 * traffic to us. | 1622 /// |
1448 * | 1623 /// Completes with a [UserProfile]. |
1449 * Completes with a [UserProfile]. | 1624 /// |
1450 * | 1625 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1451 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1626 /// an error. |
1452 * error. | 1627 /// |
1453 * | 1628 /// If the used [http.Client] completes with an error when making a REST |
1454 * If the used [http.Client] completes with an error when making a REST call, | 1629 /// call, this method will complete with the same error. |
1455 * this method will complete with the same error. | 1630 async.Future<UserProfile> updateProfile(UserProfile request, |
1456 */ | 1631 {core.String requestMetadata_partnersSessionId, |
1457 async.Future<UserProfile> updateProfile(UserProfile request, {core.String requ
estMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId,
core.String requestMetadata_trafficSource_trafficSourceId, core.String requestM
etadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<c
ore.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSo
urce_trafficSubId}) { | 1632 core.String requestMetadata_userOverrides_userId, |
| 1633 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1634 core.String requestMetadata_locale, |
| 1635 core.String requestMetadata_userOverrides_ipAddress, |
| 1636 core.List<core.String> requestMetadata_experimentIds, |
| 1637 core.String requestMetadata_trafficSource_trafficSubId}) { |
1458 var _url = null; | 1638 var _url = null; |
1459 var _queryParams = new core.Map(); | 1639 var _queryParams = new core.Map(); |
1460 var _uploadMedia = null; | 1640 var _uploadMedia = null; |
1461 var _uploadOptions = null; | 1641 var _uploadOptions = null; |
1462 var _downloadOptions = commons.DownloadOptions.Metadata; | 1642 var _downloadOptions = commons.DownloadOptions.Metadata; |
1463 var _body = null; | 1643 var _body = null; |
1464 | 1644 |
1465 if (request != null) { | 1645 if (request != null) { |
1466 _body = convert.JSON.encode((request).toJson()); | 1646 _body = convert.JSON.encode((request).toJson()); |
1467 } | 1647 } |
1468 if (requestMetadata_partnersSessionId != null) { | 1648 if (requestMetadata_partnersSessionId != null) { |
1469 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1649 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 1650 requestMetadata_partnersSessionId |
| 1651 ]; |
1470 } | 1652 } |
1471 if (requestMetadata_userOverrides_userId != null) { | 1653 if (requestMetadata_userOverrides_userId != null) { |
1472 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1654 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 1655 requestMetadata_userOverrides_userId |
| 1656 ]; |
1473 } | 1657 } |
1474 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1658 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1475 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1659 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1660 requestMetadata_trafficSource_trafficSourceId |
| 1661 ]; |
1476 } | 1662 } |
1477 if (requestMetadata_locale != null) { | 1663 if (requestMetadata_locale != null) { |
1478 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1664 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1479 } | 1665 } |
1480 if (requestMetadata_userOverrides_ipAddress != null) { | 1666 if (requestMetadata_userOverrides_ipAddress != null) { |
1481 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1667 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1668 requestMetadata_userOverrides_ipAddress |
| 1669 ]; |
1482 } | 1670 } |
1483 if (requestMetadata_experimentIds != null) { | 1671 if (requestMetadata_experimentIds != null) { |
1484 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1672 _queryParams["requestMetadata.experimentIds"] = |
| 1673 requestMetadata_experimentIds; |
1485 } | 1674 } |
1486 if (requestMetadata_trafficSource_trafficSubId != null) { | 1675 if (requestMetadata_trafficSource_trafficSubId != null) { |
1487 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1676 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1677 requestMetadata_trafficSource_trafficSubId |
| 1678 ]; |
1488 } | 1679 } |
1489 | 1680 |
1490 _url = 'v2/users/profile'; | 1681 _url = 'v2/users/profile'; |
1491 | 1682 |
1492 var _response = _requester.request(_url, | 1683 var _response = _requester.request(_url, "PATCH", |
1493 "PATCH", | 1684 body: _body, |
1494 body: _body, | 1685 queryParams: _queryParams, |
1495 queryParams: _queryParams, | 1686 uploadOptions: _uploadOptions, |
1496 uploadOptions: _uploadOptions, | 1687 uploadMedia: _uploadMedia, |
1497 uploadMedia: _uploadMedia, | 1688 downloadOptions: _downloadOptions); |
1498 downloadOptions: _downloadOptions); | |
1499 return _response.then((data) => new UserProfile.fromJson(data)); | 1689 return _response.then((data) => new UserProfile.fromJson(data)); |
1500 } | 1690 } |
1501 | |
1502 } | 1691 } |
1503 | 1692 |
1504 | |
1505 class V2ResourceApi { | 1693 class V2ResourceApi { |
1506 final commons.ApiRequester _requester; | 1694 final commons.ApiRequester _requester; |
1507 | 1695 |
1508 V2ResourceApi(commons.ApiRequester client) : | 1696 V2ResourceApi(commons.ApiRequester client) : _requester = client; |
1509 _requester = client; | |
1510 | 1697 |
1511 /** | 1698 /// Gets Partners Status of the logged in user's agency. |
1512 * Gets Partners Status of the logged in user's agency. | 1699 /// Should only be called if the logged in user is the admin of the agency. |
1513 * Should only be called if the logged in user is the admin of the agency. | 1700 /// |
1514 * | 1701 /// Request parameters: |
1515 * Request parameters: | 1702 /// |
1516 * | 1703 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1517 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1704 /// |
1518 * | 1705 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1519 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1706 /// instead of the user's ID. |
1520 * instead of the user's ID. | 1707 /// |
1521 * | 1708 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1522 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1709 /// where the traffic comes from. |
1523 * where the traffic comes from. | 1710 /// An identifier has multiple letters created by a team which redirected the |
1524 * An identifier has multiple letters created by a team which redirected the | 1711 /// traffic to us. |
1525 * traffic to us. | 1712 /// |
1526 * | 1713 /// [requestMetadata_locale] - Locale to use for the current request. |
1527 * [requestMetadata_locale] - Locale to use for the current request. | 1714 /// |
1528 * | 1715 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1529 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1716 /// the user's geo-located IP address. |
1530 * the user's geo-located IP address. | 1717 /// |
1531 * | 1718 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1532 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1719 /// belongs to. |
1533 * belongs to. | 1720 /// |
1534 * | 1721 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1535 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1722 /// indicate where the traffic comes from. |
1536 * indicate where the traffic comes from. | 1723 /// An identifier has multiple letters created by a team which redirected the |
1537 * An identifier has multiple letters created by a team which redirected the | 1724 /// traffic to us. |
1538 * traffic to us. | 1725 /// |
1539 * | 1726 /// Completes with a [GetPartnersStatusResponse]. |
1540 * Completes with a [GetPartnersStatusResponse]. | 1727 /// |
1541 * | 1728 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1542 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1729 /// an error. |
1543 * error. | 1730 /// |
1544 * | 1731 /// If the used [http.Client] completes with an error when making a REST |
1545 * If the used [http.Client] completes with an error when making a REST call, | 1732 /// call, this method will complete with the same error. |
1546 * this method will complete with the same error. | 1733 async.Future<GetPartnersStatusResponse> getPartnersstatus( |
1547 */ | 1734 {core.String requestMetadata_partnersSessionId, |
1548 async.Future<GetPartnersStatusResponse> getPartnersstatus({core.String request
Metadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, co
re.String requestMetadata_trafficSource_trafficSourceId, core.String requestMeta
data_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core
.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSourc
e_trafficSubId}) { | 1735 core.String requestMetadata_userOverrides_userId, |
| 1736 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1737 core.String requestMetadata_locale, |
| 1738 core.String requestMetadata_userOverrides_ipAddress, |
| 1739 core.List<core.String> requestMetadata_experimentIds, |
| 1740 core.String requestMetadata_trafficSource_trafficSubId}) { |
1549 var _url = null; | 1741 var _url = null; |
1550 var _queryParams = new core.Map(); | 1742 var _queryParams = new core.Map(); |
1551 var _uploadMedia = null; | 1743 var _uploadMedia = null; |
1552 var _uploadOptions = null; | 1744 var _uploadOptions = null; |
1553 var _downloadOptions = commons.DownloadOptions.Metadata; | 1745 var _downloadOptions = commons.DownloadOptions.Metadata; |
1554 var _body = null; | 1746 var _body = null; |
1555 | 1747 |
1556 if (requestMetadata_partnersSessionId != null) { | 1748 if (requestMetadata_partnersSessionId != null) { |
1557 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1749 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 1750 requestMetadata_partnersSessionId |
| 1751 ]; |
1558 } | 1752 } |
1559 if (requestMetadata_userOverrides_userId != null) { | 1753 if (requestMetadata_userOverrides_userId != null) { |
1560 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1754 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 1755 requestMetadata_userOverrides_userId |
| 1756 ]; |
1561 } | 1757 } |
1562 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1758 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1563 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1759 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1760 requestMetadata_trafficSource_trafficSourceId |
| 1761 ]; |
1564 } | 1762 } |
1565 if (requestMetadata_locale != null) { | 1763 if (requestMetadata_locale != null) { |
1566 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1764 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1567 } | 1765 } |
1568 if (requestMetadata_userOverrides_ipAddress != null) { | 1766 if (requestMetadata_userOverrides_ipAddress != null) { |
1569 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1767 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1768 requestMetadata_userOverrides_ipAddress |
| 1769 ]; |
1570 } | 1770 } |
1571 if (requestMetadata_experimentIds != null) { | 1771 if (requestMetadata_experimentIds != null) { |
1572 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1772 _queryParams["requestMetadata.experimentIds"] = |
| 1773 requestMetadata_experimentIds; |
1573 } | 1774 } |
1574 if (requestMetadata_trafficSource_trafficSubId != null) { | 1775 if (requestMetadata_trafficSource_trafficSubId != null) { |
1575 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1776 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1777 requestMetadata_trafficSource_trafficSubId |
| 1778 ]; |
1576 } | 1779 } |
1577 | 1780 |
1578 _url = 'v2/partnersstatus'; | 1781 _url = 'v2/partnersstatus'; |
1579 | 1782 |
1580 var _response = _requester.request(_url, | 1783 var _response = _requester.request(_url, "GET", |
1581 "GET", | 1784 body: _body, |
1582 body: _body, | 1785 queryParams: _queryParams, |
1583 queryParams: _queryParams, | 1786 uploadOptions: _uploadOptions, |
1584 uploadOptions: _uploadOptions, | 1787 uploadMedia: _uploadMedia, |
1585 uploadMedia: _uploadMedia, | 1788 downloadOptions: _downloadOptions); |
1586 downloadOptions: _downloadOptions); | 1789 return _response |
1587 return _response.then((data) => new GetPartnersStatusResponse.fromJson(data)
); | 1790 .then((data) => new GetPartnersStatusResponse.fromJson(data)); |
1588 } | 1791 } |
1589 | 1792 |
1590 /** | 1793 /// Update company. |
1591 * Update company. | 1794 /// Should only be called within the context of an authorized logged in user. |
1592 * Should only be called within the context of an authorized logged in user. | 1795 /// |
1593 * | 1796 /// [request] - The metadata request object. |
1594 * [request] - The metadata request object. | 1797 /// |
1595 * | 1798 /// Request parameters: |
1596 * Request parameters: | 1799 /// |
1597 * | 1800 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1598 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1801 /// belongs to. |
1599 * | 1802 /// |
1600 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1803 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1601 * instead of the user's ID. | 1804 /// indicate where the traffic comes from. |
1602 * | 1805 /// An identifier has multiple letters created by a team which redirected the |
1603 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1806 /// traffic to us. |
1604 * where the traffic comes from. | 1807 /// |
1605 * An identifier has multiple letters created by a team which redirected the | 1808 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1606 * traffic to us. | 1809 /// instead of the user's ID. |
1607 * | 1810 /// |
1608 * [requestMetadata_locale] - Locale to use for the current request. | 1811 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1609 * | 1812 /// |
1610 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1813 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1611 * the user's geo-located IP address. | 1814 /// where the traffic comes from. |
1612 * | 1815 /// An identifier has multiple letters created by a team which redirected the |
1613 * [updateMask] - Standard field mask for the set of fields to be updated. | 1816 /// traffic to us. |
1614 * Required with at least 1 value in FieldMask's paths. | 1817 /// |
1615 * | 1818 /// [requestMetadata_locale] - Locale to use for the current request. |
1616 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1819 /// |
1617 * belongs to. | 1820 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1618 * | 1821 /// the user's geo-located IP address. |
1619 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1822 /// |
1620 * indicate where the traffic comes from. | 1823 /// [updateMask] - Standard field mask for the set of fields to be updated. |
1621 * An identifier has multiple letters created by a team which redirected the | 1824 /// Required with at least 1 value in FieldMask's paths. |
1622 * traffic to us. | 1825 /// |
1623 * | 1826 /// Completes with a [Company]. |
1624 * Completes with a [Company]. | 1827 /// |
1625 * | 1828 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1626 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1829 /// an error. |
1627 * error. | 1830 /// |
1628 * | 1831 /// If the used [http.Client] completes with an error when making a REST |
1629 * If the used [http.Client] completes with an error when making a REST call, | 1832 /// call, this method will complete with the same error. |
1630 * this method will complete with the same error. | 1833 async.Future<Company> updateCompanies(Company request, |
1631 */ | 1834 {core.List<core.String> requestMetadata_experimentIds, |
1632 async.Future<Company> updateCompanies(Company request, {core.String requestMet
adata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.
String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadat
a_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updat
eMask, core.List<core.String> requestMetadata_experimentIds, core.String request
Metadata_trafficSource_trafficSubId}) { | 1835 core.String requestMetadata_trafficSource_trafficSubId, |
| 1836 core.String requestMetadata_userOverrides_userId, |
| 1837 core.String requestMetadata_partnersSessionId, |
| 1838 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1839 core.String requestMetadata_locale, |
| 1840 core.String requestMetadata_userOverrides_ipAddress, |
| 1841 core.String updateMask}) { |
1633 var _url = null; | 1842 var _url = null; |
1634 var _queryParams = new core.Map(); | 1843 var _queryParams = new core.Map(); |
1635 var _uploadMedia = null; | 1844 var _uploadMedia = null; |
1636 var _uploadOptions = null; | 1845 var _uploadOptions = null; |
1637 var _downloadOptions = commons.DownloadOptions.Metadata; | 1846 var _downloadOptions = commons.DownloadOptions.Metadata; |
1638 var _body = null; | 1847 var _body = null; |
1639 | 1848 |
1640 if (request != null) { | 1849 if (request != null) { |
1641 _body = convert.JSON.encode((request).toJson()); | 1850 _body = convert.JSON.encode((request).toJson()); |
1642 } | 1851 } |
1643 if (requestMetadata_partnersSessionId != null) { | 1852 if (requestMetadata_experimentIds != null) { |
1644 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1853 _queryParams["requestMetadata.experimentIds"] = |
| 1854 requestMetadata_experimentIds; |
| 1855 } |
| 1856 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1857 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1858 requestMetadata_trafficSource_trafficSubId |
| 1859 ]; |
1645 } | 1860 } |
1646 if (requestMetadata_userOverrides_userId != null) { | 1861 if (requestMetadata_userOverrides_userId != null) { |
1647 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1862 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 1863 requestMetadata_userOverrides_userId |
| 1864 ]; |
| 1865 } |
| 1866 if (requestMetadata_partnersSessionId != null) { |
| 1867 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 1868 requestMetadata_partnersSessionId |
| 1869 ]; |
1648 } | 1870 } |
1649 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1871 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1650 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1872 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1873 requestMetadata_trafficSource_trafficSourceId |
| 1874 ]; |
1651 } | 1875 } |
1652 if (requestMetadata_locale != null) { | 1876 if (requestMetadata_locale != null) { |
1653 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1877 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1654 } | 1878 } |
1655 if (requestMetadata_userOverrides_ipAddress != null) { | 1879 if (requestMetadata_userOverrides_ipAddress != null) { |
1656 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1880 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1881 requestMetadata_userOverrides_ipAddress |
| 1882 ]; |
1657 } | 1883 } |
1658 if (updateMask != null) { | 1884 if (updateMask != null) { |
1659 _queryParams["updateMask"] = [updateMask]; | 1885 _queryParams["updateMask"] = [updateMask]; |
1660 } | 1886 } |
1661 if (requestMetadata_experimentIds != null) { | |
1662 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | |
1663 } | |
1664 if (requestMetadata_trafficSource_trafficSubId != null) { | |
1665 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
1666 } | |
1667 | 1887 |
1668 _url = 'v2/companies'; | 1888 _url = 'v2/companies'; |
1669 | 1889 |
1670 var _response = _requester.request(_url, | 1890 var _response = _requester.request(_url, "PATCH", |
1671 "PATCH", | 1891 body: _body, |
1672 body: _body, | 1892 queryParams: _queryParams, |
1673 queryParams: _queryParams, | 1893 uploadOptions: _uploadOptions, |
1674 uploadOptions: _uploadOptions, | 1894 uploadMedia: _uploadMedia, |
1675 uploadMedia: _uploadMedia, | 1895 downloadOptions: _downloadOptions); |
1676 downloadOptions: _downloadOptions); | |
1677 return _response.then((data) => new Company.fromJson(data)); | 1896 return _response.then((data) => new Company.fromJson(data)); |
1678 } | 1897 } |
1679 | 1898 |
1680 /** | 1899 /// Updates the specified lead. |
1681 * Updates the specified lead. | 1900 /// |
1682 * | 1901 /// [request] - The metadata request object. |
1683 * [request] - The metadata request object. | 1902 /// |
1684 * | 1903 /// Request parameters: |
1685 * Request parameters: | 1904 /// |
1686 * | 1905 /// [requestMetadata_partnersSessionId] - Google Partners session ID. |
1687 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 1906 /// |
1688 * | 1907 /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
1689 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1908 /// instead of the user's ID. |
1690 * instead of the user's ID. | 1909 /// |
1691 * | 1910 /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
1692 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1911 /// where the traffic comes from. |
1693 * where the traffic comes from. | 1912 /// An identifier has multiple letters created by a team which redirected the |
1694 * An identifier has multiple letters created by a team which redirected the | 1913 /// traffic to us. |
1695 * traffic to us. | 1914 /// |
1696 * | 1915 /// [requestMetadata_locale] - Locale to use for the current request. |
1697 * [requestMetadata_locale] - Locale to use for the current request. | 1916 /// |
1698 * | 1917 /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
1699 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1918 /// the user's geo-located IP address. |
1700 * the user's geo-located IP address. | 1919 /// |
1701 * | 1920 /// [updateMask] - Standard field mask for the set of fields to be updated. |
1702 * [updateMask] - Standard field mask for the set of fields to be updated. | 1921 /// Required with at least 1 value in FieldMask's paths. |
1703 * Required with at least 1 value in FieldMask's paths. | 1922 /// Only `state` and `adwords_customer_id` are currently supported. |
1704 * Only `state` and `adwords_customer_id` are currently supported. | 1923 /// |
1705 * | 1924 /// [requestMetadata_experimentIds] - Experiment IDs the current request |
1706 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1925 /// belongs to. |
1707 * belongs to. | 1926 /// |
1708 * | 1927 /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
1709 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1928 /// indicate where the traffic comes from. |
1710 * indicate where the traffic comes from. | 1929 /// An identifier has multiple letters created by a team which redirected the |
1711 * An identifier has multiple letters created by a team which redirected the | 1930 /// traffic to us. |
1712 * traffic to us. | 1931 /// |
1713 * | 1932 /// Completes with a [Lead]. |
1714 * Completes with a [Lead]. | 1933 /// |
1715 * | 1934 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1716 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1935 /// an error. |
1717 * error. | 1936 /// |
1718 * | 1937 /// If the used [http.Client] completes with an error when making a REST |
1719 * If the used [http.Client] completes with an error when making a REST call, | 1938 /// call, this method will complete with the same error. |
1720 * this method will complete with the same error. | 1939 async.Future<Lead> updateLeads(Lead request, |
1721 */ | 1940 {core.String requestMetadata_partnersSessionId, |
1722 async.Future<Lead> updateLeads(Lead request, {core.String requestMetadata_part
nersSessionId, core.String requestMetadata_userOverrides_userId, core.String req
uestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale,
core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, cor
e.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_t
rafficSource_trafficSubId}) { | 1941 core.String requestMetadata_userOverrides_userId, |
| 1942 core.String requestMetadata_trafficSource_trafficSourceId, |
| 1943 core.String requestMetadata_locale, |
| 1944 core.String requestMetadata_userOverrides_ipAddress, |
| 1945 core.String updateMask, |
| 1946 core.List<core.String> requestMetadata_experimentIds, |
| 1947 core.String requestMetadata_trafficSource_trafficSubId}) { |
1723 var _url = null; | 1948 var _url = null; |
1724 var _queryParams = new core.Map(); | 1949 var _queryParams = new core.Map(); |
1725 var _uploadMedia = null; | 1950 var _uploadMedia = null; |
1726 var _uploadOptions = null; | 1951 var _uploadOptions = null; |
1727 var _downloadOptions = commons.DownloadOptions.Metadata; | 1952 var _downloadOptions = commons.DownloadOptions.Metadata; |
1728 var _body = null; | 1953 var _body = null; |
1729 | 1954 |
1730 if (request != null) { | 1955 if (request != null) { |
1731 _body = convert.JSON.encode((request).toJson()); | 1956 _body = convert.JSON.encode((request).toJson()); |
1732 } | 1957 } |
1733 if (requestMetadata_partnersSessionId != null) { | 1958 if (requestMetadata_partnersSessionId != null) { |
1734 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 1959 _queryParams["requestMetadata.partnersSessionId"] = [ |
| 1960 requestMetadata_partnersSessionId |
| 1961 ]; |
1735 } | 1962 } |
1736 if (requestMetadata_userOverrides_userId != null) { | 1963 if (requestMetadata_userOverrides_userId != null) { |
1737 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1964 _queryParams["requestMetadata.userOverrides.userId"] = [ |
| 1965 requestMetadata_userOverrides_userId |
| 1966 ]; |
1738 } | 1967 } |
1739 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1968 if (requestMetadata_trafficSource_trafficSourceId != null) { |
1740 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1969 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ |
| 1970 requestMetadata_trafficSource_trafficSourceId |
| 1971 ]; |
1741 } | 1972 } |
1742 if (requestMetadata_locale != null) { | 1973 if (requestMetadata_locale != null) { |
1743 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1974 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
1744 } | 1975 } |
1745 if (requestMetadata_userOverrides_ipAddress != null) { | 1976 if (requestMetadata_userOverrides_ipAddress != null) { |
1746 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1977 _queryParams["requestMetadata.userOverrides.ipAddress"] = [ |
| 1978 requestMetadata_userOverrides_ipAddress |
| 1979 ]; |
1747 } | 1980 } |
1748 if (updateMask != null) { | 1981 if (updateMask != null) { |
1749 _queryParams["updateMask"] = [updateMask]; | 1982 _queryParams["updateMask"] = [updateMask]; |
1750 } | 1983 } |
1751 if (requestMetadata_experimentIds != null) { | 1984 if (requestMetadata_experimentIds != null) { |
1752 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1985 _queryParams["requestMetadata.experimentIds"] = |
| 1986 requestMetadata_experimentIds; |
1753 } | 1987 } |
1754 if (requestMetadata_trafficSource_trafficSubId != null) { | 1988 if (requestMetadata_trafficSource_trafficSubId != null) { |
1755 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1989 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ |
| 1990 requestMetadata_trafficSource_trafficSubId |
| 1991 ]; |
1756 } | 1992 } |
1757 | 1993 |
1758 _url = 'v2/leads'; | 1994 _url = 'v2/leads'; |
1759 | 1995 |
1760 var _response = _requester.request(_url, | 1996 var _response = _requester.request(_url, "PATCH", |
1761 "PATCH", | 1997 body: _body, |
1762 body: _body, | 1998 queryParams: _queryParams, |
1763 queryParams: _queryParams, | 1999 uploadOptions: _uploadOptions, |
1764 uploadOptions: _uploadOptions, | 2000 uploadMedia: _uploadMedia, |
1765 uploadMedia: _uploadMedia, | 2001 downloadOptions: _downloadOptions); |
1766 downloadOptions: _downloadOptions); | |
1767 return _response.then((data) => new Lead.fromJson(data)); | 2002 return _response.then((data) => new Lead.fromJson(data)); |
1768 } | 2003 } |
1769 | |
1770 } | 2004 } |
1771 | 2005 |
| 2006 /// Information about a particular AdWords Manager Account. |
| 2007 /// Read more at https://support.google.com/adwords/answer/6139186 |
| 2008 class AdWordsManagerAccountInfo { |
| 2009 /// Name of the customer this account represents. |
| 2010 core.String customerName; |
1772 | 2011 |
1773 | 2012 /// The AdWords Manager Account id. |
1774 /** | |
1775 * Information about a particular AdWords Manager Account. | |
1776 * Read more at https://support.google.com/adwords/answer/6139186 | |
1777 */ | |
1778 class AdWordsManagerAccountInfo { | |
1779 /** Name of the customer this account represents. */ | |
1780 core.String customerName; | |
1781 /** The AdWords Manager Account id. */ | |
1782 core.String id; | 2013 core.String id; |
1783 | 2014 |
1784 AdWordsManagerAccountInfo(); | 2015 AdWordsManagerAccountInfo(); |
1785 | 2016 |
1786 AdWordsManagerAccountInfo.fromJson(core.Map _json) { | 2017 AdWordsManagerAccountInfo.fromJson(core.Map _json) { |
1787 if (_json.containsKey("customerName")) { | 2018 if (_json.containsKey("customerName")) { |
1788 customerName = _json["customerName"]; | 2019 customerName = _json["customerName"]; |
1789 } | 2020 } |
1790 if (_json.containsKey("id")) { | 2021 if (_json.containsKey("id")) { |
1791 id = _json["id"]; | 2022 id = _json["id"]; |
1792 } | 2023 } |
1793 } | 2024 } |
1794 | 2025 |
1795 core.Map<core.String, core.Object> toJson() { | 2026 core.Map<core.String, core.Object> toJson() { |
1796 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2027 final core.Map<core.String, core.Object> _json = |
| 2028 new core.Map<core.String, core.Object>(); |
1797 if (customerName != null) { | 2029 if (customerName != null) { |
1798 _json["customerName"] = customerName; | 2030 _json["customerName"] = customerName; |
1799 } | 2031 } |
1800 if (id != null) { | 2032 if (id != null) { |
1801 _json["id"] = id; | 2033 _json["id"] = id; |
1802 } | 2034 } |
1803 return _json; | 2035 return _json; |
1804 } | 2036 } |
1805 } | 2037 } |
1806 | 2038 |
1807 /** Analytics data for a `Company` within a single day. */ | 2039 /// Analytics data for a `Company` within a single day. |
1808 class Analytics { | 2040 class Analytics { |
1809 /** | 2041 /// Instances of users contacting the `Company` |
1810 * Instances of users contacting the `Company` | 2042 /// on the specified date. |
1811 * on the specified date. | |
1812 */ | |
1813 AnalyticsDataPoint contacts; | 2043 AnalyticsDataPoint contacts; |
1814 /** Date on which these events occurred. */ | 2044 |
| 2045 /// Date on which these events occurred. |
1815 Date eventDate; | 2046 Date eventDate; |
1816 /** | 2047 |
1817 * Instances of users viewing the `Company` profile | 2048 /// Instances of users viewing the `Company` profile |
1818 * on the specified date. | 2049 /// on the specified date. |
1819 */ | |
1820 AnalyticsDataPoint profileViews; | 2050 AnalyticsDataPoint profileViews; |
1821 /** | 2051 |
1822 * Instances of users seeing the `Company` in Google Partners Search results | 2052 /// Instances of users seeing the `Company` in Google Partners Search results |
1823 * on the specified date. | 2053 /// on the specified date. |
1824 */ | |
1825 AnalyticsDataPoint searchViews; | 2054 AnalyticsDataPoint searchViews; |
1826 | 2055 |
1827 Analytics(); | 2056 Analytics(); |
1828 | 2057 |
1829 Analytics.fromJson(core.Map _json) { | 2058 Analytics.fromJson(core.Map _json) { |
1830 if (_json.containsKey("contacts")) { | 2059 if (_json.containsKey("contacts")) { |
1831 contacts = new AnalyticsDataPoint.fromJson(_json["contacts"]); | 2060 contacts = new AnalyticsDataPoint.fromJson(_json["contacts"]); |
1832 } | 2061 } |
1833 if (_json.containsKey("eventDate")) { | 2062 if (_json.containsKey("eventDate")) { |
1834 eventDate = new Date.fromJson(_json["eventDate"]); | 2063 eventDate = new Date.fromJson(_json["eventDate"]); |
1835 } | 2064 } |
1836 if (_json.containsKey("profileViews")) { | 2065 if (_json.containsKey("profileViews")) { |
1837 profileViews = new AnalyticsDataPoint.fromJson(_json["profileViews"]); | 2066 profileViews = new AnalyticsDataPoint.fromJson(_json["profileViews"]); |
1838 } | 2067 } |
1839 if (_json.containsKey("searchViews")) { | 2068 if (_json.containsKey("searchViews")) { |
1840 searchViews = new AnalyticsDataPoint.fromJson(_json["searchViews"]); | 2069 searchViews = new AnalyticsDataPoint.fromJson(_json["searchViews"]); |
1841 } | 2070 } |
1842 } | 2071 } |
1843 | 2072 |
1844 core.Map<core.String, core.Object> toJson() { | 2073 core.Map<core.String, core.Object> toJson() { |
1845 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2074 final core.Map<core.String, core.Object> _json = |
| 2075 new core.Map<core.String, core.Object>(); |
1846 if (contacts != null) { | 2076 if (contacts != null) { |
1847 _json["contacts"] = (contacts).toJson(); | 2077 _json["contacts"] = (contacts).toJson(); |
1848 } | 2078 } |
1849 if (eventDate != null) { | 2079 if (eventDate != null) { |
1850 _json["eventDate"] = (eventDate).toJson(); | 2080 _json["eventDate"] = (eventDate).toJson(); |
1851 } | 2081 } |
1852 if (profileViews != null) { | 2082 if (profileViews != null) { |
1853 _json["profileViews"] = (profileViews).toJson(); | 2083 _json["profileViews"] = (profileViews).toJson(); |
1854 } | 2084 } |
1855 if (searchViews != null) { | 2085 if (searchViews != null) { |
1856 _json["searchViews"] = (searchViews).toJson(); | 2086 _json["searchViews"] = (searchViews).toJson(); |
1857 } | 2087 } |
1858 return _json; | 2088 return _json; |
1859 } | 2089 } |
1860 } | 2090 } |
1861 | 2091 |
1862 /** Details of the analytics events for a `Company` within a single day. */ | 2092 /// Details of the analytics events for a `Company` within a single day. |
1863 class AnalyticsDataPoint { | 2093 class AnalyticsDataPoint { |
1864 /** | 2094 /// Number of times the type of event occurred. |
1865 * Number of times the type of event occurred. | 2095 /// Meaning depends on context (e.g. profile views, contacts, etc.). |
1866 * Meaning depends on context (e.g. profile views, contacts, etc.). | |
1867 */ | |
1868 core.int eventCount; | 2096 core.int eventCount; |
1869 /** Location information of where these events occurred. */ | 2097 |
| 2098 /// Location information of where these events occurred. |
1870 core.List<LatLng> eventLocations; | 2099 core.List<LatLng> eventLocations; |
1871 | 2100 |
1872 AnalyticsDataPoint(); | 2101 AnalyticsDataPoint(); |
1873 | 2102 |
1874 AnalyticsDataPoint.fromJson(core.Map _json) { | 2103 AnalyticsDataPoint.fromJson(core.Map _json) { |
1875 if (_json.containsKey("eventCount")) { | 2104 if (_json.containsKey("eventCount")) { |
1876 eventCount = _json["eventCount"]; | 2105 eventCount = _json["eventCount"]; |
1877 } | 2106 } |
1878 if (_json.containsKey("eventLocations")) { | 2107 if (_json.containsKey("eventLocations")) { |
1879 eventLocations = _json["eventLocations"].map((value) => new LatLng.fromJso
n(value)).toList(); | 2108 eventLocations = _json["eventLocations"] |
| 2109 .map((value) => new LatLng.fromJson(value)) |
| 2110 .toList(); |
1880 } | 2111 } |
1881 } | 2112 } |
1882 | 2113 |
1883 core.Map<core.String, core.Object> toJson() { | 2114 core.Map<core.String, core.Object> toJson() { |
1884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2115 final core.Map<core.String, core.Object> _json = |
| 2116 new core.Map<core.String, core.Object>(); |
1885 if (eventCount != null) { | 2117 if (eventCount != null) { |
1886 _json["eventCount"] = eventCount; | 2118 _json["eventCount"] = eventCount; |
1887 } | 2119 } |
1888 if (eventLocations != null) { | 2120 if (eventLocations != null) { |
1889 _json["eventLocations"] = eventLocations.map((value) => (value).toJson()).
toList(); | 2121 _json["eventLocations"] = |
| 2122 eventLocations.map((value) => (value).toJson()).toList(); |
1890 } | 2123 } |
1891 return _json; | 2124 return _json; |
1892 } | 2125 } |
1893 } | 2126 } |
1894 | 2127 |
1895 /** Analytics aggregated data for a `Company` for a given date range. */ | 2128 /// Analytics aggregated data for a `Company` for a given date range. |
1896 class AnalyticsSummary { | 2129 class AnalyticsSummary { |
1897 /** | 2130 /// Aggregated number of times users contacted the `Company` |
1898 * Aggregated number of times users contacted the `Company` | 2131 /// for given date range. |
1899 * for given date range. | |
1900 */ | |
1901 core.int contactsCount; | 2132 core.int contactsCount; |
1902 /** | 2133 |
1903 * Aggregated number of profile views for the `Company` for given date range. | 2134 /// Aggregated number of profile views for the `Company` for given date |
1904 */ | 2135 /// range. |
1905 core.int profileViewsCount; | 2136 core.int profileViewsCount; |
1906 /** | 2137 |
1907 * Aggregated number of times users saw the `Company` | 2138 /// Aggregated number of times users saw the `Company` |
1908 * in Google Partners Search results for given date range. | 2139 /// in Google Partners Search results for given date range. |
1909 */ | |
1910 core.int searchViewsCount; | 2140 core.int searchViewsCount; |
1911 | 2141 |
1912 AnalyticsSummary(); | 2142 AnalyticsSummary(); |
1913 | 2143 |
1914 AnalyticsSummary.fromJson(core.Map _json) { | 2144 AnalyticsSummary.fromJson(core.Map _json) { |
1915 if (_json.containsKey("contactsCount")) { | 2145 if (_json.containsKey("contactsCount")) { |
1916 contactsCount = _json["contactsCount"]; | 2146 contactsCount = _json["contactsCount"]; |
1917 } | 2147 } |
1918 if (_json.containsKey("profileViewsCount")) { | 2148 if (_json.containsKey("profileViewsCount")) { |
1919 profileViewsCount = _json["profileViewsCount"]; | 2149 profileViewsCount = _json["profileViewsCount"]; |
1920 } | 2150 } |
1921 if (_json.containsKey("searchViewsCount")) { | 2151 if (_json.containsKey("searchViewsCount")) { |
1922 searchViewsCount = _json["searchViewsCount"]; | 2152 searchViewsCount = _json["searchViewsCount"]; |
1923 } | 2153 } |
1924 } | 2154 } |
1925 | 2155 |
1926 core.Map<core.String, core.Object> toJson() { | 2156 core.Map<core.String, core.Object> toJson() { |
1927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2157 final core.Map<core.String, core.Object> _json = |
| 2158 new core.Map<core.String, core.Object>(); |
1928 if (contactsCount != null) { | 2159 if (contactsCount != null) { |
1929 _json["contactsCount"] = contactsCount; | 2160 _json["contactsCount"] = contactsCount; |
1930 } | 2161 } |
1931 if (profileViewsCount != null) { | 2162 if (profileViewsCount != null) { |
1932 _json["profileViewsCount"] = profileViewsCount; | 2163 _json["profileViewsCount"] = profileViewsCount; |
1933 } | 2164 } |
1934 if (searchViewsCount != null) { | 2165 if (searchViewsCount != null) { |
1935 _json["searchViewsCount"] = searchViewsCount; | 2166 _json["searchViewsCount"] = searchViewsCount; |
1936 } | 2167 } |
1937 return _json; | 2168 return _json; |
1938 } | 2169 } |
1939 } | 2170 } |
1940 | 2171 |
1941 /** Available Offers to be distributed. */ | 2172 /// Available Offers to be distributed. |
1942 class AvailableOffer { | 2173 class AvailableOffer { |
1943 /** | 2174 /// The number of codes for this offer that are available for distribution. |
1944 * The number of codes for this offer that are available for distribution. | |
1945 */ | |
1946 core.int available; | 2175 core.int available; |
1947 /** Offer info by country. */ | 2176 |
| 2177 /// Offer info by country. |
1948 core.List<CountryOfferInfo> countryOfferInfos; | 2178 core.List<CountryOfferInfo> countryOfferInfos; |
1949 /** Description of the offer. */ | 2179 |
| 2180 /// Description of the offer. |
1950 core.String description; | 2181 core.String description; |
1951 /** ID of this offer. */ | 2182 |
| 2183 /// ID of this offer. |
1952 core.String id; | 2184 core.String id; |
1953 /** The maximum age of an account [in days] to be eligible. */ | 2185 |
| 2186 /// The maximum age of an account [in days] to be eligible. |
1954 core.int maxAccountAge; | 2187 core.int maxAccountAge; |
1955 /** Name of the offer. */ | 2188 |
| 2189 /// Name of the offer. |
1956 core.String name; | 2190 core.String name; |
1957 /** | 2191 |
1958 * Level of this offer. | 2192 /// Level of this offer. |
1959 * Possible string values are: | 2193 /// Possible string values are: |
1960 * - "OFFER_LEVEL_UNSPECIFIED" : Unset. | 2194 /// - "OFFER_LEVEL_UNSPECIFIED" : Unset. |
1961 * - "OFFER_LEVEL_DENY_PROBLEM" : Users/Agencies that have no offers because | 2195 /// - "OFFER_LEVEL_DENY_PROBLEM" : Users/Agencies that have no offers because |
1962 * of a problem. | 2196 /// of a problem. |
1963 * - "OFFER_LEVEL_DENY_CONTRACT" : Users/Agencies that have no offers due to | 2197 /// - "OFFER_LEVEL_DENY_CONTRACT" : Users/Agencies that have no offers due to |
1964 * contractural agreements. | 2198 /// contractural agreements. |
1965 * - "OFFER_LEVEL_MANUAL" : Users/Agencies that have a manually-configured | 2199 /// - "OFFER_LEVEL_MANUAL" : Users/Agencies that have a manually-configured |
1966 * limit. | 2200 /// limit. |
1967 * - "OFFER_LEVEL_LIMIT_0" : Some Agencies don't get any offers. | 2201 /// - "OFFER_LEVEL_LIMIT_0" : Some Agencies don't get any offers. |
1968 * - "OFFER_LEVEL_LIMIT_5" : Basic level gets 5 per month. | 2202 /// - "OFFER_LEVEL_LIMIT_5" : Basic level gets 5 per month. |
1969 * - "OFFER_LEVEL_LIMIT_15" : Agencies with adequate AHI and spend get | 2203 /// - "OFFER_LEVEL_LIMIT_15" : Agencies with adequate AHI and spend get |
1970 * 15/month. | 2204 /// 15/month. |
1971 * - "OFFER_LEVEL_LIMIT_50" : Badged partners (even in grace) get 50 per | 2205 /// - "OFFER_LEVEL_LIMIT_50" : Badged partners (even in grace) get 50 per |
1972 * month. | 2206 /// month. |
1973 */ | |
1974 core.String offerLevel; | 2207 core.String offerLevel; |
1975 /** | 2208 |
1976 * Type of offer. | 2209 /// Type of offer. |
1977 * Possible string values are: | 2210 /// Possible string values are: |
1978 * - "OFFER_TYPE_UNSPECIFIED" : Unset. | 2211 /// - "OFFER_TYPE_UNSPECIFIED" : Unset. |
1979 * - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. | 2212 /// - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. |
1980 * - "OFFER_TYPE_VIDEO" : Youtube video. | 2213 /// - "OFFER_TYPE_VIDEO" : Youtube video. |
1981 * - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. | 2214 /// - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. |
1982 */ | |
1983 core.String offerType; | 2215 core.String offerType; |
1984 /** Customers who qualify for this offer. */ | 2216 |
| 2217 /// Customers who qualify for this offer. |
1985 core.List<OfferCustomer> qualifiedCustomer; | 2218 core.List<OfferCustomer> qualifiedCustomer; |
1986 /** Whether or not the list of qualified customers is definitely complete. */ | 2219 |
| 2220 /// Whether or not the list of qualified customers is definitely complete. |
1987 core.bool qualifiedCustomersComplete; | 2221 core.bool qualifiedCustomersComplete; |
1988 /** Should special text be shown on the offers page. */ | 2222 |
| 2223 /// Should special text be shown on the offers page. |
1989 core.bool showSpecialOfferCopy; | 2224 core.bool showSpecialOfferCopy; |
1990 /** Terms of the offer. */ | 2225 |
| 2226 /// Terms of the offer. |
1991 core.String terms; | 2227 core.String terms; |
1992 | 2228 |
1993 AvailableOffer(); | 2229 AvailableOffer(); |
1994 | 2230 |
1995 AvailableOffer.fromJson(core.Map _json) { | 2231 AvailableOffer.fromJson(core.Map _json) { |
1996 if (_json.containsKey("available")) { | 2232 if (_json.containsKey("available")) { |
1997 available = _json["available"]; | 2233 available = _json["available"]; |
1998 } | 2234 } |
1999 if (_json.containsKey("countryOfferInfos")) { | 2235 if (_json.containsKey("countryOfferInfos")) { |
2000 countryOfferInfos = _json["countryOfferInfos"].map((value) => new CountryO
fferInfo.fromJson(value)).toList(); | 2236 countryOfferInfos = _json["countryOfferInfos"] |
| 2237 .map((value) => new CountryOfferInfo.fromJson(value)) |
| 2238 .toList(); |
2001 } | 2239 } |
2002 if (_json.containsKey("description")) { | 2240 if (_json.containsKey("description")) { |
2003 description = _json["description"]; | 2241 description = _json["description"]; |
2004 } | 2242 } |
2005 if (_json.containsKey("id")) { | 2243 if (_json.containsKey("id")) { |
2006 id = _json["id"]; | 2244 id = _json["id"]; |
2007 } | 2245 } |
2008 if (_json.containsKey("maxAccountAge")) { | 2246 if (_json.containsKey("maxAccountAge")) { |
2009 maxAccountAge = _json["maxAccountAge"]; | 2247 maxAccountAge = _json["maxAccountAge"]; |
2010 } | 2248 } |
2011 if (_json.containsKey("name")) { | 2249 if (_json.containsKey("name")) { |
2012 name = _json["name"]; | 2250 name = _json["name"]; |
2013 } | 2251 } |
2014 if (_json.containsKey("offerLevel")) { | 2252 if (_json.containsKey("offerLevel")) { |
2015 offerLevel = _json["offerLevel"]; | 2253 offerLevel = _json["offerLevel"]; |
2016 } | 2254 } |
2017 if (_json.containsKey("offerType")) { | 2255 if (_json.containsKey("offerType")) { |
2018 offerType = _json["offerType"]; | 2256 offerType = _json["offerType"]; |
2019 } | 2257 } |
2020 if (_json.containsKey("qualifiedCustomer")) { | 2258 if (_json.containsKey("qualifiedCustomer")) { |
2021 qualifiedCustomer = _json["qualifiedCustomer"].map((value) => new OfferCus
tomer.fromJson(value)).toList(); | 2259 qualifiedCustomer = _json["qualifiedCustomer"] |
| 2260 .map((value) => new OfferCustomer.fromJson(value)) |
| 2261 .toList(); |
2022 } | 2262 } |
2023 if (_json.containsKey("qualifiedCustomersComplete")) { | 2263 if (_json.containsKey("qualifiedCustomersComplete")) { |
2024 qualifiedCustomersComplete = _json["qualifiedCustomersComplete"]; | 2264 qualifiedCustomersComplete = _json["qualifiedCustomersComplete"]; |
2025 } | 2265 } |
2026 if (_json.containsKey("showSpecialOfferCopy")) { | 2266 if (_json.containsKey("showSpecialOfferCopy")) { |
2027 showSpecialOfferCopy = _json["showSpecialOfferCopy"]; | 2267 showSpecialOfferCopy = _json["showSpecialOfferCopy"]; |
2028 } | 2268 } |
2029 if (_json.containsKey("terms")) { | 2269 if (_json.containsKey("terms")) { |
2030 terms = _json["terms"]; | 2270 terms = _json["terms"]; |
2031 } | 2271 } |
2032 } | 2272 } |
2033 | 2273 |
2034 core.Map<core.String, core.Object> toJson() { | 2274 core.Map<core.String, core.Object> toJson() { |
2035 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2275 final core.Map<core.String, core.Object> _json = |
| 2276 new core.Map<core.String, core.Object>(); |
2036 if (available != null) { | 2277 if (available != null) { |
2037 _json["available"] = available; | 2278 _json["available"] = available; |
2038 } | 2279 } |
2039 if (countryOfferInfos != null) { | 2280 if (countryOfferInfos != null) { |
2040 _json["countryOfferInfos"] = countryOfferInfos.map((value) => (value).toJs
on()).toList(); | 2281 _json["countryOfferInfos"] = |
| 2282 countryOfferInfos.map((value) => (value).toJson()).toList(); |
2041 } | 2283 } |
2042 if (description != null) { | 2284 if (description != null) { |
2043 _json["description"] = description; | 2285 _json["description"] = description; |
2044 } | 2286 } |
2045 if (id != null) { | 2287 if (id != null) { |
2046 _json["id"] = id; | 2288 _json["id"] = id; |
2047 } | 2289 } |
2048 if (maxAccountAge != null) { | 2290 if (maxAccountAge != null) { |
2049 _json["maxAccountAge"] = maxAccountAge; | 2291 _json["maxAccountAge"] = maxAccountAge; |
2050 } | 2292 } |
2051 if (name != null) { | 2293 if (name != null) { |
2052 _json["name"] = name; | 2294 _json["name"] = name; |
2053 } | 2295 } |
2054 if (offerLevel != null) { | 2296 if (offerLevel != null) { |
2055 _json["offerLevel"] = offerLevel; | 2297 _json["offerLevel"] = offerLevel; |
2056 } | 2298 } |
2057 if (offerType != null) { | 2299 if (offerType != null) { |
2058 _json["offerType"] = offerType; | 2300 _json["offerType"] = offerType; |
2059 } | 2301 } |
2060 if (qualifiedCustomer != null) { | 2302 if (qualifiedCustomer != null) { |
2061 _json["qualifiedCustomer"] = qualifiedCustomer.map((value) => (value).toJs
on()).toList(); | 2303 _json["qualifiedCustomer"] = |
| 2304 qualifiedCustomer.map((value) => (value).toJson()).toList(); |
2062 } | 2305 } |
2063 if (qualifiedCustomersComplete != null) { | 2306 if (qualifiedCustomersComplete != null) { |
2064 _json["qualifiedCustomersComplete"] = qualifiedCustomersComplete; | 2307 _json["qualifiedCustomersComplete"] = qualifiedCustomersComplete; |
2065 } | 2308 } |
2066 if (showSpecialOfferCopy != null) { | 2309 if (showSpecialOfferCopy != null) { |
2067 _json["showSpecialOfferCopy"] = showSpecialOfferCopy; | 2310 _json["showSpecialOfferCopy"] = showSpecialOfferCopy; |
2068 } | 2311 } |
2069 if (terms != null) { | 2312 if (terms != null) { |
2070 _json["terms"] = terms; | 2313 _json["terms"] = terms; |
2071 } | 2314 } |
2072 return _json; | 2315 return _json; |
2073 } | 2316 } |
2074 } | 2317 } |
2075 | 2318 |
2076 /** A user's information on a specific certification. */ | 2319 /// A user's information on a specific certification. |
2077 class Certification { | 2320 class Certification { |
2078 /** Whether this certification has been achieved. */ | 2321 /// Whether this certification has been achieved. |
2079 core.bool achieved; | 2322 core.bool achieved; |
2080 /** | 2323 |
2081 * The type of certification, the area of expertise. | 2324 /// The type of certification, the area of expertise. |
2082 * Possible string values are: | 2325 /// Possible string values are: |
2083 * - "CERTIFICATION_TYPE_UNSPECIFIED" : Unchosen. | 2326 /// - "CERTIFICATION_TYPE_UNSPECIFIED" : Unchosen. |
2084 * - "CT_ADWORDS" : AdWords certified. | 2327 /// - "CT_ADWORDS" : AdWords certified. |
2085 * - "CT_YOUTUBE" : YouTube certified. | 2328 /// - "CT_YOUTUBE" : YouTube certified. |
2086 * - "CT_VIDEOADS" : VideoAds certified. | 2329 /// - "CT_VIDEOADS" : VideoAds certified. |
2087 * - "CT_ANALYTICS" : Analytics certified. | 2330 /// - "CT_ANALYTICS" : Analytics certified. |
2088 * - "CT_DOUBLECLICK" : DoubleClick certified. | 2331 /// - "CT_DOUBLECLICK" : DoubleClick certified. |
2089 * - "CT_SHOPPING" : Shopping certified. | 2332 /// - "CT_SHOPPING" : Shopping certified. |
2090 * - "CT_MOBILE" : Mobile certified. | 2333 /// - "CT_MOBILE" : Mobile certified. |
2091 * - "CT_DIGITAL_SALES" : Digital sales certified. | 2334 /// - "CT_DIGITAL_SALES" : Digital sales certified. |
2092 * - "CT_ADWORDS_SEARCH" : AdWords Search certified. | 2335 /// - "CT_ADWORDS_SEARCH" : AdWords Search certified. |
2093 * - "CT_ADWORDS_DISPLAY" : AdWords Display certified. | 2336 /// - "CT_ADWORDS_DISPLAY" : AdWords Display certified. |
2094 * - "CT_MOBILE_SITES" : Mobile Sites certified. | 2337 /// - "CT_MOBILE_SITES" : Mobile Sites certified. |
2095 */ | |
2096 core.String certificationType; | 2338 core.String certificationType; |
2097 /** Date this certification is due to expire. */ | 2339 |
| 2340 /// Date this certification is due to expire. |
2098 core.String expiration; | 2341 core.String expiration; |
2099 /** The date the user last achieved certification. */ | 2342 |
| 2343 /// The date the user last achieved certification. |
2100 core.String lastAchieved; | 2344 core.String lastAchieved; |
2101 /** Whether this certification is in the state of warning. */ | 2345 |
| 2346 /// Whether this certification is in the state of warning. |
2102 core.bool warning; | 2347 core.bool warning; |
2103 | 2348 |
2104 Certification(); | 2349 Certification(); |
2105 | 2350 |
2106 Certification.fromJson(core.Map _json) { | 2351 Certification.fromJson(core.Map _json) { |
2107 if (_json.containsKey("achieved")) { | 2352 if (_json.containsKey("achieved")) { |
2108 achieved = _json["achieved"]; | 2353 achieved = _json["achieved"]; |
2109 } | 2354 } |
2110 if (_json.containsKey("certificationType")) { | 2355 if (_json.containsKey("certificationType")) { |
2111 certificationType = _json["certificationType"]; | 2356 certificationType = _json["certificationType"]; |
2112 } | 2357 } |
2113 if (_json.containsKey("expiration")) { | 2358 if (_json.containsKey("expiration")) { |
2114 expiration = _json["expiration"]; | 2359 expiration = _json["expiration"]; |
2115 } | 2360 } |
2116 if (_json.containsKey("lastAchieved")) { | 2361 if (_json.containsKey("lastAchieved")) { |
2117 lastAchieved = _json["lastAchieved"]; | 2362 lastAchieved = _json["lastAchieved"]; |
2118 } | 2363 } |
2119 if (_json.containsKey("warning")) { | 2364 if (_json.containsKey("warning")) { |
2120 warning = _json["warning"]; | 2365 warning = _json["warning"]; |
2121 } | 2366 } |
2122 } | 2367 } |
2123 | 2368 |
2124 core.Map<core.String, core.Object> toJson() { | 2369 core.Map<core.String, core.Object> toJson() { |
2125 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2370 final core.Map<core.String, core.Object> _json = |
| 2371 new core.Map<core.String, core.Object>(); |
2126 if (achieved != null) { | 2372 if (achieved != null) { |
2127 _json["achieved"] = achieved; | 2373 _json["achieved"] = achieved; |
2128 } | 2374 } |
2129 if (certificationType != null) { | 2375 if (certificationType != null) { |
2130 _json["certificationType"] = certificationType; | 2376 _json["certificationType"] = certificationType; |
2131 } | 2377 } |
2132 if (expiration != null) { | 2378 if (expiration != null) { |
2133 _json["expiration"] = expiration; | 2379 _json["expiration"] = expiration; |
2134 } | 2380 } |
2135 if (lastAchieved != null) { | 2381 if (lastAchieved != null) { |
2136 _json["lastAchieved"] = lastAchieved; | 2382 _json["lastAchieved"] = lastAchieved; |
2137 } | 2383 } |
2138 if (warning != null) { | 2384 if (warning != null) { |
2139 _json["warning"] = warning; | 2385 _json["warning"] = warning; |
2140 } | 2386 } |
2141 return _json; | 2387 return _json; |
2142 } | 2388 } |
2143 } | 2389 } |
2144 | 2390 |
2145 /** Status for a Google Partners certification exam. */ | 2391 /// Status for a Google Partners certification exam. |
2146 class CertificationExamStatus { | 2392 class CertificationExamStatus { |
2147 /** The number of people who have passed the certification exam. */ | 2393 /// The number of people who have passed the certification exam. |
2148 core.int numberUsersPass; | 2394 core.int numberUsersPass; |
2149 /** | 2395 |
2150 * The type of certification exam. | 2396 /// The type of certification exam. |
2151 * Possible string values are: | 2397 /// Possible string values are: |
2152 * - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : Unchosen. | 2398 /// - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : Unchosen. |
2153 * - "CET_ADWORDS_FUNDAMENTALS" : Adwords Fundamentals exam. | 2399 /// - "CET_ADWORDS_FUNDAMENTALS" : Adwords Fundamentals exam. |
2154 * - "CET_ADWORDS_ADVANCED_SEARCH" : AdWords advanced search exam. | 2400 /// - "CET_ADWORDS_ADVANCED_SEARCH" : AdWords advanced search exam. |
2155 * - "CET_ADWORDS_ADVANCED_DISPLAY" : AdWords advanced display exam. | 2401 /// - "CET_ADWORDS_ADVANCED_DISPLAY" : AdWords advanced display exam. |
2156 * - "CET_VIDEO_ADS" : VideoAds exam. | 2402 /// - "CET_VIDEO_ADS" : VideoAds exam. |
2157 * - "CET_DOUBLECLICK" : DoubleClick exam. | 2403 /// - "CET_DOUBLECLICK" : DoubleClick exam. |
2158 * - "CET_ANALYTICS" : Analytics exam. | 2404 /// - "CET_ANALYTICS" : Analytics exam. |
2159 * - "CET_SHOPPING" : Shopping exam. | 2405 /// - "CET_SHOPPING" : Shopping exam. |
2160 * - "CET_MOBILE" : Mobile exam. | 2406 /// - "CET_MOBILE" : Mobile exam. |
2161 * - "CET_DIGITAL_SALES" : Digital Sales exam. | 2407 /// - "CET_DIGITAL_SALES" : Digital Sales exam. |
2162 * - "CET_MOBILE_SITES" : Mobile Sites exam. | 2408 /// - "CET_MOBILE_SITES" : Mobile Sites exam. |
2163 */ | |
2164 core.String type; | 2409 core.String type; |
2165 | 2410 |
2166 CertificationExamStatus(); | 2411 CertificationExamStatus(); |
2167 | 2412 |
2168 CertificationExamStatus.fromJson(core.Map _json) { | 2413 CertificationExamStatus.fromJson(core.Map _json) { |
2169 if (_json.containsKey("numberUsersPass")) { | 2414 if (_json.containsKey("numberUsersPass")) { |
2170 numberUsersPass = _json["numberUsersPass"]; | 2415 numberUsersPass = _json["numberUsersPass"]; |
2171 } | 2416 } |
2172 if (_json.containsKey("type")) { | 2417 if (_json.containsKey("type")) { |
2173 type = _json["type"]; | 2418 type = _json["type"]; |
2174 } | 2419 } |
2175 } | 2420 } |
2176 | 2421 |
2177 core.Map<core.String, core.Object> toJson() { | 2422 core.Map<core.String, core.Object> toJson() { |
2178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2423 final core.Map<core.String, core.Object> _json = |
| 2424 new core.Map<core.String, core.Object>(); |
2179 if (numberUsersPass != null) { | 2425 if (numberUsersPass != null) { |
2180 _json["numberUsersPass"] = numberUsersPass; | 2426 _json["numberUsersPass"] = numberUsersPass; |
2181 } | 2427 } |
2182 if (type != null) { | 2428 if (type != null) { |
2183 _json["type"] = type; | 2429 _json["type"] = type; |
2184 } | 2430 } |
2185 return _json; | 2431 return _json; |
2186 } | 2432 } |
2187 } | 2433 } |
2188 | 2434 |
2189 /** Google Partners certification status. */ | 2435 /// Google Partners certification status. |
2190 class CertificationStatus { | 2436 class CertificationStatus { |
2191 /** List of certification exam statuses. */ | 2437 /// List of certification exam statuses. |
2192 core.List<CertificationExamStatus> examStatuses; | 2438 core.List<CertificationExamStatus> examStatuses; |
2193 /** Whether certification is passing. */ | 2439 |
| 2440 /// Whether certification is passing. |
2194 core.bool isCertified; | 2441 core.bool isCertified; |
2195 /** | 2442 |
2196 * The type of the certification. | 2443 /// The type of the certification. |
2197 * Possible string values are: | 2444 /// Possible string values are: |
2198 * - "CERTIFICATION_TYPE_UNSPECIFIED" : Unchosen. | 2445 /// - "CERTIFICATION_TYPE_UNSPECIFIED" : Unchosen. |
2199 * - "CT_ADWORDS" : AdWords certified. | 2446 /// - "CT_ADWORDS" : AdWords certified. |
2200 * - "CT_YOUTUBE" : YouTube certified. | 2447 /// - "CT_YOUTUBE" : YouTube certified. |
2201 * - "CT_VIDEOADS" : VideoAds certified. | 2448 /// - "CT_VIDEOADS" : VideoAds certified. |
2202 * - "CT_ANALYTICS" : Analytics certified. | 2449 /// - "CT_ANALYTICS" : Analytics certified. |
2203 * - "CT_DOUBLECLICK" : DoubleClick certified. | 2450 /// - "CT_DOUBLECLICK" : DoubleClick certified. |
2204 * - "CT_SHOPPING" : Shopping certified. | 2451 /// - "CT_SHOPPING" : Shopping certified. |
2205 * - "CT_MOBILE" : Mobile certified. | 2452 /// - "CT_MOBILE" : Mobile certified. |
2206 * - "CT_DIGITAL_SALES" : Digital sales certified. | 2453 /// - "CT_DIGITAL_SALES" : Digital sales certified. |
2207 * - "CT_ADWORDS_SEARCH" : AdWords Search certified. | 2454 /// - "CT_ADWORDS_SEARCH" : AdWords Search certified. |
2208 * - "CT_ADWORDS_DISPLAY" : AdWords Display certified. | 2455 /// - "CT_ADWORDS_DISPLAY" : AdWords Display certified. |
2209 * - "CT_MOBILE_SITES" : Mobile Sites certified. | 2456 /// - "CT_MOBILE_SITES" : Mobile Sites certified. |
2210 */ | |
2211 core.String type; | 2457 core.String type; |
2212 /** Number of people who are certified, */ | 2458 |
| 2459 /// Number of people who are certified, |
2213 core.int userCount; | 2460 core.int userCount; |
2214 | 2461 |
2215 CertificationStatus(); | 2462 CertificationStatus(); |
2216 | 2463 |
2217 CertificationStatus.fromJson(core.Map _json) { | 2464 CertificationStatus.fromJson(core.Map _json) { |
2218 if (_json.containsKey("examStatuses")) { | 2465 if (_json.containsKey("examStatuses")) { |
2219 examStatuses = _json["examStatuses"].map((value) => new CertificationExamS
tatus.fromJson(value)).toList(); | 2466 examStatuses = _json["examStatuses"] |
| 2467 .map((value) => new CertificationExamStatus.fromJson(value)) |
| 2468 .toList(); |
2220 } | 2469 } |
2221 if (_json.containsKey("isCertified")) { | 2470 if (_json.containsKey("isCertified")) { |
2222 isCertified = _json["isCertified"]; | 2471 isCertified = _json["isCertified"]; |
2223 } | 2472 } |
2224 if (_json.containsKey("type")) { | 2473 if (_json.containsKey("type")) { |
2225 type = _json["type"]; | 2474 type = _json["type"]; |
2226 } | 2475 } |
2227 if (_json.containsKey("userCount")) { | 2476 if (_json.containsKey("userCount")) { |
2228 userCount = _json["userCount"]; | 2477 userCount = _json["userCount"]; |
2229 } | 2478 } |
2230 } | 2479 } |
2231 | 2480 |
2232 core.Map<core.String, core.Object> toJson() { | 2481 core.Map<core.String, core.Object> toJson() { |
2233 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2482 final core.Map<core.String, core.Object> _json = |
| 2483 new core.Map<core.String, core.Object>(); |
2234 if (examStatuses != null) { | 2484 if (examStatuses != null) { |
2235 _json["examStatuses"] = examStatuses.map((value) => (value).toJson()).toLi
st(); | 2485 _json["examStatuses"] = |
| 2486 examStatuses.map((value) => (value).toJson()).toList(); |
2236 } | 2487 } |
2237 if (isCertified != null) { | 2488 if (isCertified != null) { |
2238 _json["isCertified"] = isCertified; | 2489 _json["isCertified"] = isCertified; |
2239 } | 2490 } |
2240 if (type != null) { | 2491 if (type != null) { |
2241 _json["type"] = type; | 2492 _json["type"] = type; |
2242 } | 2493 } |
2243 if (userCount != null) { | 2494 if (userCount != null) { |
2244 _json["userCount"] = userCount; | 2495 _json["userCount"] = userCount; |
2245 } | 2496 } |
2246 return _json; | 2497 return _json; |
2247 } | 2498 } |
2248 } | 2499 } |
2249 | 2500 |
2250 /** | 2501 /// A company resource in the Google Partners API. Once certified, it qualifies |
2251 * A company resource in the Google Partners API. Once certified, it qualifies | 2502 /// for being searched by advertisers. |
2252 * for being searched by advertisers. | |
2253 */ | |
2254 class Company { | 2503 class Company { |
2255 /** | 2504 /// URL of the company's additional websites used to verify the dynamic |
2256 * URL of the company's additional websites used to verify the dynamic badges. | 2505 /// badges. |
2257 * These are stored as full URLs as entered by the user, but only the TLD will | 2506 /// These are stored as full URLs as entered by the user, but only the TLD |
2258 * be used for the actual verification. | 2507 /// will |
2259 */ | 2508 /// be used for the actual verification. |
2260 core.List<core.String> additionalWebsites; | 2509 core.List<core.String> additionalWebsites; |
2261 /** | 2510 |
2262 * Email domains that allow users with a matching email address to get | 2511 /// Email domains that allow users with a matching email address to get |
2263 * auto-approved for associating with this company. | 2512 /// auto-approved for associating with this company. |
2264 */ | |
2265 core.List<core.String> autoApprovalEmailDomains; | 2513 core.List<core.String> autoApprovalEmailDomains; |
2266 /** | 2514 |
2267 * Partner badge tier | 2515 /// Partner badge tier |
2268 * Possible string values are: | 2516 /// Possible string values are: |
2269 * - "BADGE_TIER_NONE" : Tier badge is not set. | 2517 /// - "BADGE_TIER_NONE" : Tier badge is not set. |
2270 * - "BADGE_TIER_REGULAR" : Agency has regular partner badge. | 2518 /// - "BADGE_TIER_REGULAR" : Agency has regular partner badge. |
2271 * - "BADGE_TIER_PREMIER" : Agency has premier badge. | 2519 /// - "BADGE_TIER_PREMIER" : Agency has premier badge. |
2272 */ | |
2273 core.String badgeTier; | 2520 core.String badgeTier; |
2274 /** The list of Google Partners certification statuses for the company. */ | 2521 |
| 2522 /// The list of Google Partners certification statuses for the company. |
2275 core.List<CertificationStatus> certificationStatuses; | 2523 core.List<CertificationStatus> certificationStatuses; |
2276 /** Company type labels listed on the company's profile. */ | 2524 |
| 2525 /// Company type labels listed on the company's profile. |
2277 core.List<core.String> companyTypes; | 2526 core.List<core.String> companyTypes; |
2278 /** | 2527 |
2279 * The minimum monthly budget that the company accepts for partner business, | 2528 /// The minimum monthly budget that the company accepts for partner business, |
2280 * converted to the requested currency code. | 2529 /// converted to the requested currency code. |
2281 */ | |
2282 Money convertedMinMonthlyBudget; | 2530 Money convertedMinMonthlyBudget; |
2283 /** The ID of the company. */ | 2531 |
| 2532 /// The ID of the company. |
2284 core.String id; | 2533 core.String id; |
2285 /** Industries the company can help with. */ | 2534 |
| 2535 /// Industries the company can help with. |
2286 core.List<core.String> industries; | 2536 core.List<core.String> industries; |
2287 /** The list of localized info for the company. */ | 2537 |
| 2538 /// The list of localized info for the company. |
2288 core.List<LocalizedCompanyInfo> localizedInfos; | 2539 core.List<LocalizedCompanyInfo> localizedInfos; |
2289 /** | 2540 |
2290 * The list of all company locations. | 2541 /// The list of all company locations. |
2291 * If set, must include the | 2542 /// If set, must include the |
2292 * primary_location | 2543 /// primary_location |
2293 * in the list. | 2544 /// in the list. |
2294 */ | |
2295 core.List<Location> locations; | 2545 core.List<Location> locations; |
2296 /** The name of the company. */ | 2546 |
| 2547 /// The name of the company. |
2297 core.String name; | 2548 core.String name; |
2298 /** | 2549 |
2299 * The unconverted minimum monthly budget that the company accepts for partner | 2550 /// The unconverted minimum monthly budget that the company accepts for |
2300 * business. | 2551 /// partner |
2301 */ | 2552 /// business. |
2302 Money originalMinMonthlyBudget; | 2553 Money originalMinMonthlyBudget; |
2303 /** The Primary AdWords Manager Account id. */ | 2554 |
| 2555 /// The Primary AdWords Manager Account id. |
2304 core.String primaryAdwordsManagerAccountId; | 2556 core.String primaryAdwordsManagerAccountId; |
2305 /** | 2557 |
2306 * The primary language code of the company, as defined by | 2558 /// The primary language code of the company, as defined by |
2307 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 2559 /// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> |
2308 * (IETF BCP 47, "Tags for Identifying Languages"). | 2560 /// (IETF BCP 47, "Tags for Identifying Languages"). |
2309 */ | |
2310 core.String primaryLanguageCode; | 2561 core.String primaryLanguageCode; |
2311 /** The primary location of the company. */ | 2562 |
| 2563 /// The primary location of the company. |
2312 Location primaryLocation; | 2564 Location primaryLocation; |
2313 /** | 2565 |
2314 * The public viewability status of the company's profile. | 2566 /// The public viewability status of the company's profile. |
2315 * Possible string values are: | 2567 /// Possible string values are: |
2316 * - "COMPANY_PROFILE_STATUS_UNSPECIFIED" : Unchosen. | 2568 /// - "COMPANY_PROFILE_STATUS_UNSPECIFIED" : Unchosen. |
2317 * - "HIDDEN" : Company profile does not show up publicly. | 2569 /// - "HIDDEN" : Company profile does not show up publicly. |
2318 * - "PUBLISHED" : Company profile can only be viewed by the profile's URL | 2570 /// - "PUBLISHED" : Company profile can only be viewed by the profile's URL |
2319 * and not by Google Partner Search. | 2571 /// and not by Google Partner Search. |
2320 * - "SEARCHABLE" : Company profile can be viewed by the profile's URL | 2572 /// - "SEARCHABLE" : Company profile can be viewed by the profile's URL |
2321 * and by Google Partner Search. | 2573 /// and by Google Partner Search. |
2322 */ | |
2323 core.String profileStatus; | 2574 core.String profileStatus; |
2324 /** Basic information from the company's public profile. */ | 2575 |
| 2576 /// Basic information from the company's public profile. |
2325 PublicProfile publicProfile; | 2577 PublicProfile publicProfile; |
2326 /** | 2578 |
2327 * Information related to the ranking of the company within the list of | 2579 /// Information related to the ranking of the company within the list of |
2328 * companies. | 2580 /// companies. |
2329 */ | |
2330 core.List<Rank> ranks; | 2581 core.List<Rank> ranks; |
2331 /** Services the company can help with. */ | 2582 |
| 2583 /// Services the company can help with. |
2332 core.List<core.String> services; | 2584 core.List<core.String> services; |
2333 /** The list of Google Partners specialization statuses for the company. */ | 2585 |
| 2586 /// The list of Google Partners specialization statuses for the company. |
2334 core.List<SpecializationStatus> specializationStatus; | 2587 core.List<SpecializationStatus> specializationStatus; |
2335 /** URL of the company's website. */ | 2588 |
| 2589 /// URL of the company's website. |
2336 core.String websiteUrl; | 2590 core.String websiteUrl; |
2337 | 2591 |
2338 Company(); | 2592 Company(); |
2339 | 2593 |
2340 Company.fromJson(core.Map _json) { | 2594 Company.fromJson(core.Map _json) { |
2341 if (_json.containsKey("additionalWebsites")) { | 2595 if (_json.containsKey("additionalWebsites")) { |
2342 additionalWebsites = _json["additionalWebsites"]; | 2596 additionalWebsites = _json["additionalWebsites"]; |
2343 } | 2597 } |
2344 if (_json.containsKey("autoApprovalEmailDomains")) { | 2598 if (_json.containsKey("autoApprovalEmailDomains")) { |
2345 autoApprovalEmailDomains = _json["autoApprovalEmailDomains"]; | 2599 autoApprovalEmailDomains = _json["autoApprovalEmailDomains"]; |
2346 } | 2600 } |
2347 if (_json.containsKey("badgeTier")) { | 2601 if (_json.containsKey("badgeTier")) { |
2348 badgeTier = _json["badgeTier"]; | 2602 badgeTier = _json["badgeTier"]; |
2349 } | 2603 } |
2350 if (_json.containsKey("certificationStatuses")) { | 2604 if (_json.containsKey("certificationStatuses")) { |
2351 certificationStatuses = _json["certificationStatuses"].map((value) => new
CertificationStatus.fromJson(value)).toList(); | 2605 certificationStatuses = _json["certificationStatuses"] |
| 2606 .map((value) => new CertificationStatus.fromJson(value)) |
| 2607 .toList(); |
2352 } | 2608 } |
2353 if (_json.containsKey("companyTypes")) { | 2609 if (_json.containsKey("companyTypes")) { |
2354 companyTypes = _json["companyTypes"]; | 2610 companyTypes = _json["companyTypes"]; |
2355 } | 2611 } |
2356 if (_json.containsKey("convertedMinMonthlyBudget")) { | 2612 if (_json.containsKey("convertedMinMonthlyBudget")) { |
2357 convertedMinMonthlyBudget = new Money.fromJson(_json["convertedMinMonthlyB
udget"]); | 2613 convertedMinMonthlyBudget = |
| 2614 new Money.fromJson(_json["convertedMinMonthlyBudget"]); |
2358 } | 2615 } |
2359 if (_json.containsKey("id")) { | 2616 if (_json.containsKey("id")) { |
2360 id = _json["id"]; | 2617 id = _json["id"]; |
2361 } | 2618 } |
2362 if (_json.containsKey("industries")) { | 2619 if (_json.containsKey("industries")) { |
2363 industries = _json["industries"]; | 2620 industries = _json["industries"]; |
2364 } | 2621 } |
2365 if (_json.containsKey("localizedInfos")) { | 2622 if (_json.containsKey("localizedInfos")) { |
2366 localizedInfos = _json["localizedInfos"].map((value) => new LocalizedCompa
nyInfo.fromJson(value)).toList(); | 2623 localizedInfos = _json["localizedInfos"] |
| 2624 .map((value) => new LocalizedCompanyInfo.fromJson(value)) |
| 2625 .toList(); |
2367 } | 2626 } |
2368 if (_json.containsKey("locations")) { | 2627 if (_json.containsKey("locations")) { |
2369 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); | 2628 locations = _json["locations"] |
| 2629 .map((value) => new Location.fromJson(value)) |
| 2630 .toList(); |
2370 } | 2631 } |
2371 if (_json.containsKey("name")) { | 2632 if (_json.containsKey("name")) { |
2372 name = _json["name"]; | 2633 name = _json["name"]; |
2373 } | 2634 } |
2374 if (_json.containsKey("originalMinMonthlyBudget")) { | 2635 if (_json.containsKey("originalMinMonthlyBudget")) { |
2375 originalMinMonthlyBudget = new Money.fromJson(_json["originalMinMonthlyBud
get"]); | 2636 originalMinMonthlyBudget = |
| 2637 new Money.fromJson(_json["originalMinMonthlyBudget"]); |
2376 } | 2638 } |
2377 if (_json.containsKey("primaryAdwordsManagerAccountId")) { | 2639 if (_json.containsKey("primaryAdwordsManagerAccountId")) { |
2378 primaryAdwordsManagerAccountId = _json["primaryAdwordsManagerAccountId"]; | 2640 primaryAdwordsManagerAccountId = _json["primaryAdwordsManagerAccountId"]; |
2379 } | 2641 } |
2380 if (_json.containsKey("primaryLanguageCode")) { | 2642 if (_json.containsKey("primaryLanguageCode")) { |
2381 primaryLanguageCode = _json["primaryLanguageCode"]; | 2643 primaryLanguageCode = _json["primaryLanguageCode"]; |
2382 } | 2644 } |
2383 if (_json.containsKey("primaryLocation")) { | 2645 if (_json.containsKey("primaryLocation")) { |
2384 primaryLocation = new Location.fromJson(_json["primaryLocation"]); | 2646 primaryLocation = new Location.fromJson(_json["primaryLocation"]); |
2385 } | 2647 } |
2386 if (_json.containsKey("profileStatus")) { | 2648 if (_json.containsKey("profileStatus")) { |
2387 profileStatus = _json["profileStatus"]; | 2649 profileStatus = _json["profileStatus"]; |
2388 } | 2650 } |
2389 if (_json.containsKey("publicProfile")) { | 2651 if (_json.containsKey("publicProfile")) { |
2390 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); | 2652 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); |
2391 } | 2653 } |
2392 if (_json.containsKey("ranks")) { | 2654 if (_json.containsKey("ranks")) { |
2393 ranks = _json["ranks"].map((value) => new Rank.fromJson(value)).toList(); | 2655 ranks = _json["ranks"].map((value) => new Rank.fromJson(value)).toList(); |
2394 } | 2656 } |
2395 if (_json.containsKey("services")) { | 2657 if (_json.containsKey("services")) { |
2396 services = _json["services"]; | 2658 services = _json["services"]; |
2397 } | 2659 } |
2398 if (_json.containsKey("specializationStatus")) { | 2660 if (_json.containsKey("specializationStatus")) { |
2399 specializationStatus = _json["specializationStatus"].map((value) => new Sp
ecializationStatus.fromJson(value)).toList(); | 2661 specializationStatus = _json["specializationStatus"] |
| 2662 .map((value) => new SpecializationStatus.fromJson(value)) |
| 2663 .toList(); |
2400 } | 2664 } |
2401 if (_json.containsKey("websiteUrl")) { | 2665 if (_json.containsKey("websiteUrl")) { |
2402 websiteUrl = _json["websiteUrl"]; | 2666 websiteUrl = _json["websiteUrl"]; |
2403 } | 2667 } |
2404 } | 2668 } |
2405 | 2669 |
2406 core.Map<core.String, core.Object> toJson() { | 2670 core.Map<core.String, core.Object> toJson() { |
2407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2671 final core.Map<core.String, core.Object> _json = |
| 2672 new core.Map<core.String, core.Object>(); |
2408 if (additionalWebsites != null) { | 2673 if (additionalWebsites != null) { |
2409 _json["additionalWebsites"] = additionalWebsites; | 2674 _json["additionalWebsites"] = additionalWebsites; |
2410 } | 2675 } |
2411 if (autoApprovalEmailDomains != null) { | 2676 if (autoApprovalEmailDomains != null) { |
2412 _json["autoApprovalEmailDomains"] = autoApprovalEmailDomains; | 2677 _json["autoApprovalEmailDomains"] = autoApprovalEmailDomains; |
2413 } | 2678 } |
2414 if (badgeTier != null) { | 2679 if (badgeTier != null) { |
2415 _json["badgeTier"] = badgeTier; | 2680 _json["badgeTier"] = badgeTier; |
2416 } | 2681 } |
2417 if (certificationStatuses != null) { | 2682 if (certificationStatuses != null) { |
2418 _json["certificationStatuses"] = certificationStatuses.map((value) => (val
ue).toJson()).toList(); | 2683 _json["certificationStatuses"] = |
| 2684 certificationStatuses.map((value) => (value).toJson()).toList(); |
2419 } | 2685 } |
2420 if (companyTypes != null) { | 2686 if (companyTypes != null) { |
2421 _json["companyTypes"] = companyTypes; | 2687 _json["companyTypes"] = companyTypes; |
2422 } | 2688 } |
2423 if (convertedMinMonthlyBudget != null) { | 2689 if (convertedMinMonthlyBudget != null) { |
2424 _json["convertedMinMonthlyBudget"] = (convertedMinMonthlyBudget).toJson(); | 2690 _json["convertedMinMonthlyBudget"] = (convertedMinMonthlyBudget).toJson(); |
2425 } | 2691 } |
2426 if (id != null) { | 2692 if (id != null) { |
2427 _json["id"] = id; | 2693 _json["id"] = id; |
2428 } | 2694 } |
2429 if (industries != null) { | 2695 if (industries != null) { |
2430 _json["industries"] = industries; | 2696 _json["industries"] = industries; |
2431 } | 2697 } |
2432 if (localizedInfos != null) { | 2698 if (localizedInfos != null) { |
2433 _json["localizedInfos"] = localizedInfos.map((value) => (value).toJson()).
toList(); | 2699 _json["localizedInfos"] = |
| 2700 localizedInfos.map((value) => (value).toJson()).toList(); |
2434 } | 2701 } |
2435 if (locations != null) { | 2702 if (locations != null) { |
2436 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 2703 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
2437 } | 2704 } |
2438 if (name != null) { | 2705 if (name != null) { |
2439 _json["name"] = name; | 2706 _json["name"] = name; |
2440 } | 2707 } |
2441 if (originalMinMonthlyBudget != null) { | 2708 if (originalMinMonthlyBudget != null) { |
2442 _json["originalMinMonthlyBudget"] = (originalMinMonthlyBudget).toJson(); | 2709 _json["originalMinMonthlyBudget"] = (originalMinMonthlyBudget).toJson(); |
2443 } | 2710 } |
(...skipping 12 matching lines...) Expand all Loading... |
2456 if (publicProfile != null) { | 2723 if (publicProfile != null) { |
2457 _json["publicProfile"] = (publicProfile).toJson(); | 2724 _json["publicProfile"] = (publicProfile).toJson(); |
2458 } | 2725 } |
2459 if (ranks != null) { | 2726 if (ranks != null) { |
2460 _json["ranks"] = ranks.map((value) => (value).toJson()).toList(); | 2727 _json["ranks"] = ranks.map((value) => (value).toJson()).toList(); |
2461 } | 2728 } |
2462 if (services != null) { | 2729 if (services != null) { |
2463 _json["services"] = services; | 2730 _json["services"] = services; |
2464 } | 2731 } |
2465 if (specializationStatus != null) { | 2732 if (specializationStatus != null) { |
2466 _json["specializationStatus"] = specializationStatus.map((value) => (value
).toJson()).toList(); | 2733 _json["specializationStatus"] = |
| 2734 specializationStatus.map((value) => (value).toJson()).toList(); |
2467 } | 2735 } |
2468 if (websiteUrl != null) { | 2736 if (websiteUrl != null) { |
2469 _json["websiteUrl"] = websiteUrl; | 2737 _json["websiteUrl"] = websiteUrl; |
2470 } | 2738 } |
2471 return _json; | 2739 return _json; |
2472 } | 2740 } |
2473 } | 2741 } |
2474 | 2742 |
2475 /** | 2743 /// A CompanyRelation resource representing information about a user's |
2476 * A CompanyRelation resource representing information about a user's | 2744 /// affiliation and standing with a company in Partners. |
2477 * affiliation and standing with a company in Partners. | |
2478 */ | |
2479 class CompanyRelation { | 2745 class CompanyRelation { |
2480 /** The primary address for this company. */ | 2746 /// The primary address for this company. |
2481 core.String address; | 2747 core.String address; |
2482 /** | 2748 |
2483 * Whether the company is a Partner. | 2749 /// Whether the company is a Partner. |
2484 * Possible string values are: | 2750 /// Possible string values are: |
2485 * - "BADGE_TIER_NONE" : Tier badge is not set. | 2751 /// - "BADGE_TIER_NONE" : Tier badge is not set. |
2486 * - "BADGE_TIER_REGULAR" : Agency has regular partner badge. | 2752 /// - "BADGE_TIER_REGULAR" : Agency has regular partner badge. |
2487 * - "BADGE_TIER_PREMIER" : Agency has premier badge. | 2753 /// - "BADGE_TIER_PREMIER" : Agency has premier badge. |
2488 */ | |
2489 core.String badgeTier; | 2754 core.String badgeTier; |
2490 /** Indicates if the user is an admin for this company. */ | 2755 |
| 2756 /// Indicates if the user is an admin for this company. |
2491 core.bool companyAdmin; | 2757 core.bool companyAdmin; |
2492 /** | 2758 |
2493 * The ID of the company. There may be no id if this is a | 2759 /// The ID of the company. There may be no id if this is a |
2494 * pending company.5 | 2760 /// pending company.5 |
2495 */ | |
2496 core.String companyId; | 2761 core.String companyId; |
2497 /** | 2762 |
2498 * The timestamp of when affiliation was requested. | 2763 /// The timestamp of when affiliation was requested. |
2499 * @OutputOnly | 2764 /// @OutputOnly |
2500 */ | |
2501 core.String creationTime; | 2765 core.String creationTime; |
2502 /** | 2766 |
2503 * The internal company ID. | 2767 /// The internal company ID. |
2504 * Only available for a whitelisted set of api clients. | 2768 /// Only available for a whitelisted set of api clients. |
2505 */ | |
2506 core.String internalCompanyId; | 2769 core.String internalCompanyId; |
2507 /** The flag that indicates if the company is pending verification. */ | 2770 |
| 2771 /// The flag that indicates if the company is pending verification. |
2508 core.bool isPending; | 2772 core.bool isPending; |
2509 /** A URL to a profile photo, e.g. a G+ profile photo. */ | 2773 |
| 2774 /// A URL to a profile photo, e.g. a G+ profile photo. |
2510 core.String logoUrl; | 2775 core.String logoUrl; |
2511 /** The AdWords manager account # associated this company. */ | 2776 |
| 2777 /// The AdWords manager account # associated this company. |
2512 core.String managerAccount; | 2778 core.String managerAccount; |
2513 /** The name (in the company's primary language) for the company. */ | 2779 |
| 2780 /// The name (in the company's primary language) for the company. |
2514 core.String name; | 2781 core.String name; |
2515 /** The phone number for the company's primary address. */ | 2782 |
| 2783 /// The phone number for the company's primary address. |
2516 core.String phoneNumber; | 2784 core.String phoneNumber; |
2517 /** The primary location of the company. */ | 2785 |
| 2786 /// The primary location of the company. |
2518 Location primaryAddress; | 2787 Location primaryAddress; |
2519 /** The primary country code of the company. */ | 2788 |
| 2789 /// The primary country code of the company. |
2520 core.String primaryCountryCode; | 2790 core.String primaryCountryCode; |
2521 /** The primary language code of the company. */ | 2791 |
| 2792 /// The primary language code of the company. |
2522 core.String primaryLanguageCode; | 2793 core.String primaryLanguageCode; |
2523 /** | 2794 |
2524 * The timestamp when the user was approved. | 2795 /// The timestamp when the user was approved. |
2525 * @OutputOnly | 2796 /// @OutputOnly |
2526 */ | |
2527 core.String resolvedTimestamp; | 2797 core.String resolvedTimestamp; |
2528 /** The segment the company is classified as. */ | 2798 |
| 2799 /// The segment the company is classified as. |
2529 core.List<core.String> segment; | 2800 core.List<core.String> segment; |
2530 /** The list of Google Partners specialization statuses for the company. */ | 2801 |
| 2802 /// The list of Google Partners specialization statuses for the company. |
2531 core.List<SpecializationStatus> specializationStatus; | 2803 core.List<SpecializationStatus> specializationStatus; |
2532 /** | 2804 |
2533 * The state of relationship, in terms of approvals. | 2805 /// The state of relationship, in terms of approvals. |
2534 * Possible string values are: | 2806 /// Possible string values are: |
2535 * - "USER_COMPANY_REATION_STATE_NONE_SPECIFIED" : Default unspecified value. | 2807 /// - "USER_COMPANY_REATION_STATE_NONE_SPECIFIED" : Default unspecified |
2536 * - "USER_COMPANY_RELATION_STATE_AWAIT_EMAIL" : User has filled in a request | 2808 /// value. |
2537 * to be associated with an company. | 2809 /// - "USER_COMPANY_RELATION_STATE_AWAIT_EMAIL" : User has filled in a |
2538 * Now waiting email confirmation. | 2810 /// request to be associated with an company. |
2539 * - "USER_COMPANY_RELATION_STATE_AWAIT_ADMIN" : Pending approval from | 2811 /// Now waiting email confirmation. |
2540 * company. | 2812 /// - "USER_COMPANY_RELATION_STATE_AWAIT_ADMIN" : Pending approval from |
2541 * Email confirmation will not approve this one. | 2813 /// company. |
2542 * - "USER_COMPANY_RELATION_STATE_APPROVED" : Approved by company. | 2814 /// Email confirmation will not approve this one. |
2543 */ | 2815 /// - "USER_COMPANY_RELATION_STATE_APPROVED" : Approved by company. |
2544 core.String state; | 2816 core.String state; |
2545 /** The website URL for this company. */ | 2817 |
| 2818 /// The website URL for this company. |
2546 core.String website; | 2819 core.String website; |
2547 | 2820 |
2548 CompanyRelation(); | 2821 CompanyRelation(); |
2549 | 2822 |
2550 CompanyRelation.fromJson(core.Map _json) { | 2823 CompanyRelation.fromJson(core.Map _json) { |
2551 if (_json.containsKey("address")) { | 2824 if (_json.containsKey("address")) { |
2552 address = _json["address"]; | 2825 address = _json["address"]; |
2553 } | 2826 } |
2554 if (_json.containsKey("badgeTier")) { | 2827 if (_json.containsKey("badgeTier")) { |
2555 badgeTier = _json["badgeTier"]; | 2828 badgeTier = _json["badgeTier"]; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2590 if (_json.containsKey("primaryLanguageCode")) { | 2863 if (_json.containsKey("primaryLanguageCode")) { |
2591 primaryLanguageCode = _json["primaryLanguageCode"]; | 2864 primaryLanguageCode = _json["primaryLanguageCode"]; |
2592 } | 2865 } |
2593 if (_json.containsKey("resolvedTimestamp")) { | 2866 if (_json.containsKey("resolvedTimestamp")) { |
2594 resolvedTimestamp = _json["resolvedTimestamp"]; | 2867 resolvedTimestamp = _json["resolvedTimestamp"]; |
2595 } | 2868 } |
2596 if (_json.containsKey("segment")) { | 2869 if (_json.containsKey("segment")) { |
2597 segment = _json["segment"]; | 2870 segment = _json["segment"]; |
2598 } | 2871 } |
2599 if (_json.containsKey("specializationStatus")) { | 2872 if (_json.containsKey("specializationStatus")) { |
2600 specializationStatus = _json["specializationStatus"].map((value) => new Sp
ecializationStatus.fromJson(value)).toList(); | 2873 specializationStatus = _json["specializationStatus"] |
| 2874 .map((value) => new SpecializationStatus.fromJson(value)) |
| 2875 .toList(); |
2601 } | 2876 } |
2602 if (_json.containsKey("state")) { | 2877 if (_json.containsKey("state")) { |
2603 state = _json["state"]; | 2878 state = _json["state"]; |
2604 } | 2879 } |
2605 if (_json.containsKey("website")) { | 2880 if (_json.containsKey("website")) { |
2606 website = _json["website"]; | 2881 website = _json["website"]; |
2607 } | 2882 } |
2608 } | 2883 } |
2609 | 2884 |
2610 core.Map<core.String, core.Object> toJson() { | 2885 core.Map<core.String, core.Object> toJson() { |
2611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2886 final core.Map<core.String, core.Object> _json = |
| 2887 new core.Map<core.String, core.Object>(); |
2612 if (address != null) { | 2888 if (address != null) { |
2613 _json["address"] = address; | 2889 _json["address"] = address; |
2614 } | 2890 } |
2615 if (badgeTier != null) { | 2891 if (badgeTier != null) { |
2616 _json["badgeTier"] = badgeTier; | 2892 _json["badgeTier"] = badgeTier; |
2617 } | 2893 } |
2618 if (companyAdmin != null) { | 2894 if (companyAdmin != null) { |
2619 _json["companyAdmin"] = companyAdmin; | 2895 _json["companyAdmin"] = companyAdmin; |
2620 } | 2896 } |
2621 if (companyId != null) { | 2897 if (companyId != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
2651 if (primaryLanguageCode != null) { | 2927 if (primaryLanguageCode != null) { |
2652 _json["primaryLanguageCode"] = primaryLanguageCode; | 2928 _json["primaryLanguageCode"] = primaryLanguageCode; |
2653 } | 2929 } |
2654 if (resolvedTimestamp != null) { | 2930 if (resolvedTimestamp != null) { |
2655 _json["resolvedTimestamp"] = resolvedTimestamp; | 2931 _json["resolvedTimestamp"] = resolvedTimestamp; |
2656 } | 2932 } |
2657 if (segment != null) { | 2933 if (segment != null) { |
2658 _json["segment"] = segment; | 2934 _json["segment"] = segment; |
2659 } | 2935 } |
2660 if (specializationStatus != null) { | 2936 if (specializationStatus != null) { |
2661 _json["specializationStatus"] = specializationStatus.map((value) => (value
).toJson()).toList(); | 2937 _json["specializationStatus"] = |
| 2938 specializationStatus.map((value) => (value).toJson()).toList(); |
2662 } | 2939 } |
2663 if (state != null) { | 2940 if (state != null) { |
2664 _json["state"] = state; | 2941 _json["state"] = state; |
2665 } | 2942 } |
2666 if (website != null) { | 2943 if (website != null) { |
2667 _json["website"] = website; | 2944 _json["website"] = website; |
2668 } | 2945 } |
2669 return _json; | 2946 return _json; |
2670 } | 2947 } |
2671 } | 2948 } |
2672 | 2949 |
2673 /** Offer info by country. */ | 2950 /// Offer info by country. |
2674 class CountryOfferInfo { | 2951 class CountryOfferInfo { |
2675 /** (localized) Get Y amount for that country's offer. */ | 2952 /// (localized) Get Y amount for that country's offer. |
2676 core.String getYAmount; | 2953 core.String getYAmount; |
2677 /** Country code for which offer codes may be requested. */ | 2954 |
| 2955 /// Country code for which offer codes may be requested. |
2678 core.String offerCountryCode; | 2956 core.String offerCountryCode; |
2679 /** | 2957 |
2680 * Type of offer country is eligible for. | 2958 /// Type of offer country is eligible for. |
2681 * Possible string values are: | 2959 /// Possible string values are: |
2682 * - "OFFER_TYPE_UNSPECIFIED" : Unset. | 2960 /// - "OFFER_TYPE_UNSPECIFIED" : Unset. |
2683 * - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. | 2961 /// - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. |
2684 * - "OFFER_TYPE_VIDEO" : Youtube video. | 2962 /// - "OFFER_TYPE_VIDEO" : Youtube video. |
2685 * - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. | 2963 /// - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. |
2686 */ | |
2687 core.String offerType; | 2964 core.String offerType; |
2688 /** (localized) Spend X amount for that country's offer. */ | 2965 |
| 2966 /// (localized) Spend X amount for that country's offer. |
2689 core.String spendXAmount; | 2967 core.String spendXAmount; |
2690 | 2968 |
2691 CountryOfferInfo(); | 2969 CountryOfferInfo(); |
2692 | 2970 |
2693 CountryOfferInfo.fromJson(core.Map _json) { | 2971 CountryOfferInfo.fromJson(core.Map _json) { |
2694 if (_json.containsKey("getYAmount")) { | 2972 if (_json.containsKey("getYAmount")) { |
2695 getYAmount = _json["getYAmount"]; | 2973 getYAmount = _json["getYAmount"]; |
2696 } | 2974 } |
2697 if (_json.containsKey("offerCountryCode")) { | 2975 if (_json.containsKey("offerCountryCode")) { |
2698 offerCountryCode = _json["offerCountryCode"]; | 2976 offerCountryCode = _json["offerCountryCode"]; |
2699 } | 2977 } |
2700 if (_json.containsKey("offerType")) { | 2978 if (_json.containsKey("offerType")) { |
2701 offerType = _json["offerType"]; | 2979 offerType = _json["offerType"]; |
2702 } | 2980 } |
2703 if (_json.containsKey("spendXAmount")) { | 2981 if (_json.containsKey("spendXAmount")) { |
2704 spendXAmount = _json["spendXAmount"]; | 2982 spendXAmount = _json["spendXAmount"]; |
2705 } | 2983 } |
2706 } | 2984 } |
2707 | 2985 |
2708 core.Map<core.String, core.Object> toJson() { | 2986 core.Map<core.String, core.Object> toJson() { |
2709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2987 final core.Map<core.String, core.Object> _json = |
| 2988 new core.Map<core.String, core.Object>(); |
2710 if (getYAmount != null) { | 2989 if (getYAmount != null) { |
2711 _json["getYAmount"] = getYAmount; | 2990 _json["getYAmount"] = getYAmount; |
2712 } | 2991 } |
2713 if (offerCountryCode != null) { | 2992 if (offerCountryCode != null) { |
2714 _json["offerCountryCode"] = offerCountryCode; | 2993 _json["offerCountryCode"] = offerCountryCode; |
2715 } | 2994 } |
2716 if (offerType != null) { | 2995 if (offerType != null) { |
2717 _json["offerType"] = offerType; | 2996 _json["offerType"] = offerType; |
2718 } | 2997 } |
2719 if (spendXAmount != null) { | 2998 if (spendXAmount != null) { |
2720 _json["spendXAmount"] = spendXAmount; | 2999 _json["spendXAmount"] = spendXAmount; |
2721 } | 3000 } |
2722 return _json; | 3001 return _json; |
2723 } | 3002 } |
2724 } | 3003 } |
2725 | 3004 |
2726 /** Request message for CreateLead. */ | 3005 /// Request message for CreateLead. |
2727 class CreateLeadRequest { | 3006 class CreateLeadRequest { |
2728 /** | 3007 /// The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED` |
2729 * The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED` | 3008 /// and either `email` or `phone_number` must be provided. |
2730 * and either `email` or `phone_number` must be provided. | |
2731 */ | |
2732 Lead lead; | 3009 Lead lead; |
2733 /** | 3010 |
2734 * <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info. | 3011 /// <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info. |
2735 */ | |
2736 RecaptchaChallenge recaptchaChallenge; | 3012 RecaptchaChallenge recaptchaChallenge; |
2737 /** Current request metadata. */ | 3013 |
| 3014 /// Current request metadata. |
2738 RequestMetadata requestMetadata; | 3015 RequestMetadata requestMetadata; |
2739 | 3016 |
2740 CreateLeadRequest(); | 3017 CreateLeadRequest(); |
2741 | 3018 |
2742 CreateLeadRequest.fromJson(core.Map _json) { | 3019 CreateLeadRequest.fromJson(core.Map _json) { |
2743 if (_json.containsKey("lead")) { | 3020 if (_json.containsKey("lead")) { |
2744 lead = new Lead.fromJson(_json["lead"]); | 3021 lead = new Lead.fromJson(_json["lead"]); |
2745 } | 3022 } |
2746 if (_json.containsKey("recaptchaChallenge")) { | 3023 if (_json.containsKey("recaptchaChallenge")) { |
2747 recaptchaChallenge = new RecaptchaChallenge.fromJson(_json["recaptchaChall
enge"]); | 3024 recaptchaChallenge = |
| 3025 new RecaptchaChallenge.fromJson(_json["recaptchaChallenge"]); |
2748 } | 3026 } |
2749 if (_json.containsKey("requestMetadata")) { | 3027 if (_json.containsKey("requestMetadata")) { |
2750 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); | 3028 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
2751 } | 3029 } |
2752 } | 3030 } |
2753 | 3031 |
2754 core.Map<core.String, core.Object> toJson() { | 3032 core.Map<core.String, core.Object> toJson() { |
2755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3033 final core.Map<core.String, core.Object> _json = |
| 3034 new core.Map<core.String, core.Object>(); |
2756 if (lead != null) { | 3035 if (lead != null) { |
2757 _json["lead"] = (lead).toJson(); | 3036 _json["lead"] = (lead).toJson(); |
2758 } | 3037 } |
2759 if (recaptchaChallenge != null) { | 3038 if (recaptchaChallenge != null) { |
2760 _json["recaptchaChallenge"] = (recaptchaChallenge).toJson(); | 3039 _json["recaptchaChallenge"] = (recaptchaChallenge).toJson(); |
2761 } | 3040 } |
2762 if (requestMetadata != null) { | 3041 if (requestMetadata != null) { |
2763 _json["requestMetadata"] = (requestMetadata).toJson(); | 3042 _json["requestMetadata"] = (requestMetadata).toJson(); |
2764 } | 3043 } |
2765 return _json; | 3044 return _json; |
2766 } | 3045 } |
2767 } | 3046 } |
2768 | 3047 |
2769 /** Response message for CreateLead. */ | 3048 /// Response message for CreateLead. |
2770 class CreateLeadResponse { | 3049 class CreateLeadResponse { |
2771 /** | 3050 /// Lead that was created depending on the outcome of |
2772 * Lead that was created depending on the outcome of | 3051 /// <a href="https://www.google.com/recaptcha/">reCaptcha</a> validation. |
2773 * <a href="https://www.google.com/recaptcha/">reCaptcha</a> validation. | |
2774 */ | |
2775 Lead lead; | 3052 Lead lead; |
2776 /** | 3053 |
2777 * The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a> | 3054 /// The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a> |
2778 * validation. | 3055 /// validation. |
2779 * Possible string values are: | 3056 /// Possible string values are: |
2780 * - "RECAPTCHA_STATUS_UNSPECIFIED" : Unchosen. | 3057 /// - "RECAPTCHA_STATUS_UNSPECIFIED" : Unchosen. |
2781 * - "RS_NOT_NEEDED" : No reCaptcha validation needed. | 3058 /// - "RS_NOT_NEEDED" : No reCaptcha validation needed. |
2782 * - "RS_PASSED" : reCaptcha challenge passed. | 3059 /// - "RS_PASSED" : reCaptcha challenge passed. |
2783 * - "RS_FAILED" : reCaptcha challenge failed. | 3060 /// - "RS_FAILED" : reCaptcha challenge failed. |
2784 */ | |
2785 core.String recaptchaStatus; | 3061 core.String recaptchaStatus; |
2786 /** Current response metadata. */ | 3062 |
| 3063 /// Current response metadata. |
2787 ResponseMetadata responseMetadata; | 3064 ResponseMetadata responseMetadata; |
2788 | 3065 |
2789 CreateLeadResponse(); | 3066 CreateLeadResponse(); |
2790 | 3067 |
2791 CreateLeadResponse.fromJson(core.Map _json) { | 3068 CreateLeadResponse.fromJson(core.Map _json) { |
2792 if (_json.containsKey("lead")) { | 3069 if (_json.containsKey("lead")) { |
2793 lead = new Lead.fromJson(_json["lead"]); | 3070 lead = new Lead.fromJson(_json["lead"]); |
2794 } | 3071 } |
2795 if (_json.containsKey("recaptchaStatus")) { | 3072 if (_json.containsKey("recaptchaStatus")) { |
2796 recaptchaStatus = _json["recaptchaStatus"]; | 3073 recaptchaStatus = _json["recaptchaStatus"]; |
2797 } | 3074 } |
2798 if (_json.containsKey("responseMetadata")) { | 3075 if (_json.containsKey("responseMetadata")) { |
2799 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3076 responseMetadata = |
| 3077 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
2800 } | 3078 } |
2801 } | 3079 } |
2802 | 3080 |
2803 core.Map<core.String, core.Object> toJson() { | 3081 core.Map<core.String, core.Object> toJson() { |
2804 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3082 final core.Map<core.String, core.Object> _json = |
| 3083 new core.Map<core.String, core.Object>(); |
2805 if (lead != null) { | 3084 if (lead != null) { |
2806 _json["lead"] = (lead).toJson(); | 3085 _json["lead"] = (lead).toJson(); |
2807 } | 3086 } |
2808 if (recaptchaStatus != null) { | 3087 if (recaptchaStatus != null) { |
2809 _json["recaptchaStatus"] = recaptchaStatus; | 3088 _json["recaptchaStatus"] = recaptchaStatus; |
2810 } | 3089 } |
2811 if (responseMetadata != null) { | 3090 if (responseMetadata != null) { |
2812 _json["responseMetadata"] = (responseMetadata).toJson(); | 3091 _json["responseMetadata"] = (responseMetadata).toJson(); |
2813 } | 3092 } |
2814 return _json; | 3093 return _json; |
2815 } | 3094 } |
2816 } | 3095 } |
2817 | 3096 |
2818 /** | 3097 /// Represents a whole calendar date, e.g. date of birth. The time of day and |
2819 * Represents a whole calendar date, e.g. date of birth. The time of day and | 3098 /// time zone are either specified elsewhere or are not significant. The date |
2820 * time zone are either specified elsewhere or are not significant. The date | 3099 /// is relative to the Proleptic Gregorian Calendar. The day may be 0 to |
2821 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to | 3100 /// represent a year and month where the day is not significant, e.g. credit |
2822 * represent a year and month where the day is not significant, e.g. credit card | 3101 /// card |
2823 * expiration date. The year may be 0 to represent a month and day independent | 3102 /// expiration date. The year may be 0 to represent a month and day independent |
2824 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay | 3103 /// of year, e.g. anniversary date. Related types are google.type.TimeOfDay |
2825 * and `google.protobuf.Timestamp`. | 3104 /// and `google.protobuf.Timestamp`. |
2826 */ | |
2827 class Date { | 3105 class Date { |
2828 /** | 3106 /// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 |
2829 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 | 3107 /// if specifying a year/month where the day is not significant. |
2830 * if specifying a year/month where the day is not significant. | |
2831 */ | |
2832 core.int day; | 3108 core.int day; |
2833 /** Month of year. Must be from 1 to 12. */ | 3109 |
| 3110 /// Month of year. Must be from 1 to 12. |
2834 core.int month; | 3111 core.int month; |
2835 /** | 3112 |
2836 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without | 3113 /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without |
2837 * a year. | 3114 /// a year. |
2838 */ | |
2839 core.int year; | 3115 core.int year; |
2840 | 3116 |
2841 Date(); | 3117 Date(); |
2842 | 3118 |
2843 Date.fromJson(core.Map _json) { | 3119 Date.fromJson(core.Map _json) { |
2844 if (_json.containsKey("day")) { | 3120 if (_json.containsKey("day")) { |
2845 day = _json["day"]; | 3121 day = _json["day"]; |
2846 } | 3122 } |
2847 if (_json.containsKey("month")) { | 3123 if (_json.containsKey("month")) { |
2848 month = _json["month"]; | 3124 month = _json["month"]; |
2849 } | 3125 } |
2850 if (_json.containsKey("year")) { | 3126 if (_json.containsKey("year")) { |
2851 year = _json["year"]; | 3127 year = _json["year"]; |
2852 } | 3128 } |
2853 } | 3129 } |
2854 | 3130 |
2855 core.Map<core.String, core.Object> toJson() { | 3131 core.Map<core.String, core.Object> toJson() { |
2856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3132 final core.Map<core.String, core.Object> _json = |
| 3133 new core.Map<core.String, core.Object>(); |
2857 if (day != null) { | 3134 if (day != null) { |
2858 _json["day"] = day; | 3135 _json["day"] = day; |
2859 } | 3136 } |
2860 if (month != null) { | 3137 if (month != null) { |
2861 _json["month"] = month; | 3138 _json["month"] = month; |
2862 } | 3139 } |
2863 if (year != null) { | 3140 if (year != null) { |
2864 _json["year"] = year; | 3141 _json["year"] = year; |
2865 } | 3142 } |
2866 return _json; | 3143 return _json; |
2867 } | 3144 } |
2868 } | 3145 } |
2869 | 3146 |
2870 /** Debug information about this request. */ | 3147 /// Debug information about this request. |
2871 class DebugInfo { | 3148 class DebugInfo { |
2872 /** Info about the server that serviced this request. */ | 3149 /// Info about the server that serviced this request. |
2873 core.String serverInfo; | 3150 core.String serverInfo; |
2874 /** Server-side debug stack trace. */ | 3151 |
| 3152 /// Server-side debug stack trace. |
2875 core.String serverTraceInfo; | 3153 core.String serverTraceInfo; |
2876 /** URL of the service that handled this request. */ | 3154 |
| 3155 /// URL of the service that handled this request. |
2877 core.String serviceUrl; | 3156 core.String serviceUrl; |
2878 | 3157 |
2879 DebugInfo(); | 3158 DebugInfo(); |
2880 | 3159 |
2881 DebugInfo.fromJson(core.Map _json) { | 3160 DebugInfo.fromJson(core.Map _json) { |
2882 if (_json.containsKey("serverInfo")) { | 3161 if (_json.containsKey("serverInfo")) { |
2883 serverInfo = _json["serverInfo"]; | 3162 serverInfo = _json["serverInfo"]; |
2884 } | 3163 } |
2885 if (_json.containsKey("serverTraceInfo")) { | 3164 if (_json.containsKey("serverTraceInfo")) { |
2886 serverTraceInfo = _json["serverTraceInfo"]; | 3165 serverTraceInfo = _json["serverTraceInfo"]; |
2887 } | 3166 } |
2888 if (_json.containsKey("serviceUrl")) { | 3167 if (_json.containsKey("serviceUrl")) { |
2889 serviceUrl = _json["serviceUrl"]; | 3168 serviceUrl = _json["serviceUrl"]; |
2890 } | 3169 } |
2891 } | 3170 } |
2892 | 3171 |
2893 core.Map<core.String, core.Object> toJson() { | 3172 core.Map<core.String, core.Object> toJson() { |
2894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3173 final core.Map<core.String, core.Object> _json = |
| 3174 new core.Map<core.String, core.Object>(); |
2895 if (serverInfo != null) { | 3175 if (serverInfo != null) { |
2896 _json["serverInfo"] = serverInfo; | 3176 _json["serverInfo"] = serverInfo; |
2897 } | 3177 } |
2898 if (serverTraceInfo != null) { | 3178 if (serverTraceInfo != null) { |
2899 _json["serverTraceInfo"] = serverTraceInfo; | 3179 _json["serverTraceInfo"] = serverTraceInfo; |
2900 } | 3180 } |
2901 if (serviceUrl != null) { | 3181 if (serviceUrl != null) { |
2902 _json["serviceUrl"] = serviceUrl; | 3182 _json["serviceUrl"] = serviceUrl; |
2903 } | 3183 } |
2904 return _json; | 3184 return _json; |
2905 } | 3185 } |
2906 } | 3186 } |
2907 | 3187 |
2908 /** | 3188 /// A generic empty message that you can re-use to avoid defining duplicated |
2909 * A generic empty message that you can re-use to avoid defining duplicated | 3189 /// empty messages in your APIs. A typical example is to use it as the request |
2910 * empty messages in your APIs. A typical example is to use it as the request | 3190 /// or the response type of an API method. For instance: |
2911 * or the response type of an API method. For instance: | 3191 /// |
2912 * | 3192 /// service Foo { |
2913 * service Foo { | 3193 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
2914 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 3194 /// } |
2915 * } | 3195 /// |
2916 * | 3196 /// The JSON representation for `Empty` is empty JSON object `{}`. |
2917 * The JSON representation for `Empty` is empty JSON object `{}`. | |
2918 */ | |
2919 class Empty { | 3197 class Empty { |
2920 | |
2921 Empty(); | 3198 Empty(); |
2922 | 3199 |
2923 Empty.fromJson(core.Map _json) { | 3200 Empty.fromJson(core.Map _json) {} |
2924 } | |
2925 | 3201 |
2926 core.Map<core.String, core.Object> toJson() { | 3202 core.Map<core.String, core.Object> toJson() { |
2927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3203 final core.Map<core.String, core.Object> _json = |
| 3204 new core.Map<core.String, core.Object>(); |
2928 return _json; | 3205 return _json; |
2929 } | 3206 } |
2930 } | 3207 } |
2931 | 3208 |
2932 /** Key value data pair for an event. */ | 3209 /// Key value data pair for an event. |
2933 class EventData { | 3210 class EventData { |
2934 /** | 3211 /// Data type. |
2935 * Data type. | 3212 /// Possible string values are: |
2936 * Possible string values are: | 3213 /// - "EVENT_DATA_TYPE_UNSPECIFIED" : Unchosen. |
2937 * - "EVENT_DATA_TYPE_UNSPECIFIED" : Unchosen. | 3214 /// - "ACTION" : Action data. |
2938 * - "ACTION" : Action data. | 3215 /// - "AGENCY_ID" : Agency ID data. |
2939 * - "AGENCY_ID" : Agency ID data. | 3216 /// - "AGENCY_NAME" : Agency name data. |
2940 * - "AGENCY_NAME" : Agency name data. | 3217 /// - "AGENCY_PHONE_NUMBER" : Agency phone number data. |
2941 * - "AGENCY_PHONE_NUMBER" : Agency phone number data. | 3218 /// - "AGENCY_WEBSITE" : Agency website data. |
2942 * - "AGENCY_WEBSITE" : Agency website data. | 3219 /// - "BUDGET" : Budget data. |
2943 * - "BUDGET" : Budget data. | 3220 /// - "CENTER_POINT" : Center-point data. |
2944 * - "CENTER_POINT" : Center-point data. | 3221 /// - "CERTIFICATION" : Certification data. |
2945 * - "CERTIFICATION" : Certification data. | 3222 /// - "COMMENT" : Comment data. |
2946 * - "COMMENT" : Comment data. | 3223 /// - "COUNTRY" : Country data. |
2947 * - "COUNTRY" : Country data. | 3224 /// - "CURRENCY" : Currency data. |
2948 * - "CURRENCY" : Currency data. | 3225 /// - "CURRENTLY_VIEWED_AGENCY_ID" : Currently viewed agency ID data. |
2949 * - "CURRENTLY_VIEWED_AGENCY_ID" : Currently viewed agency ID data. | 3226 /// - "DISTANCE" : Distance data. |
2950 * - "DISTANCE" : Distance data. | 3227 /// - "DISTANCE_TYPE" : Distance type data. |
2951 * - "DISTANCE_TYPE" : Distance type data. | 3228 /// - "EXAM" : Exam data. |
2952 * - "EXAM" : Exam data. | 3229 /// - "HISTORY_TOKEN" : History token data. |
2953 * - "HISTORY_TOKEN" : History token data. | 3230 /// - "ID" : Identifier data. |
2954 * - "ID" : Identifier data. | 3231 /// - "INDUSTRY" : Industry data. |
2955 * - "INDUSTRY" : Industry data. | 3232 /// - "INSIGHT_TAG" : Insight tag data. |
2956 * - "INSIGHT_TAG" : Insight tag data. | 3233 /// - "LANGUAGE" : Language data. |
2957 * - "LANGUAGE" : Language data. | 3234 /// - "LOCATION" : Location data. |
2958 * - "LOCATION" : Location data. | 3235 /// - "MARKETING_OPT_IN" : Marketing opt-in data. |
2959 * - "MARKETING_OPT_IN" : Marketing opt-in data. | 3236 /// - "QUERY" : Query data. |
2960 * - "QUERY" : Query data. | 3237 /// - "SEARCH_START_INDEX" : Search start index data. |
2961 * - "SEARCH_START_INDEX" : Search start index data. | 3238 /// - "SERVICE" : Service data. |
2962 * - "SERVICE" : Service data. | 3239 /// - "SHOW_VOW" : Show vow data. |
2963 * - "SHOW_VOW" : Show vow data. | 3240 /// - "SOLUTION" : Solution data. |
2964 * - "SOLUTION" : Solution data. | 3241 /// - "TRAFFIC_SOURCE_ID" : Traffic source ID data. |
2965 * - "TRAFFIC_SOURCE_ID" : Traffic source ID data. | 3242 /// - "TRAFFIC_SUB_ID" : Traffic sub ID data. |
2966 * - "TRAFFIC_SUB_ID" : Traffic sub ID data. | 3243 /// - "VIEW_PORT" : Viewport data. |
2967 * - "VIEW_PORT" : Viewport data. | 3244 /// - "WEBSITE" : Website data. |
2968 * - "WEBSITE" : Website data. | 3245 /// - "DETAILS" : Details data. |
2969 * - "DETAILS" : Details data. | 3246 /// - "EXPERIMENT_ID" : Experiment ID data. |
2970 * - "EXPERIMENT_ID" : Experiment ID data. | 3247 /// - "GPS_MOTIVATION" : Google Partner Search motivation data. |
2971 * - "GPS_MOTIVATION" : Google Partner Search motivation data. | 3248 /// - "URL" : URL data. |
2972 * - "URL" : URL data. | 3249 /// - "ELEMENT_FOCUS" : Element we wanted user to focus on. |
2973 * - "ELEMENT_FOCUS" : Element we wanted user to focus on. | 3250 /// - "PROGRESS" : Progress when viewing an item \[0-100\]. |
2974 * - "PROGRESS" : Progress when viewing an item \[0-100\]. | |
2975 */ | |
2976 core.String key; | 3251 core.String key; |
2977 /** Data values. */ | 3252 |
| 3253 /// Data values. |
2978 core.List<core.String> values; | 3254 core.List<core.String> values; |
2979 | 3255 |
2980 EventData(); | 3256 EventData(); |
2981 | 3257 |
2982 EventData.fromJson(core.Map _json) { | 3258 EventData.fromJson(core.Map _json) { |
2983 if (_json.containsKey("key")) { | 3259 if (_json.containsKey("key")) { |
2984 key = _json["key"]; | 3260 key = _json["key"]; |
2985 } | 3261 } |
2986 if (_json.containsKey("values")) { | 3262 if (_json.containsKey("values")) { |
2987 values = _json["values"]; | 3263 values = _json["values"]; |
2988 } | 3264 } |
2989 } | 3265 } |
2990 | 3266 |
2991 core.Map<core.String, core.Object> toJson() { | 3267 core.Map<core.String, core.Object> toJson() { |
2992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3268 final core.Map<core.String, core.Object> _json = |
| 3269 new core.Map<core.String, core.Object>(); |
2993 if (key != null) { | 3270 if (key != null) { |
2994 _json["key"] = key; | 3271 _json["key"] = key; |
2995 } | 3272 } |
2996 if (values != null) { | 3273 if (values != null) { |
2997 _json["values"] = values; | 3274 _json["values"] = values; |
2998 } | 3275 } |
2999 return _json; | 3276 return _json; |
3000 } | 3277 } |
3001 } | 3278 } |
3002 | 3279 |
3003 /** A user's information on a specific exam. */ | 3280 /// A user's information on a specific exam. |
3004 class ExamStatus { | 3281 class ExamStatus { |
3005 /** | 3282 /// The type of the exam. |
3006 * The type of the exam. | 3283 /// Possible string values are: |
3007 * Possible string values are: | 3284 /// - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : Unchosen. |
3008 * - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : Unchosen. | 3285 /// - "CET_ADWORDS_FUNDAMENTALS" : Adwords Fundamentals exam. |
3009 * - "CET_ADWORDS_FUNDAMENTALS" : Adwords Fundamentals exam. | 3286 /// - "CET_ADWORDS_ADVANCED_SEARCH" : AdWords advanced search exam. |
3010 * - "CET_ADWORDS_ADVANCED_SEARCH" : AdWords advanced search exam. | 3287 /// - "CET_ADWORDS_ADVANCED_DISPLAY" : AdWords advanced display exam. |
3011 * - "CET_ADWORDS_ADVANCED_DISPLAY" : AdWords advanced display exam. | 3288 /// - "CET_VIDEO_ADS" : VideoAds exam. |
3012 * - "CET_VIDEO_ADS" : VideoAds exam. | 3289 /// - "CET_DOUBLECLICK" : DoubleClick exam. |
3013 * - "CET_DOUBLECLICK" : DoubleClick exam. | 3290 /// - "CET_ANALYTICS" : Analytics exam. |
3014 * - "CET_ANALYTICS" : Analytics exam. | 3291 /// - "CET_SHOPPING" : Shopping exam. |
3015 * - "CET_SHOPPING" : Shopping exam. | 3292 /// - "CET_MOBILE" : Mobile exam. |
3016 * - "CET_MOBILE" : Mobile exam. | 3293 /// - "CET_DIGITAL_SALES" : Digital Sales exam. |
3017 * - "CET_DIGITAL_SALES" : Digital Sales exam. | 3294 /// - "CET_MOBILE_SITES" : Mobile Sites exam. |
3018 * - "CET_MOBILE_SITES" : Mobile Sites exam. | |
3019 */ | |
3020 core.String examType; | 3295 core.String examType; |
3021 /** Date this exam is due to expire. */ | 3296 |
| 3297 /// Date this exam is due to expire. |
3022 core.String expiration; | 3298 core.String expiration; |
3023 /** The date the user last passed this exam. */ | 3299 |
| 3300 /// The date the user last passed this exam. |
3024 core.String lastPassed; | 3301 core.String lastPassed; |
3025 /** Whether this exam has been passed and not expired. */ | 3302 |
| 3303 /// Whether this exam has been passed and not expired. |
3026 core.bool passed; | 3304 core.bool passed; |
3027 /** The date the user last taken this exam. */ | 3305 |
| 3306 /// The date the user last taken this exam. |
3028 core.String taken; | 3307 core.String taken; |
3029 /** Whether this exam is in the state of warning. */ | 3308 |
| 3309 /// Whether this exam is in the state of warning. |
3030 core.bool warning; | 3310 core.bool warning; |
3031 | 3311 |
3032 ExamStatus(); | 3312 ExamStatus(); |
3033 | 3313 |
3034 ExamStatus.fromJson(core.Map _json) { | 3314 ExamStatus.fromJson(core.Map _json) { |
3035 if (_json.containsKey("examType")) { | 3315 if (_json.containsKey("examType")) { |
3036 examType = _json["examType"]; | 3316 examType = _json["examType"]; |
3037 } | 3317 } |
3038 if (_json.containsKey("expiration")) { | 3318 if (_json.containsKey("expiration")) { |
3039 expiration = _json["expiration"]; | 3319 expiration = _json["expiration"]; |
3040 } | 3320 } |
3041 if (_json.containsKey("lastPassed")) { | 3321 if (_json.containsKey("lastPassed")) { |
3042 lastPassed = _json["lastPassed"]; | 3322 lastPassed = _json["lastPassed"]; |
3043 } | 3323 } |
3044 if (_json.containsKey("passed")) { | 3324 if (_json.containsKey("passed")) { |
3045 passed = _json["passed"]; | 3325 passed = _json["passed"]; |
3046 } | 3326 } |
3047 if (_json.containsKey("taken")) { | 3327 if (_json.containsKey("taken")) { |
3048 taken = _json["taken"]; | 3328 taken = _json["taken"]; |
3049 } | 3329 } |
3050 if (_json.containsKey("warning")) { | 3330 if (_json.containsKey("warning")) { |
3051 warning = _json["warning"]; | 3331 warning = _json["warning"]; |
3052 } | 3332 } |
3053 } | 3333 } |
3054 | 3334 |
3055 core.Map<core.String, core.Object> toJson() { | 3335 core.Map<core.String, core.Object> toJson() { |
3056 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3336 final core.Map<core.String, core.Object> _json = |
| 3337 new core.Map<core.String, core.Object>(); |
3057 if (examType != null) { | 3338 if (examType != null) { |
3058 _json["examType"] = examType; | 3339 _json["examType"] = examType; |
3059 } | 3340 } |
3060 if (expiration != null) { | 3341 if (expiration != null) { |
3061 _json["expiration"] = expiration; | 3342 _json["expiration"] = expiration; |
3062 } | 3343 } |
3063 if (lastPassed != null) { | 3344 if (lastPassed != null) { |
3064 _json["lastPassed"] = lastPassed; | 3345 _json["lastPassed"] = lastPassed; |
3065 } | 3346 } |
3066 if (passed != null) { | 3347 if (passed != null) { |
3067 _json["passed"] = passed; | 3348 _json["passed"] = passed; |
3068 } | 3349 } |
3069 if (taken != null) { | 3350 if (taken != null) { |
3070 _json["taken"] = taken; | 3351 _json["taken"] = taken; |
3071 } | 3352 } |
3072 if (warning != null) { | 3353 if (warning != null) { |
3073 _json["warning"] = warning; | 3354 _json["warning"] = warning; |
3074 } | 3355 } |
3075 return _json; | 3356 return _json; |
3076 } | 3357 } |
3077 } | 3358 } |
3078 | 3359 |
3079 /** A token that allows a user to take an exam. */ | 3360 /// A token that allows a user to take an exam. |
3080 class ExamToken { | 3361 class ExamToken { |
3081 /** The id of the exam the token is for. */ | 3362 /// The id of the exam the token is for. |
3082 core.String examId; | 3363 core.String examId; |
3083 /** | 3364 |
3084 * The type of the exam the token belongs to. | 3365 /// The type of the exam the token belongs to. |
3085 * Possible string values are: | 3366 /// Possible string values are: |
3086 * - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : Unchosen. | 3367 /// - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : Unchosen. |
3087 * - "CET_ADWORDS_FUNDAMENTALS" : Adwords Fundamentals exam. | 3368 /// - "CET_ADWORDS_FUNDAMENTALS" : Adwords Fundamentals exam. |
3088 * - "CET_ADWORDS_ADVANCED_SEARCH" : AdWords advanced search exam. | 3369 /// - "CET_ADWORDS_ADVANCED_SEARCH" : AdWords advanced search exam. |
3089 * - "CET_ADWORDS_ADVANCED_DISPLAY" : AdWords advanced display exam. | 3370 /// - "CET_ADWORDS_ADVANCED_DISPLAY" : AdWords advanced display exam. |
3090 * - "CET_VIDEO_ADS" : VideoAds exam. | 3371 /// - "CET_VIDEO_ADS" : VideoAds exam. |
3091 * - "CET_DOUBLECLICK" : DoubleClick exam. | 3372 /// - "CET_DOUBLECLICK" : DoubleClick exam. |
3092 * - "CET_ANALYTICS" : Analytics exam. | 3373 /// - "CET_ANALYTICS" : Analytics exam. |
3093 * - "CET_SHOPPING" : Shopping exam. | 3374 /// - "CET_SHOPPING" : Shopping exam. |
3094 * - "CET_MOBILE" : Mobile exam. | 3375 /// - "CET_MOBILE" : Mobile exam. |
3095 * - "CET_DIGITAL_SALES" : Digital Sales exam. | 3376 /// - "CET_DIGITAL_SALES" : Digital Sales exam. |
3096 * - "CET_MOBILE_SITES" : Mobile Sites exam. | 3377 /// - "CET_MOBILE_SITES" : Mobile Sites exam. |
3097 */ | |
3098 core.String examType; | 3378 core.String examType; |
3099 /** The token, only present if the user has access to the exam. */ | 3379 |
| 3380 /// The token, only present if the user has access to the exam. |
3100 core.String token; | 3381 core.String token; |
3101 | 3382 |
3102 ExamToken(); | 3383 ExamToken(); |
3103 | 3384 |
3104 ExamToken.fromJson(core.Map _json) { | 3385 ExamToken.fromJson(core.Map _json) { |
3105 if (_json.containsKey("examId")) { | 3386 if (_json.containsKey("examId")) { |
3106 examId = _json["examId"]; | 3387 examId = _json["examId"]; |
3107 } | 3388 } |
3108 if (_json.containsKey("examType")) { | 3389 if (_json.containsKey("examType")) { |
3109 examType = _json["examType"]; | 3390 examType = _json["examType"]; |
3110 } | 3391 } |
3111 if (_json.containsKey("token")) { | 3392 if (_json.containsKey("token")) { |
3112 token = _json["token"]; | 3393 token = _json["token"]; |
3113 } | 3394 } |
3114 } | 3395 } |
3115 | 3396 |
3116 core.Map<core.String, core.Object> toJson() { | 3397 core.Map<core.String, core.Object> toJson() { |
3117 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3398 final core.Map<core.String, core.Object> _json = |
| 3399 new core.Map<core.String, core.Object>(); |
3118 if (examId != null) { | 3400 if (examId != null) { |
3119 _json["examId"] = examId; | 3401 _json["examId"] = examId; |
3120 } | 3402 } |
3121 if (examType != null) { | 3403 if (examType != null) { |
3122 _json["examType"] = examType; | 3404 _json["examType"] = examType; |
3123 } | 3405 } |
3124 if (token != null) { | 3406 if (token != null) { |
3125 _json["token"] = token; | 3407 _json["token"] = token; |
3126 } | 3408 } |
3127 return _json; | 3409 return _json; |
3128 } | 3410 } |
3129 } | 3411 } |
3130 | 3412 |
3131 /** Response message for GetCompany. */ | 3413 /// Response message for GetCompany. |
3132 class GetCompanyResponse { | 3414 class GetCompanyResponse { |
3133 /** The company. */ | 3415 /// The company. |
3134 Company company; | 3416 Company company; |
3135 /** Current response metadata. */ | 3417 |
| 3418 /// Current response metadata. |
3136 ResponseMetadata responseMetadata; | 3419 ResponseMetadata responseMetadata; |
3137 | 3420 |
3138 GetCompanyResponse(); | 3421 GetCompanyResponse(); |
3139 | 3422 |
3140 GetCompanyResponse.fromJson(core.Map _json) { | 3423 GetCompanyResponse.fromJson(core.Map _json) { |
3141 if (_json.containsKey("company")) { | 3424 if (_json.containsKey("company")) { |
3142 company = new Company.fromJson(_json["company"]); | 3425 company = new Company.fromJson(_json["company"]); |
3143 } | 3426 } |
3144 if (_json.containsKey("responseMetadata")) { | 3427 if (_json.containsKey("responseMetadata")) { |
3145 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3428 responseMetadata = |
| 3429 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3146 } | 3430 } |
3147 } | 3431 } |
3148 | 3432 |
3149 core.Map<core.String, core.Object> toJson() { | 3433 core.Map<core.String, core.Object> toJson() { |
3150 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3434 final core.Map<core.String, core.Object> _json = |
| 3435 new core.Map<core.String, core.Object>(); |
3151 if (company != null) { | 3436 if (company != null) { |
3152 _json["company"] = (company).toJson(); | 3437 _json["company"] = (company).toJson(); |
3153 } | 3438 } |
3154 if (responseMetadata != null) { | 3439 if (responseMetadata != null) { |
3155 _json["responseMetadata"] = (responseMetadata).toJson(); | 3440 _json["responseMetadata"] = (responseMetadata).toJson(); |
3156 } | 3441 } |
3157 return _json; | 3442 return _json; |
3158 } | 3443 } |
3159 } | 3444 } |
3160 | 3445 |
3161 /** | 3446 /// Response message for |
3162 * Response message for | 3447 /// GetPartnersStatus. |
3163 * GetPartnersStatus. | |
3164 */ | |
3165 class GetPartnersStatusResponse { | 3448 class GetPartnersStatusResponse { |
3166 /** Current response metadata. */ | 3449 /// Current response metadata. |
3167 ResponseMetadata responseMetadata; | 3450 ResponseMetadata responseMetadata; |
3168 | 3451 |
3169 GetPartnersStatusResponse(); | 3452 GetPartnersStatusResponse(); |
3170 | 3453 |
3171 GetPartnersStatusResponse.fromJson(core.Map _json) { | 3454 GetPartnersStatusResponse.fromJson(core.Map _json) { |
3172 if (_json.containsKey("responseMetadata")) { | 3455 if (_json.containsKey("responseMetadata")) { |
3173 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3456 responseMetadata = |
| 3457 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3174 } | 3458 } |
3175 } | 3459 } |
3176 | 3460 |
3177 core.Map<core.String, core.Object> toJson() { | 3461 core.Map<core.String, core.Object> toJson() { |
3178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3462 final core.Map<core.String, core.Object> _json = |
| 3463 new core.Map<core.String, core.Object>(); |
3179 if (responseMetadata != null) { | 3464 if (responseMetadata != null) { |
3180 _json["responseMetadata"] = (responseMetadata).toJson(); | 3465 _json["responseMetadata"] = (responseMetadata).toJson(); |
3181 } | 3466 } |
3182 return _json; | 3467 return _json; |
3183 } | 3468 } |
3184 } | 3469 } |
3185 | 3470 |
3186 /** Historical information about a Google Partners Offer. */ | 3471 /// Historical information about a Google Partners Offer. |
3187 class HistoricalOffer { | 3472 class HistoricalOffer { |
3188 /** Client's AdWords page URL. */ | 3473 /// Client's AdWords page URL. |
3189 core.String adwordsUrl; | 3474 core.String adwordsUrl; |
3190 /** Email address for client. */ | 3475 |
| 3476 /// Email address for client. |
3191 core.String clientEmail; | 3477 core.String clientEmail; |
3192 /** ID of client. */ | 3478 |
| 3479 /// ID of client. |
3193 core.String clientId; | 3480 core.String clientId; |
3194 /** Name of the client. */ | 3481 |
| 3482 /// Name of the client. |
3195 core.String clientName; | 3483 core.String clientName; |
3196 /** Time offer was first created. */ | 3484 |
| 3485 /// Time offer was first created. |
3197 core.String creationTime; | 3486 core.String creationTime; |
3198 /** Time this offer expires. */ | 3487 |
| 3488 /// Time this offer expires. |
3199 core.String expirationTime; | 3489 core.String expirationTime; |
3200 /** Time last action was taken. */ | 3490 |
| 3491 /// Time last action was taken. |
3201 core.String lastModifiedTime; | 3492 core.String lastModifiedTime; |
3202 /** Offer code. */ | 3493 |
| 3494 /// Offer code. |
3203 core.String offerCode; | 3495 core.String offerCode; |
3204 /** Country Code for the offer country. */ | 3496 |
| 3497 /// Country Code for the offer country. |
3205 core.String offerCountryCode; | 3498 core.String offerCountryCode; |
3206 /** | 3499 |
3207 * Type of offer. | 3500 /// Type of offer. |
3208 * Possible string values are: | 3501 /// Possible string values are: |
3209 * - "OFFER_TYPE_UNSPECIFIED" : Unset. | 3502 /// - "OFFER_TYPE_UNSPECIFIED" : Unset. |
3210 * - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. | 3503 /// - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. |
3211 * - "OFFER_TYPE_VIDEO" : Youtube video. | 3504 /// - "OFFER_TYPE_VIDEO" : Youtube video. |
3212 * - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. | 3505 /// - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. |
3213 */ | |
3214 core.String offerType; | 3506 core.String offerType; |
3215 /** | 3507 |
3216 * Name (First + Last) of the partners user to whom the incentive is | 3508 /// Name (First + Last) of the partners user to whom the incentive is |
3217 * allocated. | 3509 /// allocated. |
3218 */ | |
3219 core.String senderName; | 3510 core.String senderName; |
3220 /** | 3511 |
3221 * Status of the offer. | 3512 /// Status of the offer. |
3222 * Possible string values are: | 3513 /// Possible string values are: |
3223 * - "OFFER_STATUS_UNSPECIFIED" : Unset. | 3514 /// - "OFFER_STATUS_UNSPECIFIED" : Unset. |
3224 * - "OFFER_STATUS_DISTRIBUTED" : Offer distributed. | 3515 /// - "OFFER_STATUS_DISTRIBUTED" : Offer distributed. |
3225 * - "OFFER_STATUS_REDEEMED" : Offer redeemed. | 3516 /// - "OFFER_STATUS_REDEEMED" : Offer redeemed. |
3226 * - "OFFER_STATUS_AWARDED" : Offer awarded. | 3517 /// - "OFFER_STATUS_AWARDED" : Offer awarded. |
3227 * - "OFFER_STATUS_EXPIRED" : Offer expired. | 3518 /// - "OFFER_STATUS_EXPIRED" : Offer expired. |
3228 */ | |
3229 core.String status; | 3519 core.String status; |
3230 | 3520 |
3231 HistoricalOffer(); | 3521 HistoricalOffer(); |
3232 | 3522 |
3233 HistoricalOffer.fromJson(core.Map _json) { | 3523 HistoricalOffer.fromJson(core.Map _json) { |
3234 if (_json.containsKey("adwordsUrl")) { | 3524 if (_json.containsKey("adwordsUrl")) { |
3235 adwordsUrl = _json["adwordsUrl"]; | 3525 adwordsUrl = _json["adwordsUrl"]; |
3236 } | 3526 } |
3237 if (_json.containsKey("clientEmail")) { | 3527 if (_json.containsKey("clientEmail")) { |
3238 clientEmail = _json["clientEmail"]; | 3528 clientEmail = _json["clientEmail"]; |
(...skipping 24 matching lines...) Expand all Loading... |
3263 } | 3553 } |
3264 if (_json.containsKey("senderName")) { | 3554 if (_json.containsKey("senderName")) { |
3265 senderName = _json["senderName"]; | 3555 senderName = _json["senderName"]; |
3266 } | 3556 } |
3267 if (_json.containsKey("status")) { | 3557 if (_json.containsKey("status")) { |
3268 status = _json["status"]; | 3558 status = _json["status"]; |
3269 } | 3559 } |
3270 } | 3560 } |
3271 | 3561 |
3272 core.Map<core.String, core.Object> toJson() { | 3562 core.Map<core.String, core.Object> toJson() { |
3273 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3563 final core.Map<core.String, core.Object> _json = |
| 3564 new core.Map<core.String, core.Object>(); |
3274 if (adwordsUrl != null) { | 3565 if (adwordsUrl != null) { |
3275 _json["adwordsUrl"] = adwordsUrl; | 3566 _json["adwordsUrl"] = adwordsUrl; |
3276 } | 3567 } |
3277 if (clientEmail != null) { | 3568 if (clientEmail != null) { |
3278 _json["clientEmail"] = clientEmail; | 3569 _json["clientEmail"] = clientEmail; |
3279 } | 3570 } |
3280 if (clientId != null) { | 3571 if (clientId != null) { |
3281 _json["clientId"] = clientId; | 3572 _json["clientId"] = clientId; |
3282 } | 3573 } |
3283 if (clientName != null) { | 3574 if (clientName != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
3304 if (senderName != null) { | 3595 if (senderName != null) { |
3305 _json["senderName"] = senderName; | 3596 _json["senderName"] = senderName; |
3306 } | 3597 } |
3307 if (status != null) { | 3598 if (status != null) { |
3308 _json["status"] = status; | 3599 _json["status"] = status; |
3309 } | 3600 } |
3310 return _json; | 3601 return _json; |
3311 } | 3602 } |
3312 } | 3603 } |
3313 | 3604 |
3314 /** | 3605 /// An object representing a latitude/longitude pair. This is expressed as a |
3315 * An object representing a latitude/longitude pair. This is expressed as a pair | 3606 /// pair |
3316 * of doubles representing degrees latitude and degrees longitude. Unless | 3607 /// of doubles representing degrees latitude and degrees longitude. Unless |
3317 * specified otherwise, this must conform to the | 3608 /// specified otherwise, this must conform to the |
3318 * <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 | 3609 /// <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 |
3319 * standard</a>. Values must be within normalized ranges. | 3610 /// standard</a>. Values must be within normalized ranges. |
3320 * | 3611 /// |
3321 * Example of normalization code in Python: | 3612 /// Example of normalization code in Python: |
3322 * | 3613 /// |
3323 * def NormalizeLongitude(longitude): | 3614 /// def NormalizeLongitude(longitude): |
3324 * """Wraps decimal degrees longitude to [-180.0, 180.0].""" | 3615 /// """Wraps decimal degrees longitude to [-180.0, 180.0].""" |
3325 * q, r = divmod(longitude, 360.0) | 3616 /// q, r = divmod(longitude, 360.0) |
3326 * if r > 180.0 or (r == 180.0 and q <= -1.0): | 3617 /// if r > 180.0 or (r == 180.0 and q <= -1.0): |
3327 * return r - 360.0 | 3618 /// return r - 360.0 |
3328 * return r | 3619 /// return r |
3329 * | 3620 /// |
3330 * def NormalizeLatLng(latitude, longitude): | 3621 /// def NormalizeLatLng(latitude, longitude): |
3331 * """Wraps decimal degrees latitude and longitude to | 3622 /// """Wraps decimal degrees latitude and longitude to |
3332 * [-90.0, 90.0] and [-180.0, 180.0], respectively.""" | 3623 /// [-90.0, 90.0] and [-180.0, 180.0], respectively.""" |
3333 * r = latitude % 360.0 | 3624 /// r = latitude % 360.0 |
3334 * if r <= 90.0: | 3625 /// if r <= 90.0: |
3335 * return r, NormalizeLongitude(longitude) | 3626 /// return r, NormalizeLongitude(longitude) |
3336 * elif r >= 270.0: | 3627 /// elif r >= 270.0: |
3337 * return r - 360, NormalizeLongitude(longitude) | 3628 /// return r - 360, NormalizeLongitude(longitude) |
3338 * else: | 3629 /// else: |
3339 * return 180 - r, NormalizeLongitude(longitude + 180.0) | 3630 /// return 180 - r, NormalizeLongitude(longitude + 180.0) |
3340 * | 3631 /// |
3341 * assert 180.0 == NormalizeLongitude(180.0) | 3632 /// assert 180.0 == NormalizeLongitude(180.0) |
3342 * assert -180.0 == NormalizeLongitude(-180.0) | 3633 /// assert -180.0 == NormalizeLongitude(-180.0) |
3343 * assert -179.0 == NormalizeLongitude(181.0) | 3634 /// assert -179.0 == NormalizeLongitude(181.0) |
3344 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) | 3635 /// assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) |
3345 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) | 3636 /// assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) |
3346 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) | 3637 /// assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) |
3347 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) | 3638 /// assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) |
3348 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) | 3639 /// assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) |
3349 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) | 3640 /// assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) |
3350 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) | 3641 /// assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) |
3351 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) | 3642 /// assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) |
3352 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) | 3643 /// assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) |
3353 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) | 3644 /// assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) |
3354 */ | |
3355 class LatLng { | 3645 class LatLng { |
3356 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ | 3646 /// The latitude in degrees. It must be in the range [-90.0, +90.0]. |
3357 core.double latitude; | 3647 core.double latitude; |
3358 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ | 3648 |
| 3649 /// The longitude in degrees. It must be in the range [-180.0, +180.0]. |
3359 core.double longitude; | 3650 core.double longitude; |
3360 | 3651 |
3361 LatLng(); | 3652 LatLng(); |
3362 | 3653 |
3363 LatLng.fromJson(core.Map _json) { | 3654 LatLng.fromJson(core.Map _json) { |
3364 if (_json.containsKey("latitude")) { | 3655 if (_json.containsKey("latitude")) { |
3365 latitude = _json["latitude"]; | 3656 latitude = _json["latitude"]; |
3366 } | 3657 } |
3367 if (_json.containsKey("longitude")) { | 3658 if (_json.containsKey("longitude")) { |
3368 longitude = _json["longitude"]; | 3659 longitude = _json["longitude"]; |
3369 } | 3660 } |
3370 } | 3661 } |
3371 | 3662 |
3372 core.Map<core.String, core.Object> toJson() { | 3663 core.Map<core.String, core.Object> toJson() { |
3373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3664 final core.Map<core.String, core.Object> _json = |
| 3665 new core.Map<core.String, core.Object>(); |
3374 if (latitude != null) { | 3666 if (latitude != null) { |
3375 _json["latitude"] = latitude; | 3667 _json["latitude"] = latitude; |
3376 } | 3668 } |
3377 if (longitude != null) { | 3669 if (longitude != null) { |
3378 _json["longitude"] = longitude; | 3670 _json["longitude"] = longitude; |
3379 } | 3671 } |
3380 return _json; | 3672 return _json; |
3381 } | 3673 } |
3382 } | 3674 } |
3383 | 3675 |
3384 /** | 3676 /// A lead resource that represents an advertiser contact for a `Company`. |
3385 * A lead resource that represents an advertiser contact for a `Company`. These | 3677 /// These |
3386 * are usually generated via Google Partner Search (the advertiser portal). | 3678 /// are usually generated via Google Partner Search (the advertiser portal). |
3387 */ | |
3388 class Lead { | 3679 class Lead { |
3389 /** The AdWords Customer ID of the lead. */ | 3680 /// The AdWords Customer ID of the lead. |
3390 core.String adwordsCustomerId; | 3681 core.String adwordsCustomerId; |
3391 /** Comments lead source gave. */ | 3682 |
| 3683 /// Comments lead source gave. |
3392 core.String comments; | 3684 core.String comments; |
3393 /** Timestamp of when this lead was created. */ | 3685 |
| 3686 /// Timestamp of when this lead was created. |
3394 core.String createTime; | 3687 core.String createTime; |
3395 /** Email address of lead source. */ | 3688 |
| 3689 /// Email address of lead source. |
3396 core.String email; | 3690 core.String email; |
3397 /** Last name of lead source. */ | 3691 |
| 3692 /// Last name of lead source. |
3398 core.String familyName; | 3693 core.String familyName; |
3399 /** First name of lead source. */ | 3694 |
| 3695 /// First name of lead source. |
3400 core.String givenName; | 3696 core.String givenName; |
3401 /** List of reasons for using Google Partner Search and creating a lead. */ | 3697 |
| 3698 /// List of reasons for using Google Partner Search and creating a lead. |
3402 core.List<core.String> gpsMotivations; | 3699 core.List<core.String> gpsMotivations; |
3403 /** ID of the lead. */ | 3700 |
| 3701 /// ID of the lead. |
3404 core.String id; | 3702 core.String id; |
3405 /** | 3703 |
3406 * Language code of the lead's language preference, as defined by | 3704 /// Language code of the lead's language preference, as defined by |
3407 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 3705 /// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> |
3408 * (IETF BCP 47, "Tags for Identifying Languages"). | 3706 /// (IETF BCP 47, "Tags for Identifying Languages"). |
3409 */ | |
3410 core.String languageCode; | 3707 core.String languageCode; |
3411 /** Whether or not the lead signed up for marketing emails */ | 3708 |
| 3709 /// Whether or not the lead signed up for marketing emails |
3412 core.bool marketingOptIn; | 3710 core.bool marketingOptIn; |
3413 /** The minimum monthly budget lead source is willing to spend. */ | 3711 |
| 3712 /// The minimum monthly budget lead source is willing to spend. |
3414 Money minMonthlyBudget; | 3713 Money minMonthlyBudget; |
3415 /** Phone number of lead source. */ | 3714 |
| 3715 /// Phone number of lead source. |
3416 core.String phoneNumber; | 3716 core.String phoneNumber; |
3417 /** | 3717 |
3418 * The lead's state in relation to the company. | 3718 /// The lead's state in relation to the company. |
3419 * Possible string values are: | 3719 /// Possible string values are: |
3420 * - "LEAD_STATE_UNSPECIFIED" : Unchosen. | 3720 /// - "LEAD_STATE_UNSPECIFIED" : Unchosen. |
3421 * - "LEAD" : Lead not yet contacted. | 3721 /// - "LEAD" : Lead not yet contacted. |
3422 * - "CONTACTED" : Lead has been contacted. | 3722 /// - "CONTACTED" : Lead has been contacted. |
3423 * - "CLIENT" : Lead has become a client. | 3723 /// - "CLIENT" : Lead has become a client. |
3424 * - "OTHER" : Lead in a state not covered by other options. | 3724 /// - "OTHER" : Lead in a state not covered by other options. |
3425 */ | |
3426 core.String state; | 3725 core.String state; |
3427 /** | 3726 |
3428 * Type of lead. | 3727 /// Type of lead. |
3429 * Possible string values are: | 3728 /// Possible string values are: |
3430 * - "LEAD_TYPE_UNSPECIFIED" : Unchosen. | 3729 /// - "LEAD_TYPE_UNSPECIFIED" : Unchosen. |
3431 * - "LT_GPS" : Google Partner Search. | 3730 /// - "LT_GPS" : Google Partner Search. |
3432 */ | |
3433 core.String type; | 3731 core.String type; |
3434 /** Website URL of lead source. */ | 3732 |
| 3733 /// Website URL of lead source. |
3435 core.String websiteUrl; | 3734 core.String websiteUrl; |
3436 | 3735 |
3437 Lead(); | 3736 Lead(); |
3438 | 3737 |
3439 Lead.fromJson(core.Map _json) { | 3738 Lead.fromJson(core.Map _json) { |
3440 if (_json.containsKey("adwordsCustomerId")) { | 3739 if (_json.containsKey("adwordsCustomerId")) { |
3441 adwordsCustomerId = _json["adwordsCustomerId"]; | 3740 adwordsCustomerId = _json["adwordsCustomerId"]; |
3442 } | 3741 } |
3443 if (_json.containsKey("comments")) { | 3742 if (_json.containsKey("comments")) { |
3444 comments = _json["comments"]; | 3743 comments = _json["comments"]; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3478 } | 3777 } |
3479 if (_json.containsKey("type")) { | 3778 if (_json.containsKey("type")) { |
3480 type = _json["type"]; | 3779 type = _json["type"]; |
3481 } | 3780 } |
3482 if (_json.containsKey("websiteUrl")) { | 3781 if (_json.containsKey("websiteUrl")) { |
3483 websiteUrl = _json["websiteUrl"]; | 3782 websiteUrl = _json["websiteUrl"]; |
3484 } | 3783 } |
3485 } | 3784 } |
3486 | 3785 |
3487 core.Map<core.String, core.Object> toJson() { | 3786 core.Map<core.String, core.Object> toJson() { |
3488 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3787 final core.Map<core.String, core.Object> _json = |
| 3788 new core.Map<core.String, core.Object>(); |
3489 if (adwordsCustomerId != null) { | 3789 if (adwordsCustomerId != null) { |
3490 _json["adwordsCustomerId"] = adwordsCustomerId; | 3790 _json["adwordsCustomerId"] = adwordsCustomerId; |
3491 } | 3791 } |
3492 if (comments != null) { | 3792 if (comments != null) { |
3493 _json["comments"] = comments; | 3793 _json["comments"] = comments; |
3494 } | 3794 } |
3495 if (createTime != null) { | 3795 if (createTime != null) { |
3496 _json["createTime"] = createTime; | 3796 _json["createTime"] = createTime; |
3497 } | 3797 } |
3498 if (email != null) { | 3798 if (email != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
3528 if (type != null) { | 3828 if (type != null) { |
3529 _json["type"] = type; | 3829 _json["type"] = type; |
3530 } | 3830 } |
3531 if (websiteUrl != null) { | 3831 if (websiteUrl != null) { |
3532 _json["websiteUrl"] = websiteUrl; | 3832 _json["websiteUrl"] = websiteUrl; |
3533 } | 3833 } |
3534 return _json; | 3834 return _json; |
3535 } | 3835 } |
3536 } | 3836 } |
3537 | 3837 |
3538 /** | 3838 /// Response message for |
3539 * Response message for | 3839 /// ListAnalytics. |
3540 * ListAnalytics. | |
3541 */ | |
3542 class ListAnalyticsResponse { | 3840 class ListAnalyticsResponse { |
3543 /** | 3841 /// The list of analytics. |
3544 * The list of analytics. | 3842 /// Sorted in ascending order of |
3545 * Sorted in ascending order of | 3843 /// Analytics.event_date. |
3546 * Analytics.event_date. | |
3547 */ | |
3548 core.List<Analytics> analytics; | 3844 core.List<Analytics> analytics; |
3549 /** | 3845 |
3550 * Aggregated information across the response's | 3846 /// Aggregated information across the response's |
3551 * analytics. | 3847 /// analytics. |
3552 */ | |
3553 AnalyticsSummary analyticsSummary; | 3848 AnalyticsSummary analyticsSummary; |
3554 /** | 3849 |
3555 * A token to retrieve next page of results. | 3850 /// A token to retrieve next page of results. |
3556 * Pass this value in the `ListAnalyticsRequest.page_token` field in the | 3851 /// Pass this value in the `ListAnalyticsRequest.page_token` field in the |
3557 * subsequent call to | 3852 /// subsequent call to |
3558 * ListAnalytics to retrieve the | 3853 /// ListAnalytics to retrieve the |
3559 * next page of results. | 3854 /// next page of results. |
3560 */ | |
3561 core.String nextPageToken; | 3855 core.String nextPageToken; |
3562 /** Current response metadata. */ | 3856 |
| 3857 /// Current response metadata. |
3563 ResponseMetadata responseMetadata; | 3858 ResponseMetadata responseMetadata; |
3564 | 3859 |
3565 ListAnalyticsResponse(); | 3860 ListAnalyticsResponse(); |
3566 | 3861 |
3567 ListAnalyticsResponse.fromJson(core.Map _json) { | 3862 ListAnalyticsResponse.fromJson(core.Map _json) { |
3568 if (_json.containsKey("analytics")) { | 3863 if (_json.containsKey("analytics")) { |
3569 analytics = _json["analytics"].map((value) => new Analytics.fromJson(value
)).toList(); | 3864 analytics = _json["analytics"] |
| 3865 .map((value) => new Analytics.fromJson(value)) |
| 3866 .toList(); |
3570 } | 3867 } |
3571 if (_json.containsKey("analyticsSummary")) { | 3868 if (_json.containsKey("analyticsSummary")) { |
3572 analyticsSummary = new AnalyticsSummary.fromJson(_json["analyticsSummary"]
); | 3869 analyticsSummary = |
| 3870 new AnalyticsSummary.fromJson(_json["analyticsSummary"]); |
3573 } | 3871 } |
3574 if (_json.containsKey("nextPageToken")) { | 3872 if (_json.containsKey("nextPageToken")) { |
3575 nextPageToken = _json["nextPageToken"]; | 3873 nextPageToken = _json["nextPageToken"]; |
3576 } | 3874 } |
3577 if (_json.containsKey("responseMetadata")) { | 3875 if (_json.containsKey("responseMetadata")) { |
3578 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3876 responseMetadata = |
| 3877 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3579 } | 3878 } |
3580 } | 3879 } |
3581 | 3880 |
3582 core.Map<core.String, core.Object> toJson() { | 3881 core.Map<core.String, core.Object> toJson() { |
3583 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3882 final core.Map<core.String, core.Object> _json = |
| 3883 new core.Map<core.String, core.Object>(); |
3584 if (analytics != null) { | 3884 if (analytics != null) { |
3585 _json["analytics"] = analytics.map((value) => (value).toJson()).toList(); | 3885 _json["analytics"] = analytics.map((value) => (value).toJson()).toList(); |
3586 } | 3886 } |
3587 if (analyticsSummary != null) { | 3887 if (analyticsSummary != null) { |
3588 _json["analyticsSummary"] = (analyticsSummary).toJson(); | 3888 _json["analyticsSummary"] = (analyticsSummary).toJson(); |
3589 } | 3889 } |
3590 if (nextPageToken != null) { | 3890 if (nextPageToken != null) { |
3591 _json["nextPageToken"] = nextPageToken; | 3891 _json["nextPageToken"] = nextPageToken; |
3592 } | 3892 } |
3593 if (responseMetadata != null) { | 3893 if (responseMetadata != null) { |
3594 _json["responseMetadata"] = (responseMetadata).toJson(); | 3894 _json["responseMetadata"] = (responseMetadata).toJson(); |
3595 } | 3895 } |
3596 return _json; | 3896 return _json; |
3597 } | 3897 } |
3598 } | 3898 } |
3599 | 3899 |
3600 /** | 3900 /// Response message for |
3601 * Response message for | 3901 /// ListCompanies. |
3602 * ListCompanies. | |
3603 */ | |
3604 class ListCompaniesResponse { | 3902 class ListCompaniesResponse { |
3605 /** The list of companies. */ | 3903 /// The list of companies. |
3606 core.List<Company> companies; | 3904 core.List<Company> companies; |
3607 /** | 3905 |
3608 * A token to retrieve next page of results. | 3906 /// A token to retrieve next page of results. |
3609 * Pass this value in the `ListCompaniesRequest.page_token` field in the | 3907 /// Pass this value in the `ListCompaniesRequest.page_token` field in the |
3610 * subsequent call to | 3908 /// subsequent call to |
3611 * ListCompanies to retrieve the | 3909 /// ListCompanies to retrieve the |
3612 * next page of results. | 3910 /// next page of results. |
3613 */ | |
3614 core.String nextPageToken; | 3911 core.String nextPageToken; |
3615 /** Current response metadata. */ | 3912 |
| 3913 /// Current response metadata. |
3616 ResponseMetadata responseMetadata; | 3914 ResponseMetadata responseMetadata; |
3617 | 3915 |
3618 ListCompaniesResponse(); | 3916 ListCompaniesResponse(); |
3619 | 3917 |
3620 ListCompaniesResponse.fromJson(core.Map _json) { | 3918 ListCompaniesResponse.fromJson(core.Map _json) { |
3621 if (_json.containsKey("companies")) { | 3919 if (_json.containsKey("companies")) { |
3622 companies = _json["companies"].map((value) => new Company.fromJson(value))
.toList(); | 3920 companies = _json["companies"] |
| 3921 .map((value) => new Company.fromJson(value)) |
| 3922 .toList(); |
3623 } | 3923 } |
3624 if (_json.containsKey("nextPageToken")) { | 3924 if (_json.containsKey("nextPageToken")) { |
3625 nextPageToken = _json["nextPageToken"]; | 3925 nextPageToken = _json["nextPageToken"]; |
3626 } | 3926 } |
3627 if (_json.containsKey("responseMetadata")) { | 3927 if (_json.containsKey("responseMetadata")) { |
3628 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3928 responseMetadata = |
| 3929 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3629 } | 3930 } |
3630 } | 3931 } |
3631 | 3932 |
3632 core.Map<core.String, core.Object> toJson() { | 3933 core.Map<core.String, core.Object> toJson() { |
3633 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3934 final core.Map<core.String, core.Object> _json = |
| 3935 new core.Map<core.String, core.Object>(); |
3634 if (companies != null) { | 3936 if (companies != null) { |
3635 _json["companies"] = companies.map((value) => (value).toJson()).toList(); | 3937 _json["companies"] = companies.map((value) => (value).toJson()).toList(); |
3636 } | 3938 } |
3637 if (nextPageToken != null) { | 3939 if (nextPageToken != null) { |
3638 _json["nextPageToken"] = nextPageToken; | 3940 _json["nextPageToken"] = nextPageToken; |
3639 } | 3941 } |
3640 if (responseMetadata != null) { | 3942 if (responseMetadata != null) { |
3641 _json["responseMetadata"] = (responseMetadata).toJson(); | 3943 _json["responseMetadata"] = (responseMetadata).toJson(); |
3642 } | 3944 } |
3643 return _json; | 3945 return _json; |
3644 } | 3946 } |
3645 } | 3947 } |
3646 | 3948 |
3647 /** Response message for ListLeads. */ | 3949 /// Response message for ListLeads. |
3648 class ListLeadsResponse { | 3950 class ListLeadsResponse { |
3649 /** The list of leads. */ | 3951 /// The list of leads. |
3650 core.List<Lead> leads; | 3952 core.List<Lead> leads; |
3651 /** | 3953 |
3652 * A token to retrieve next page of results. | 3954 /// A token to retrieve next page of results. |
3653 * Pass this value in the `ListLeadsRequest.page_token` field in the | 3955 /// Pass this value in the `ListLeadsRequest.page_token` field in the |
3654 * subsequent call to | 3956 /// subsequent call to |
3655 * ListLeads to retrieve the | 3957 /// ListLeads to retrieve the |
3656 * next page of results. | 3958 /// next page of results. |
3657 */ | |
3658 core.String nextPageToken; | 3959 core.String nextPageToken; |
3659 /** Current response metadata. */ | 3960 |
| 3961 /// Current response metadata. |
3660 ResponseMetadata responseMetadata; | 3962 ResponseMetadata responseMetadata; |
3661 /** The total count of leads for the given company. */ | 3963 |
| 3964 /// The total count of leads for the given company. |
3662 core.int totalSize; | 3965 core.int totalSize; |
3663 | 3966 |
3664 ListLeadsResponse(); | 3967 ListLeadsResponse(); |
3665 | 3968 |
3666 ListLeadsResponse.fromJson(core.Map _json) { | 3969 ListLeadsResponse.fromJson(core.Map _json) { |
3667 if (_json.containsKey("leads")) { | 3970 if (_json.containsKey("leads")) { |
3668 leads = _json["leads"].map((value) => new Lead.fromJson(value)).toList(); | 3971 leads = _json["leads"].map((value) => new Lead.fromJson(value)).toList(); |
3669 } | 3972 } |
3670 if (_json.containsKey("nextPageToken")) { | 3973 if (_json.containsKey("nextPageToken")) { |
3671 nextPageToken = _json["nextPageToken"]; | 3974 nextPageToken = _json["nextPageToken"]; |
3672 } | 3975 } |
3673 if (_json.containsKey("responseMetadata")) { | 3976 if (_json.containsKey("responseMetadata")) { |
3674 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3977 responseMetadata = |
| 3978 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3675 } | 3979 } |
3676 if (_json.containsKey("totalSize")) { | 3980 if (_json.containsKey("totalSize")) { |
3677 totalSize = _json["totalSize"]; | 3981 totalSize = _json["totalSize"]; |
3678 } | 3982 } |
3679 } | 3983 } |
3680 | 3984 |
3681 core.Map<core.String, core.Object> toJson() { | 3985 core.Map<core.String, core.Object> toJson() { |
3682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3986 final core.Map<core.String, core.Object> _json = |
| 3987 new core.Map<core.String, core.Object>(); |
3683 if (leads != null) { | 3988 if (leads != null) { |
3684 _json["leads"] = leads.map((value) => (value).toJson()).toList(); | 3989 _json["leads"] = leads.map((value) => (value).toJson()).toList(); |
3685 } | 3990 } |
3686 if (nextPageToken != null) { | 3991 if (nextPageToken != null) { |
3687 _json["nextPageToken"] = nextPageToken; | 3992 _json["nextPageToken"] = nextPageToken; |
3688 } | 3993 } |
3689 if (responseMetadata != null) { | 3994 if (responseMetadata != null) { |
3690 _json["responseMetadata"] = (responseMetadata).toJson(); | 3995 _json["responseMetadata"] = (responseMetadata).toJson(); |
3691 } | 3996 } |
3692 if (totalSize != null) { | 3997 if (totalSize != null) { |
3693 _json["totalSize"] = totalSize; | 3998 _json["totalSize"] = totalSize; |
3694 } | 3999 } |
3695 return _json; | 4000 return _json; |
3696 } | 4001 } |
3697 } | 4002 } |
3698 | 4003 |
3699 /** Response for ListOfferHistory. */ | 4004 /// Response for ListOfferHistory. |
3700 class ListOffersHistoryResponse { | 4005 class ListOffersHistoryResponse { |
3701 /** True if the user has the option to show entire company history. */ | 4006 /// True if the user has the option to show entire company history. |
3702 core.bool canShowEntireCompany; | 4007 core.bool canShowEntireCompany; |
3703 /** | 4008 |
3704 * Supply this token in a ListOffersHistoryRequest to retrieve the next page. | 4009 /// Supply this token in a ListOffersHistoryRequest to retrieve the next |
3705 */ | 4010 /// page. |
3706 core.String nextPageToken; | 4011 core.String nextPageToken; |
3707 /** Historical offers meeting request. */ | 4012 |
| 4013 /// Historical offers meeting request. |
3708 core.List<HistoricalOffer> offers; | 4014 core.List<HistoricalOffer> offers; |
3709 /** Current response metadata. */ | 4015 |
| 4016 /// Current response metadata. |
3710 ResponseMetadata responseMetadata; | 4017 ResponseMetadata responseMetadata; |
3711 /** True if this response is showing entire company history. */ | 4018 |
| 4019 /// True if this response is showing entire company history. |
3712 core.bool showingEntireCompany; | 4020 core.bool showingEntireCompany; |
3713 /** Number of results across all pages. */ | 4021 |
| 4022 /// Number of results across all pages. |
3714 core.int totalResults; | 4023 core.int totalResults; |
3715 | 4024 |
3716 ListOffersHistoryResponse(); | 4025 ListOffersHistoryResponse(); |
3717 | 4026 |
3718 ListOffersHistoryResponse.fromJson(core.Map _json) { | 4027 ListOffersHistoryResponse.fromJson(core.Map _json) { |
3719 if (_json.containsKey("canShowEntireCompany")) { | 4028 if (_json.containsKey("canShowEntireCompany")) { |
3720 canShowEntireCompany = _json["canShowEntireCompany"]; | 4029 canShowEntireCompany = _json["canShowEntireCompany"]; |
3721 } | 4030 } |
3722 if (_json.containsKey("nextPageToken")) { | 4031 if (_json.containsKey("nextPageToken")) { |
3723 nextPageToken = _json["nextPageToken"]; | 4032 nextPageToken = _json["nextPageToken"]; |
3724 } | 4033 } |
3725 if (_json.containsKey("offers")) { | 4034 if (_json.containsKey("offers")) { |
3726 offers = _json["offers"].map((value) => new HistoricalOffer.fromJson(value
)).toList(); | 4035 offers = _json["offers"] |
| 4036 .map((value) => new HistoricalOffer.fromJson(value)) |
| 4037 .toList(); |
3727 } | 4038 } |
3728 if (_json.containsKey("responseMetadata")) { | 4039 if (_json.containsKey("responseMetadata")) { |
3729 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4040 responseMetadata = |
| 4041 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3730 } | 4042 } |
3731 if (_json.containsKey("showingEntireCompany")) { | 4043 if (_json.containsKey("showingEntireCompany")) { |
3732 showingEntireCompany = _json["showingEntireCompany"]; | 4044 showingEntireCompany = _json["showingEntireCompany"]; |
3733 } | 4045 } |
3734 if (_json.containsKey("totalResults")) { | 4046 if (_json.containsKey("totalResults")) { |
3735 totalResults = _json["totalResults"]; | 4047 totalResults = _json["totalResults"]; |
3736 } | 4048 } |
3737 } | 4049 } |
3738 | 4050 |
3739 core.Map<core.String, core.Object> toJson() { | 4051 core.Map<core.String, core.Object> toJson() { |
3740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4052 final core.Map<core.String, core.Object> _json = |
| 4053 new core.Map<core.String, core.Object>(); |
3741 if (canShowEntireCompany != null) { | 4054 if (canShowEntireCompany != null) { |
3742 _json["canShowEntireCompany"] = canShowEntireCompany; | 4055 _json["canShowEntireCompany"] = canShowEntireCompany; |
3743 } | 4056 } |
3744 if (nextPageToken != null) { | 4057 if (nextPageToken != null) { |
3745 _json["nextPageToken"] = nextPageToken; | 4058 _json["nextPageToken"] = nextPageToken; |
3746 } | 4059 } |
3747 if (offers != null) { | 4060 if (offers != null) { |
3748 _json["offers"] = offers.map((value) => (value).toJson()).toList(); | 4061 _json["offers"] = offers.map((value) => (value).toJson()).toList(); |
3749 } | 4062 } |
3750 if (responseMetadata != null) { | 4063 if (responseMetadata != null) { |
3751 _json["responseMetadata"] = (responseMetadata).toJson(); | 4064 _json["responseMetadata"] = (responseMetadata).toJson(); |
3752 } | 4065 } |
3753 if (showingEntireCompany != null) { | 4066 if (showingEntireCompany != null) { |
3754 _json["showingEntireCompany"] = showingEntireCompany; | 4067 _json["showingEntireCompany"] = showingEntireCompany; |
3755 } | 4068 } |
3756 if (totalResults != null) { | 4069 if (totalResults != null) { |
3757 _json["totalResults"] = totalResults; | 4070 _json["totalResults"] = totalResults; |
3758 } | 4071 } |
3759 return _json; | 4072 return _json; |
3760 } | 4073 } |
3761 } | 4074 } |
3762 | 4075 |
3763 /** Response for ListOffer. */ | 4076 /// Response for ListOffer. |
3764 class ListOffersResponse { | 4077 class ListOffersResponse { |
3765 /** Available Offers to be distributed. */ | 4078 /// Available Offers to be distributed. |
3766 core.List<AvailableOffer> availableOffers; | 4079 core.List<AvailableOffer> availableOffers; |
3767 /** | 4080 |
3768 * Reason why no Offers are available. | 4081 /// Reason why no Offers are available. |
3769 * Possible string values are: | 4082 /// Possible string values are: |
3770 * - "NO_OFFER_REASON_UNSPECIFIED" : Unset. | 4083 /// - "NO_OFFER_REASON_UNSPECIFIED" : Unset. |
3771 * - "NO_OFFER_REASON_NO_MCC" : Not an MCC. | 4084 /// - "NO_OFFER_REASON_NO_MCC" : Not an MCC. |
3772 * - "NO_OFFER_REASON_LIMIT_REACHED" : Offer limit has been reached. | 4085 /// - "NO_OFFER_REASON_LIMIT_REACHED" : Offer limit has been reached. |
3773 * - "NO_OFFER_REASON_INELIGIBLE" : Ineligible for offers. | 4086 /// - "NO_OFFER_REASON_INELIGIBLE" : Ineligible for offers. |
3774 */ | |
3775 core.String noOfferReason; | 4087 core.String noOfferReason; |
3776 /** Current response metadata. */ | 4088 |
| 4089 /// Current response metadata. |
3777 ResponseMetadata responseMetadata; | 4090 ResponseMetadata responseMetadata; |
3778 | 4091 |
3779 ListOffersResponse(); | 4092 ListOffersResponse(); |
3780 | 4093 |
3781 ListOffersResponse.fromJson(core.Map _json) { | 4094 ListOffersResponse.fromJson(core.Map _json) { |
3782 if (_json.containsKey("availableOffers")) { | 4095 if (_json.containsKey("availableOffers")) { |
3783 availableOffers = _json["availableOffers"].map((value) => new AvailableOff
er.fromJson(value)).toList(); | 4096 availableOffers = _json["availableOffers"] |
| 4097 .map((value) => new AvailableOffer.fromJson(value)) |
| 4098 .toList(); |
3784 } | 4099 } |
3785 if (_json.containsKey("noOfferReason")) { | 4100 if (_json.containsKey("noOfferReason")) { |
3786 noOfferReason = _json["noOfferReason"]; | 4101 noOfferReason = _json["noOfferReason"]; |
3787 } | 4102 } |
3788 if (_json.containsKey("responseMetadata")) { | 4103 if (_json.containsKey("responseMetadata")) { |
3789 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4104 responseMetadata = |
| 4105 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3790 } | 4106 } |
3791 } | 4107 } |
3792 | 4108 |
3793 core.Map<core.String, core.Object> toJson() { | 4109 core.Map<core.String, core.Object> toJson() { |
3794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4110 final core.Map<core.String, core.Object> _json = |
| 4111 new core.Map<core.String, core.Object>(); |
3795 if (availableOffers != null) { | 4112 if (availableOffers != null) { |
3796 _json["availableOffers"] = availableOffers.map((value) => (value).toJson()
).toList(); | 4113 _json["availableOffers"] = |
| 4114 availableOffers.map((value) => (value).toJson()).toList(); |
3797 } | 4115 } |
3798 if (noOfferReason != null) { | 4116 if (noOfferReason != null) { |
3799 _json["noOfferReason"] = noOfferReason; | 4117 _json["noOfferReason"] = noOfferReason; |
3800 } | 4118 } |
3801 if (responseMetadata != null) { | 4119 if (responseMetadata != null) { |
3802 _json["responseMetadata"] = (responseMetadata).toJson(); | 4120 _json["responseMetadata"] = (responseMetadata).toJson(); |
3803 } | 4121 } |
3804 return _json; | 4122 return _json; |
3805 } | 4123 } |
3806 } | 4124 } |
3807 | 4125 |
3808 /** | 4126 /// Response message for |
3809 * Response message for | 4127 /// ListUserStates. |
3810 * ListUserStates. | |
3811 */ | |
3812 class ListUserStatesResponse { | 4128 class ListUserStatesResponse { |
3813 /** Current response metadata. */ | 4129 /// Current response metadata. |
3814 ResponseMetadata responseMetadata; | 4130 ResponseMetadata responseMetadata; |
3815 /** User's states. */ | 4131 |
| 4132 /// User's states. |
3816 core.List<core.String> userStates; | 4133 core.List<core.String> userStates; |
3817 | 4134 |
3818 ListUserStatesResponse(); | 4135 ListUserStatesResponse(); |
3819 | 4136 |
3820 ListUserStatesResponse.fromJson(core.Map _json) { | 4137 ListUserStatesResponse.fromJson(core.Map _json) { |
3821 if (_json.containsKey("responseMetadata")) { | 4138 if (_json.containsKey("responseMetadata")) { |
3822 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4139 responseMetadata = |
| 4140 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
3823 } | 4141 } |
3824 if (_json.containsKey("userStates")) { | 4142 if (_json.containsKey("userStates")) { |
3825 userStates = _json["userStates"]; | 4143 userStates = _json["userStates"]; |
3826 } | 4144 } |
3827 } | 4145 } |
3828 | 4146 |
3829 core.Map<core.String, core.Object> toJson() { | 4147 core.Map<core.String, core.Object> toJson() { |
3830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4148 final core.Map<core.String, core.Object> _json = |
| 4149 new core.Map<core.String, core.Object>(); |
3831 if (responseMetadata != null) { | 4150 if (responseMetadata != null) { |
3832 _json["responseMetadata"] = (responseMetadata).toJson(); | 4151 _json["responseMetadata"] = (responseMetadata).toJson(); |
3833 } | 4152 } |
3834 if (userStates != null) { | 4153 if (userStates != null) { |
3835 _json["userStates"] = userStates; | 4154 _json["userStates"] = userStates; |
3836 } | 4155 } |
3837 return _json; | 4156 return _json; |
3838 } | 4157 } |
3839 } | 4158 } |
3840 | 4159 |
3841 /** The localized company information. */ | 4160 /// The localized company information. |
3842 class LocalizedCompanyInfo { | 4161 class LocalizedCompanyInfo { |
3843 /** List of country codes for the localized company info. */ | 4162 /// List of country codes for the localized company info. |
3844 core.List<core.String> countryCodes; | 4163 core.List<core.String> countryCodes; |
3845 /** Localized display name. */ | 4164 |
| 4165 /// Localized display name. |
3846 core.String displayName; | 4166 core.String displayName; |
3847 /** | 4167 |
3848 * Language code of the localized company info, as defined by | 4168 /// Language code of the localized company info, as defined by |
3849 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 4169 /// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> |
3850 * (IETF BCP 47, "Tags for Identifying Languages"). | 4170 /// (IETF BCP 47, "Tags for Identifying Languages"). |
3851 */ | |
3852 core.String languageCode; | 4171 core.String languageCode; |
3853 /** | 4172 |
3854 * Localized brief description that the company uses to advertise themselves. | 4173 /// Localized brief description that the company uses to advertise |
3855 */ | 4174 /// themselves. |
3856 core.String overview; | 4175 core.String overview; |
3857 | 4176 |
3858 LocalizedCompanyInfo(); | 4177 LocalizedCompanyInfo(); |
3859 | 4178 |
3860 LocalizedCompanyInfo.fromJson(core.Map _json) { | 4179 LocalizedCompanyInfo.fromJson(core.Map _json) { |
3861 if (_json.containsKey("countryCodes")) { | 4180 if (_json.containsKey("countryCodes")) { |
3862 countryCodes = _json["countryCodes"]; | 4181 countryCodes = _json["countryCodes"]; |
3863 } | 4182 } |
3864 if (_json.containsKey("displayName")) { | 4183 if (_json.containsKey("displayName")) { |
3865 displayName = _json["displayName"]; | 4184 displayName = _json["displayName"]; |
3866 } | 4185 } |
3867 if (_json.containsKey("languageCode")) { | 4186 if (_json.containsKey("languageCode")) { |
3868 languageCode = _json["languageCode"]; | 4187 languageCode = _json["languageCode"]; |
3869 } | 4188 } |
3870 if (_json.containsKey("overview")) { | 4189 if (_json.containsKey("overview")) { |
3871 overview = _json["overview"]; | 4190 overview = _json["overview"]; |
3872 } | 4191 } |
3873 } | 4192 } |
3874 | 4193 |
3875 core.Map<core.String, core.Object> toJson() { | 4194 core.Map<core.String, core.Object> toJson() { |
3876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4195 final core.Map<core.String, core.Object> _json = |
| 4196 new core.Map<core.String, core.Object>(); |
3877 if (countryCodes != null) { | 4197 if (countryCodes != null) { |
3878 _json["countryCodes"] = countryCodes; | 4198 _json["countryCodes"] = countryCodes; |
3879 } | 4199 } |
3880 if (displayName != null) { | 4200 if (displayName != null) { |
3881 _json["displayName"] = displayName; | 4201 _json["displayName"] = displayName; |
3882 } | 4202 } |
3883 if (languageCode != null) { | 4203 if (languageCode != null) { |
3884 _json["languageCode"] = languageCode; | 4204 _json["languageCode"] = languageCode; |
3885 } | 4205 } |
3886 if (overview != null) { | 4206 if (overview != null) { |
3887 _json["overview"] = overview; | 4207 _json["overview"] = overview; |
3888 } | 4208 } |
3889 return _json; | 4209 return _json; |
3890 } | 4210 } |
3891 } | 4211 } |
3892 | 4212 |
3893 /** | 4213 /// A location with address and geographic coordinates. May optionally contain |
3894 * A location with address and geographic coordinates. May optionally contain a | 4214 /// a |
3895 * detailed (multi-field) version of the address. | 4215 /// detailed (multi-field) version of the address. |
3896 */ | |
3897 class Location { | 4216 class Location { |
3898 /** The single string version of the address. */ | 4217 /// The single string version of the address. |
3899 core.String address; | 4218 core.String address; |
3900 /** | 4219 |
3901 * The following address lines represent the most specific part of any | 4220 /// The following address lines represent the most specific part of any |
3902 * address. | 4221 /// address. |
3903 */ | |
3904 core.List<core.String> addressLine; | 4222 core.List<core.String> addressLine; |
3905 /** Top-level administrative subdivision of this country. */ | 4223 |
| 4224 /// Top-level administrative subdivision of this country. |
3906 core.String administrativeArea; | 4225 core.String administrativeArea; |
3907 /** | 4226 |
3908 * Dependent locality or sublocality. Used for UK dependent localities, or | 4227 /// Dependent locality or sublocality. Used for UK dependent localities, or |
3909 * neighborhoods or boroughs in other locations. | 4228 /// neighborhoods or boroughs in other locations. |
3910 */ | |
3911 core.String dependentLocality; | 4229 core.String dependentLocality; |
3912 /** Language code of the address. Should be in BCP 47 format. */ | 4230 |
| 4231 /// Language code of the address. Should be in BCP 47 format. |
3913 core.String languageCode; | 4232 core.String languageCode; |
3914 /** The latitude and longitude of the location, in degrees. */ | 4233 |
| 4234 /// The latitude and longitude of the location, in degrees. |
3915 LatLng latLng; | 4235 LatLng latLng; |
3916 /** Generally refers to the city/town portion of an address. */ | 4236 |
| 4237 /// Generally refers to the city/town portion of an address. |
3917 core.String locality; | 4238 core.String locality; |
3918 /** Values are frequently alphanumeric. */ | 4239 |
| 4240 /// Values are frequently alphanumeric. |
3919 core.String postalCode; | 4241 core.String postalCode; |
3920 /** CLDR (Common Locale Data Repository) region code . */ | 4242 |
| 4243 /// CLDR (Common Locale Data Repository) region code . |
3921 core.String regionCode; | 4244 core.String regionCode; |
3922 /** | 4245 |
3923 * Use of this code is very country-specific, but will refer to a secondary | 4246 /// Use of this code is very country-specific, but will refer to a secondary |
3924 * classification code for sorting mail. | 4247 /// classification code for sorting mail. |
3925 */ | |
3926 core.String sortingCode; | 4248 core.String sortingCode; |
3927 | 4249 |
3928 Location(); | 4250 Location(); |
3929 | 4251 |
3930 Location.fromJson(core.Map _json) { | 4252 Location.fromJson(core.Map _json) { |
3931 if (_json.containsKey("address")) { | 4253 if (_json.containsKey("address")) { |
3932 address = _json["address"]; | 4254 address = _json["address"]; |
3933 } | 4255 } |
3934 if (_json.containsKey("addressLine")) { | 4256 if (_json.containsKey("addressLine")) { |
3935 addressLine = _json["addressLine"]; | 4257 addressLine = _json["addressLine"]; |
(...skipping 18 matching lines...) Expand all Loading... |
3954 } | 4276 } |
3955 if (_json.containsKey("regionCode")) { | 4277 if (_json.containsKey("regionCode")) { |
3956 regionCode = _json["regionCode"]; | 4278 regionCode = _json["regionCode"]; |
3957 } | 4279 } |
3958 if (_json.containsKey("sortingCode")) { | 4280 if (_json.containsKey("sortingCode")) { |
3959 sortingCode = _json["sortingCode"]; | 4281 sortingCode = _json["sortingCode"]; |
3960 } | 4282 } |
3961 } | 4283 } |
3962 | 4284 |
3963 core.Map<core.String, core.Object> toJson() { | 4285 core.Map<core.String, core.Object> toJson() { |
3964 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4286 final core.Map<core.String, core.Object> _json = |
| 4287 new core.Map<core.String, core.Object>(); |
3965 if (address != null) { | 4288 if (address != null) { |
3966 _json["address"] = address; | 4289 _json["address"] = address; |
3967 } | 4290 } |
3968 if (addressLine != null) { | 4291 if (addressLine != null) { |
3969 _json["addressLine"] = addressLine; | 4292 _json["addressLine"] = addressLine; |
3970 } | 4293 } |
3971 if (administrativeArea != null) { | 4294 if (administrativeArea != null) { |
3972 _json["administrativeArea"] = administrativeArea; | 4295 _json["administrativeArea"] = administrativeArea; |
3973 } | 4296 } |
3974 if (dependentLocality != null) { | 4297 if (dependentLocality != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
3989 if (regionCode != null) { | 4312 if (regionCode != null) { |
3990 _json["regionCode"] = regionCode; | 4313 _json["regionCode"] = regionCode; |
3991 } | 4314 } |
3992 if (sortingCode != null) { | 4315 if (sortingCode != null) { |
3993 _json["sortingCode"] = sortingCode; | 4316 _json["sortingCode"] = sortingCode; |
3994 } | 4317 } |
3995 return _json; | 4318 return _json; |
3996 } | 4319 } |
3997 } | 4320 } |
3998 | 4321 |
3999 /** | 4322 /// Request message for |
4000 * Request message for | 4323 /// LogClientMessage. |
4001 * LogClientMessage. | |
4002 */ | |
4003 class LogMessageRequest { | 4324 class LogMessageRequest { |
4004 /** | 4325 /// Map of client info, such as URL, browser navigator, browser platform, |
4005 * Map of client info, such as URL, browser navigator, browser platform, etc. | 4326 /// etc. |
4006 */ | |
4007 core.Map<core.String, core.String> clientInfo; | 4327 core.Map<core.String, core.String> clientInfo; |
4008 /** Details about the client message. */ | 4328 |
| 4329 /// Details about the client message. |
4009 core.String details; | 4330 core.String details; |
4010 /** | 4331 |
4011 * Message level of client message. | 4332 /// Message level of client message. |
4012 * Possible string values are: | 4333 /// Possible string values are: |
4013 * - "MESSAGE_LEVEL_UNSPECIFIED" : Unchosen. | 4334 /// - "MESSAGE_LEVEL_UNSPECIFIED" : Unchosen. |
4014 * - "ML_FINE" : Message level for tracing information. | 4335 /// - "ML_FINE" : Message level for tracing information. |
4015 * - "ML_INFO" : Message level for informational messages. | 4336 /// - "ML_INFO" : Message level for informational messages. |
4016 * - "ML_WARNING" : Message level for potential problems. | 4337 /// - "ML_WARNING" : Message level for potential problems. |
4017 * - "ML_SEVERE" : Message level for serious failures. | 4338 /// - "ML_SEVERE" : Message level for serious failures. |
4018 */ | |
4019 core.String level; | 4339 core.String level; |
4020 /** Current request metadata. */ | 4340 |
| 4341 /// Current request metadata. |
4021 RequestMetadata requestMetadata; | 4342 RequestMetadata requestMetadata; |
4022 | 4343 |
4023 LogMessageRequest(); | 4344 LogMessageRequest(); |
4024 | 4345 |
4025 LogMessageRequest.fromJson(core.Map _json) { | 4346 LogMessageRequest.fromJson(core.Map _json) { |
4026 if (_json.containsKey("clientInfo")) { | 4347 if (_json.containsKey("clientInfo")) { |
4027 clientInfo = _json["clientInfo"]; | 4348 clientInfo = _json["clientInfo"]; |
4028 } | 4349 } |
4029 if (_json.containsKey("details")) { | 4350 if (_json.containsKey("details")) { |
4030 details = _json["details"]; | 4351 details = _json["details"]; |
4031 } | 4352 } |
4032 if (_json.containsKey("level")) { | 4353 if (_json.containsKey("level")) { |
4033 level = _json["level"]; | 4354 level = _json["level"]; |
4034 } | 4355 } |
4035 if (_json.containsKey("requestMetadata")) { | 4356 if (_json.containsKey("requestMetadata")) { |
4036 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); | 4357 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
4037 } | 4358 } |
4038 } | 4359 } |
4039 | 4360 |
4040 core.Map<core.String, core.Object> toJson() { | 4361 core.Map<core.String, core.Object> toJson() { |
4041 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4362 final core.Map<core.String, core.Object> _json = |
| 4363 new core.Map<core.String, core.Object>(); |
4042 if (clientInfo != null) { | 4364 if (clientInfo != null) { |
4043 _json["clientInfo"] = clientInfo; | 4365 _json["clientInfo"] = clientInfo; |
4044 } | 4366 } |
4045 if (details != null) { | 4367 if (details != null) { |
4046 _json["details"] = details; | 4368 _json["details"] = details; |
4047 } | 4369 } |
4048 if (level != null) { | 4370 if (level != null) { |
4049 _json["level"] = level; | 4371 _json["level"] = level; |
4050 } | 4372 } |
4051 if (requestMetadata != null) { | 4373 if (requestMetadata != null) { |
4052 _json["requestMetadata"] = (requestMetadata).toJson(); | 4374 _json["requestMetadata"] = (requestMetadata).toJson(); |
4053 } | 4375 } |
4054 return _json; | 4376 return _json; |
4055 } | 4377 } |
4056 } | 4378 } |
4057 | 4379 |
4058 /** | 4380 /// Response message for |
4059 * Response message for | 4381 /// LogClientMessage. |
4060 * LogClientMessage. | |
4061 */ | |
4062 class LogMessageResponse { | 4382 class LogMessageResponse { |
4063 /** Current response metadata. */ | 4383 /// Current response metadata. |
4064 ResponseMetadata responseMetadata; | 4384 ResponseMetadata responseMetadata; |
4065 | 4385 |
4066 LogMessageResponse(); | 4386 LogMessageResponse(); |
4067 | 4387 |
4068 LogMessageResponse.fromJson(core.Map _json) { | 4388 LogMessageResponse.fromJson(core.Map _json) { |
4069 if (_json.containsKey("responseMetadata")) { | 4389 if (_json.containsKey("responseMetadata")) { |
4070 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4390 responseMetadata = |
| 4391 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
4071 } | 4392 } |
4072 } | 4393 } |
4073 | 4394 |
4074 core.Map<core.String, core.Object> toJson() { | 4395 core.Map<core.String, core.Object> toJson() { |
4075 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4396 final core.Map<core.String, core.Object> _json = |
| 4397 new core.Map<core.String, core.Object>(); |
4076 if (responseMetadata != null) { | 4398 if (responseMetadata != null) { |
4077 _json["responseMetadata"] = (responseMetadata).toJson(); | 4399 _json["responseMetadata"] = (responseMetadata).toJson(); |
4078 } | 4400 } |
4079 return _json; | 4401 return _json; |
4080 } | 4402 } |
4081 } | 4403 } |
4082 | 4404 |
4083 /** | 4405 /// Request message for |
4084 * Request message for | 4406 /// LogUserEvent. |
4085 * LogUserEvent. | |
4086 */ | |
4087 class LogUserEventRequest { | 4407 class LogUserEventRequest { |
4088 /** | 4408 /// The action that occurred. |
4089 * The action that occurred. | 4409 /// Possible string values are: |
4090 * Possible string values are: | 4410 /// - "EVENT_ACTION_UNSPECIFIED" : Unchosen. |
4091 * - "EVENT_ACTION_UNSPECIFIED" : Unchosen. | 4411 /// - "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" : Advertiser clicked `Find a |
4092 * - "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" : Advertiser clicked `Find a | 4412 /// partner` bottom button. |
4093 * partner` bottom button. | 4413 /// - "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" : Advertiser clicked `Find a |
4094 * - "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" : Advertiser clicked `Find a | 4414 /// partner` top button. |
4095 * partner` top button. | 4415 /// - "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" : Agency clicked `Join now` |
4096 * - "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" : Agency clicked `Join now` | 4416 /// bottom button. |
4097 * bottom button. | 4417 /// - "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" : Agency clicked `Join now` top |
4098 * - "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" : Agency clicked `Join now` top | 4418 /// button. |
4099 * button. | 4419 /// - "SMB_CANCELED_PARTNER_CONTACT_FORM" : Advertiser canceled partner |
4100 * - "SMB_CANCELED_PARTNER_CONTACT_FORM" : Advertiser canceled partner contact | 4420 /// contact form. |
4101 * form. | 4421 /// - "SMB_CLICKED_CONTACT_A_PARTNER" : Advertiser started partner contact |
4102 * - "SMB_CLICKED_CONTACT_A_PARTNER" : Advertiser started partner contact | 4422 /// form. |
4103 * form. | 4423 /// - "SMB_COMPLETED_PARTNER_CONTACT_FORM" : Advertiser completed partner |
4104 * - "SMB_COMPLETED_PARTNER_CONTACT_FORM" : Advertiser completed partner | 4424 /// contact form. |
4105 * contact form. | 4425 /// - "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" : Advertiser entered email |
4106 * - "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" : Advertiser entered email in | 4426 /// in contact form. |
4107 * contact form. | 4427 /// - "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" : Advertiser entered name in |
4108 * - "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" : Advertiser entered name in | 4428 /// contact form. |
4109 * contact form. | 4429 /// - "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" : Advertiser entered phone |
4110 * - "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" : Advertiser entered phone in | 4430 /// in contact form. |
4111 * contact form. | 4431 /// - "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" : Advertiser failed <a |
4112 * - "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" : Advertiser failed <a | 4432 /// href="https://www.google.com/recaptcha/">reCaptcha</a> |
4113 * href="https://www.google.com/recaptcha/">reCaptcha</a> | 4433 /// in contact form. |
4114 * in contact form. | 4434 /// - "PARTNER_VIEWED_BY_SMB" : Company viewed by advertiser. |
4115 * - "PARTNER_VIEWED_BY_SMB" : Company viewed by advertiser. | 4435 /// - "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" : Advertiser canceled |
4116 * - "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" : Advertiser canceled partner | 4436 /// partner contact form on Google Partner Search. |
4117 * contact form on Google Partner Search. | 4437 /// - "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" : Advertiser changed a top search |
4118 * - "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" : Advertiser changed a top search | 4438 /// parameter. |
4119 * parameter. | 4439 /// - "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" : Advertiser started partner |
4120 * - "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" : Advertiser started partner | 4440 /// contact form on Google Partner Search. |
4121 * contact form on Google Partner Search. | 4441 /// - "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" : Advertiser clicked |
4122 * - "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" : Advertiser clicked `Show | 4442 /// `Show more partners` bottom button. |
4123 * more partners` bottom button. | 4443 /// - "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" : Advertiser completed |
4124 * - "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" : Advertiser completed | 4444 /// partner contact form on Google Partner Search. |
4125 * partner contact form on Google Partner Search. | 4445 /// - "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" : Advertiser saw no |
4126 * - "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" : Advertiser saw no | 4446 /// partners available with search criteria. |
4127 * partners available with search criteria. | 4447 /// - "SMB_PERFORMED_SEARCH_ON_GPS" : Advertiser performed search on Google |
4128 * - "SMB_PERFORMED_SEARCH_ON_GPS" : Advertiser performed search on Google | 4448 /// Partner Search. |
4129 * Partner Search. | 4449 /// - "SMB_VIEWED_A_PARTNER_ON_GPS" : Advertiser viewed a partner on Google |
4130 * - "SMB_VIEWED_A_PARTNER_ON_GPS" : Advertiser viewed a partner on Google | 4450 /// Partner Search. |
4131 * Partner Search. | 4451 /// - "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" : Advertiser |
4132 * - "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" : Advertiser canceled | 4452 /// canceled partner contact form on profile page. |
4133 * partner contact form on profile page. | 4453 /// - "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" : Advertiser started |
4134 * - "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" : Advertiser started | 4454 /// partner contact form on profile page. |
4135 * partner contact form on profile page. | 4455 /// - "SMB_CLICKED_PARTNER_WEBSITE" : Advertiser clicked partner website. |
4136 * - "SMB_CLICKED_PARTNER_WEBSITE" : Advertiser clicked partner website. | 4456 /// - "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" : Advertiser |
4137 * - "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" : Advertiser | 4457 /// completed contact form on profile page. |
4138 * completed contact form on profile page. | 4458 /// - "SMB_VIEWED_A_PARTNER_PROFILE" : Advertiser viewed a partner profile. |
4139 * - "SMB_VIEWED_A_PARTNER_PROFILE" : Advertiser viewed a partner profile. | 4459 /// - "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" : Agency clicked `accept Terms Of |
4140 * - "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" : Agency clicked `accept Terms Of | 4460 /// Service` button. |
4141 * Service` button. | 4461 /// - "AGENCY_CHANGED_TOS_COUNTRY" : Agency changed Terms Of Service country. |
4142 * - "AGENCY_CHANGED_TOS_COUNTRY" : Agency changed Terms Of Service country. | 4462 /// - "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" : Agency added address in |
4143 * - "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" : Agency added address in | 4463 /// profile portal. |
4144 * profile portal. | 4464 /// - "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" : Agency added phone |
4145 * - "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" : Agency added phone | 4465 /// number in profile portal. |
4146 * number in profile portal. | 4466 /// - "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" : Agency changed primary |
4147 * - "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" : Agency changed primary | 4467 /// account association. |
4148 * account association. | 4468 /// - "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" : Agency changed primary |
4149 * - "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" : Agency changed primary | 4469 /// country association. |
4150 * country association. | 4470 /// - "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" : Agency |
4151 * - "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" : Agency | 4471 /// clicked `affiliate` button in profile portal. |
4152 * clicked `affiliate` button in profile portal. | 4472 /// - "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" : Agency clicked |
4153 * - "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" : Agency clicked | 4473 /// `give edit access` in profile portal. |
4154 * `give edit access` in profile portal. | 4474 /// - "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" : Agency clicked `log |
4155 * - "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" : Agency clicked `log out` | 4475 /// out` in profile portal. |
4156 * in profile portal. | 4476 /// - "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" : Agency clicked profile |
4157 * - "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" : Agency clicked profile | 4477 /// portal left nav. |
4158 * portal left nav. | 4478 /// - "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" : Agency |
4159 * - "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" : Agency | 4479 /// clicked `save and continue` at bottom of complete profile. |
4160 * clicked `save and continue` at bottom of complete profile. | 4480 /// - "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" : Agency clicked |
4161 * - "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" : Agency clicked | 4481 /// `unaffiliate` in profile portal. |
4162 * `unaffiliate` in profile portal. | 4482 /// - "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" : Agency |
4163 * - "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" : Agency filled | 4483 /// filled out company affiliation in profile portal. |
4164 * out company affiliation in profile portal. | 4484 /// - "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" : Agency |
4165 * - "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" : Agency | 4485 /// successfully connected with company in profile portal. |
4166 * successfully connected with company in profile portal. | 4486 /// - "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" : Agency clicked |
4167 * - "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" : Agency clicked create | 4487 /// create MCC in profile portal. |
4168 * MCC in profile portal. | 4488 /// - "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" : Agency did |
4169 * - "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" : Agency did | 4489 /// not have an MCC associated on profile portal. |
4170 * not have an MCC associated on profile portal. | 4490 /// - "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" : Agency had an MCC |
4171 * - "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" : Agency had an MCC | 4491 /// associated on profile portal. |
4172 * associated on profile portal. | 4492 /// - "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" : Agency added job |
4173 * - "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" : Agency added job | 4493 /// function in profile portal. |
4174 * function in profile portal. | 4494 /// - "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" : Agency looked at job |
4175 * - "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" : Agency looked at job function | 4495 /// function drop-down. |
4176 * drop-down. | 4496 /// - "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" : Agency selected |
4177 * - "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" : Agency selected | 4497 /// `account manage` as job function. |
4178 * `account manage` as job function. | 4498 /// - "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" : Agency selected |
4179 * - "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" : Agency selected | 4499 /// `account planner` as job function. |
4180 * `account planner` as job function. | 4500 /// - "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" : Agency selected |
4181 * - "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" : Agency selected `Analytics` | 4501 /// `Analytics` as job function. |
4182 * as job function. | 4502 /// - "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" : Agency selected `creative` |
4183 * - "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" : Agency selected `creative` | 4503 /// as job function. |
4184 * as job function. | 4504 /// - "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" : Agency selected `media |
4185 * - "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" : Agency selected `media | 4505 /// buyer` as job function. |
4186 * buyer` as job function. | 4506 /// - "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" : Agency selected |
4187 * - "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" : Agency selected `media | 4507 /// `media planner` as job function. |
4188 * planner` as job function. | 4508 /// - "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" : Agency selected `other` as |
4189 * - "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" : Agency selected `other` as job | 4509 /// job function. |
4190 * function. | 4510 /// - "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" : Agency selected |
4191 * - "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" : Agency selected | 4511 /// `production` as job function. |
4192 * `production` as job function. | 4512 /// - "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" : Agency selected `SEO` as job |
4193 * - "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" : Agency selected `SEO` as job | 4513 /// function. |
4194 * function. | 4514 /// - "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" : Agency selected `sales |
4195 * - "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" : Agency selected `sales rep` | 4515 /// rep` as job function. |
4196 * as job function. | 4516 /// - "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" : Agency selected |
4197 * - "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" : Agency selected | 4517 /// `search specialist` as job function. |
4198 * `search specialist` as job function. | 4518 /// - "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" : Agency added channels in |
4199 * - "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" : Agency added channels in | 4519 /// profile portal. |
4200 * profile portal. | 4520 /// - "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" : Agency looked at `add |
4201 * - "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" : Agency looked at `add channel` | 4521 /// channel` drop-down. |
4202 * drop-down. | 4522 /// - "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" : Agency selected |
4203 * - "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" : Agency selected `cross | 4523 /// `cross channel` from add channel drop-down. |
4204 * channel` from add channel drop-down. | 4524 /// - "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" : Agency selected `display` |
4205 * - "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" : Agency selected `display` | 4525 /// from add channel drop-down. |
4206 * from add channel drop-down. | 4526 /// - "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" : Agency selected `mobile` |
4207 * - "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" : Agency selected `mobile` from | 4527 /// from add channel drop-down. |
4208 * add channel drop-down. | 4528 /// - "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" : Agency selected `search` |
4209 * - "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" : Agency selected `search` from | 4529 /// from add channel drop-down. |
4210 * add channel drop-down. | 4530 /// - "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" : Agency selected `social` |
4211 * - "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" : Agency selected `social` from | 4531 /// from add channel drop-down. |
4212 * add channel drop-down. | 4532 /// - "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" : Agency selected `tools` from |
4213 * - "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" : Agency selected `tools` from | 4533 /// add channel drop-down. |
4214 * add channel drop-down. | 4534 /// - "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" : Agency selected `YouTube` |
4215 * - "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" : Agency selected `YouTube` | 4535 /// from add channel drop-down. |
4216 * from add channel drop-down. | 4536 /// - "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" : Agency added |
4217 * - "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" : Agency added industries | 4537 /// industries in profile portal. |
4218 * in profile portal. | 4538 /// - "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" : Agency changed `add |
4219 * - "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" : Agency changed `add | 4539 /// industries` drop-down. |
4220 * industries` drop-down. | 4540 /// - "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" : Agency added markets in |
4221 * - "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" : Agency added markets in | 4541 /// profile portal. |
4222 * profile portal. | 4542 /// - "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" : Agency changed `add markets` |
4223 * - "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" : Agency changed `add markets` | 4543 /// drop-down. |
4224 * drop-down. | 4544 /// - "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" : Agency checked |
4225 * - "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" : Agency checked | 4545 /// `recieve mail promotions` in profile portal. |
4226 * `recieve mail promotions` in profile portal. | 4546 /// - "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" : Agency checked |
4227 * - "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" : Agency checked `recieve | 4547 /// `recieve mail promotions` in sign-up. |
4228 * mail promotions` in sign-up. | 4548 /// - "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" : Agency selected |
4229 * - "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" : Agency selected | 4549 /// `opt-in beta tests and market research`. |
4230 * `opt-in beta tests and market research`. | 4550 /// - "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" : Agency |
4231 * - "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" : Agency | 4551 /// selected `opt-in beta tests` in profile portal. |
4232 * selected `opt-in beta tests` in profile portal. | 4552 /// - "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" : Agency selected |
4233 * - "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" : Agency selected | 4553 /// `opt-in news` in profile portal. |
4234 * `opt-in news` in profile portal. | 4554 /// - "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" : Agency selected |
4235 * - "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" : Agency selected | 4555 /// `opt-in news invitations and promotions`. |
4236 * `opt-in news invitations and promotions`. | 4556 /// - "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" : Agency |
4237 * - "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" : Agency | 4557 /// selected `opt-in performance SUG` in profile portal. |
4238 * selected `opt-in performance SUG` in profile portal. | 4558 /// - "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" : Agency selected |
4239 * - "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" : Agency selected | 4559 /// `opt-in performance suggestions`. |
4240 * `opt-in performance suggestions`. | 4560 /// - "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" : Agency |
4241 * - "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" : Agency selected | 4561 /// selected `opt-in select all email notifications`. |
4242 * `opt-in select all email notifications`. | 4562 /// - "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" : Agency |
4243 * - "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" : Agency | 4563 /// selected `select all opt-ins` in profile portal. |
4244 * selected `select all opt-ins` in profile portal. | 4564 /// - "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" : Agency clicked |
4245 * - "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" : Agency clicked | 4565 /// back button on `connect with company`. |
4246 * back button on `connect with company`. | 4566 /// - "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" : Agency |
4247 * - "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" : Agency | 4567 /// clicked continue to overview on `connect with company`. |
4248 * clicked continue to overview on `connect with company`. | 4568 /// - "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" : Agency |
4249 * - "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" : Agency | 4569 /// clicked `create MCC connect with company not found`. |
4250 * clicked `create MCC connect with company not found`. | 4570 /// - "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" : |
4251 * - "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" : Agency | 4571 /// Agency clicked `give edit access connect with company not found`. |
4252 * clicked `give edit access connect with company not found`. | 4572 /// - "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" : Agency |
4253 * - "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" : Agency clicked | 4573 /// clicked `log out connect with company not found`. |
4254 * `log out connect with company not found`. | 4574 /// - "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" : Agency |
4255 * - "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" : Agency | 4575 /// clicked `skip for now on connect with company page`. |
4256 * clicked `skip for now on connect with company page`. | 4576 /// - "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" : Agency |
4257 * - "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" : Agency | 4577 /// closed connection to company. |
4258 * closed connection to company. | 4578 /// - "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" : Agency completed field |
4259 * - "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" : Agency completed field | 4579 /// connect with company. |
4260 * connect with company. | 4580 /// - "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" : Agency found company to |
4261 * - "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" : Agency found company to connect | 4581 /// connect with. |
4262 * with. | 4582 /// - "AGENCY_SUCCESSFULLY_CREATED_COMPANY" : Agency successfully created |
4263 * - "AGENCY_SUCCESSFULLY_CREATED_COMPANY" : Agency successfully created | 4583 /// company. |
4264 * company. | 4584 /// - "AGENCY_ADDED_NEW_COMPANY_LOCATION" : Agency added new company |
4265 * - "AGENCY_ADDED_NEW_COMPANY_LOCATION" : Agency added new company location. | 4585 /// location. |
4266 * - "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" : Agency | 4586 /// - "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" : |
4267 * clicked community `join now link` in portal notifications. | 4587 /// Agency clicked community `join now link` in portal notifications. |
4268 * - "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" : Agency | 4588 /// - "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" : |
4269 * clicked `connect to company` link in portal notifications. | 4589 /// Agency clicked `connect to company` link in portal notifications. |
4270 * - "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" : Agency | 4590 /// - "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" : Agency |
4271 * cliecked `get certified` link in portal notifications. | 4591 /// cliecked `get certified` link in portal notifications. |
4272 * - "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" : | 4592 /// - "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" : |
4273 * Agency clicked `get VideoAds certified` link in portal notifications. | 4593 /// Agency clicked `get VideoAds certified` link in portal notifications. |
4274 * - "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" : Agency | 4594 /// - "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" : Agency |
4275 * clicked `link to MCC` link in portal notifications. | 4595 /// clicked `link to MCC` link in portal notifications. |
4276 * - "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" : Agency clicked `insight | 4596 /// - "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" : Agency clicked `insight |
4277 * content` in portal. | 4597 /// content` in portal. |
4278 * - "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" : Agency clicked | 4598 /// - "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" : Agency |
4279 * `insights view now pitch decks` in portal. | 4599 /// clicked `insights view now pitch decks` in portal. |
4280 * - "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" : Agency clicked `insights` | 4600 /// - "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" : Agency clicked |
4281 * left nav in portal. | 4601 /// `insights` left nav in portal. |
4282 * - "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" : Agency clicked `insights | 4602 /// - "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" : Agency clicked `insights |
4283 * upload content`. | 4603 /// upload content`. |
4284 * - "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" : Agency clicked `insights | 4604 /// - "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" : Agency clicked `insights |
4285 * viewed deprecated`. | 4605 /// viewed deprecated`. |
4286 * - "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" : Agency clicked | 4606 /// - "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" : Agency clicked |
4287 * `community` left nav in portal. | 4607 /// `community` left nav in portal. |
4288 * - "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" : Agency clicked | 4608 /// - "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" : Agency |
4289 * `join community` button in community portal. | 4609 /// clicked `join community` button in community portal. |
4290 * - "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" : Agency clicked | 4610 /// - "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" : Agency clicked |
4291 * `certifications` left nav in portal. | 4611 /// `certifications` left nav in portal. |
4292 * - "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" : Agency | 4612 /// - "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" : Agency |
4293 * clicked `certifications product` left nav in portal. | 4613 /// clicked `certifications product` left nav in portal. |
4294 * - "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL" : Agency clicked | 4614 /// - "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL" : Agency clicked |
4295 * `partner status` left nav in portal. | 4615 /// `partner status` left nav in portal. |
4296 * - "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" : Agency | 4616 /// - "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" : Agency |
4297 * clicked `partner status product` left nav in portal. | 4617 /// clicked `partner status product` left nav in portal. |
4298 * - "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" : Agency clicked `offers` left | 4618 /// - "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" : Agency clicked `offers` |
4299 * nav in portal. | 4619 /// left nav in portal. |
4300 * - "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" : Agency clicked `send` | 4620 /// - "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" : Agency clicked `send` |
4301 * button on offers page. | 4621 /// button on offers page. |
4302 * - "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" : Agency clicked `exam | 4622 /// - "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" : Agency clicked |
4303 * details` on certifications AdWords page. | 4623 /// `exam details` on certifications AdWords page. |
4304 * - "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" : Agency clicked `see | 4624 /// - "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" : Agency clicked |
4305 * exams` certifications main page. | 4625 /// `see exams` certifications main page. |
4306 * - "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" : Agency clicked `take exam` | 4626 /// - "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" : Agency clicked `take |
4307 * on certifications exam page. | 4627 /// exam` on certifications exam page. |
4308 * - "AGENCY_OPENED_LAST_ADMIN_DIALOG" : Agency opened `last admin` dialog. | 4628 /// - "AGENCY_OPENED_LAST_ADMIN_DIALOG" : Agency opened `last admin` dialog. |
4309 * - "AGENCY_OPENED_DIALOG_WITH_NO_USERS" : Agency opened dialog with no | 4629 /// - "AGENCY_OPENED_DIALOG_WITH_NO_USERS" : Agency opened dialog with no |
4310 * users. | 4630 /// users. |
4311 * - "AGENCY_PROMOTED_USER_TO_ADMIN" : Agency promoted user to admin. | 4631 /// - "AGENCY_PROMOTED_USER_TO_ADMIN" : Agency promoted user to admin. |
4312 * - "AGENCY_UNAFFILIATED" : Agency unaffiliated. | 4632 /// - "AGENCY_UNAFFILIATED" : Agency unaffiliated. |
4313 * - "AGENCY_CHANGED_ROLES" : Agency changed roles. | 4633 /// - "AGENCY_CHANGED_ROLES" : Agency changed roles. |
4314 * - "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" : Advertiser clicked `company | 4634 /// - "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" : Advertiser clicked |
4315 * name` link to profile. | 4635 /// `company name` link to profile. |
4316 * - "SMB_VIEWED_ADWORDS_CERTIFICATE" : Advertiser viewed AdWords certificate. | 4636 /// - "SMB_VIEWED_ADWORDS_CERTIFICATE" : Advertiser viewed AdWords |
4317 * - "SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE" : Advertiser viewed AdWords | 4637 /// certificate. |
4318 * Search certificate. | 4638 /// - "SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE" : Advertiser viewed AdWords |
4319 * - "SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE" : Advertiser viewed AdWords | 4639 /// Search certificate. |
4320 * Display certificate. | 4640 /// - "SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE" : Advertiser viewed AdWords |
4321 * - "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" : Advertiser clicked AdWords | 4641 /// Display certificate. |
4322 * certificate help icon. | 4642 /// - "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" : Advertiser clicked |
4323 * - "SMB_VIEWED_ANALYTICS_CERTIFICATE" : Advertiser viewed Analytics | 4643 /// AdWords certificate help icon. |
4324 * certificate. | 4644 /// - "SMB_VIEWED_ANALYTICS_CERTIFICATE" : Advertiser viewed Analytics |
4325 * - "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" : Advertiser viewed DoubleClick | 4645 /// certificate. |
4326 * certificate. | 4646 /// - "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" : Advertiser viewed DoubleClick |
4327 * - "SMB_VIEWED_MOBILE_SITES_CERTIFICATE" : Advertiser viewed Mobile Sites | 4647 /// certificate. |
4328 * certificate. | 4648 /// - "SMB_VIEWED_MOBILE_SITES_CERTIFICATE" : Advertiser viewed Mobile Sites |
4329 * - "SMB_VIEWED_VIDEO_ADS_CERTIFICATE" : Advertiser viewed VideoAds | 4649 /// certificate. |
4330 * certificate. | 4650 /// - "SMB_VIEWED_VIDEO_ADS_CERTIFICATE" : Advertiser viewed VideoAds |
4331 * - "SMB_VIEWED_SHOPPING_CERTIFICATE" : Advertiser clicked Shopping | 4651 /// certificate. |
4332 * certificate help icon. | 4652 /// - "SMB_VIEWED_SHOPPING_CERTIFICATE" : Advertiser clicked Shopping |
4333 * - "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" : Advertiser clicked | 4653 /// certificate help icon. |
4334 * VideoAds certificate help icon. | 4654 /// - "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" : Advertiser clicked |
4335 * - "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" : Advertiser viewed Digital Sales | 4655 /// VideoAds certificate help icon. |
4336 * certificate. | 4656 /// - "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" : Advertiser viewed Digital |
4337 * - "CLICKED_HELP_AT_BOTTOM" : Clicked `help` at bottom. | 4657 /// Sales certificate. |
4338 * - "CLICKED_HELP_AT_TOP" : Clicked `help` at top. | 4658 /// - "CLICKED_HELP_AT_BOTTOM" : Clicked `help` at bottom. |
4339 * - "CLIENT_ERROR" : Client error occurred. | 4659 /// - "CLICKED_HELP_AT_TOP" : Clicked `help` at top. |
4340 * - "AGENCY_CLICKED_LEFT_NAV_STORIES" : Agency clicked left nav `stories`. | 4660 /// - "CLIENT_ERROR" : Client error occurred. |
4341 * - "CLICKED" : Click occured. | 4661 /// - "AGENCY_CLICKED_LEFT_NAV_STORIES" : Agency clicked left nav `stories`. |
4342 * - "SMB_VIEWED_MOBILE_CERTIFICATE" : Advertiser clicked Mobile certificate | 4662 /// - "CLICKED" : Click occured. |
4343 * help icon. | 4663 /// - "SMB_VIEWED_MOBILE_CERTIFICATE" : Advertiser clicked Mobile certificate |
4344 * - "AGENCY_FAILED_COMPANY_VERIFICATION" : Agency failed the company | 4664 /// help icon. |
4345 * verification. | 4665 /// - "AGENCY_FAILED_COMPANY_VERIFICATION" : Agency failed the company |
4346 * - "VISITED_LANDING" : User visited the landing portion of Google Partners. | 4666 /// verification. |
4347 * - "VISITED_GPS" : User visited the Google Partner Search portion of Google | 4667 /// - "VISITED_LANDING" : User visited the landing portion of Google |
4348 * Partners. | 4668 /// Partners. |
4349 * - "VISITED_AGENCY_PORTAL" : User visited the agency portal portion of | 4669 /// - "VISITED_GPS" : User visited the Google Partner Search portion of |
4350 * Google Partners. | 4670 /// Google Partners. |
4351 * - "CANCELLED_INDIVIDUAL_SIGN_UP" : User cancelled signing up. | 4671 /// - "VISITED_AGENCY_PORTAL" : User visited the agency portal portion of |
4352 * - "CANCELLED_COMPANY_SIGN_UP" : User cancelled signing up their company. | 4672 /// Google Partners. |
4353 * - "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" : Agency clicked `Sign in` top | 4673 /// - "CANCELLED_INDIVIDUAL_SIGN_UP" : User cancelled signing up. |
4354 * button. | 4674 /// - "CANCELLED_COMPANY_SIGN_UP" : User cancelled signing up their company. |
4355 * - "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" : Agency | 4675 /// - "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" : Agency clicked `Sign in` top |
4356 * clicked `save and continue` at bottom of incomplete profile. | 4676 /// button. |
4357 * - "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" : Agency | 4677 /// - "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" : |
4358 * unselected `opt-in news invitations and promotions`. | 4678 /// Agency clicked `save and continue` at bottom of incomplete profile. |
4359 * - "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" : Agency | 4679 /// - "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" : Agency |
4360 * unselected `opt-in beta tests and market research`. | 4680 /// unselected `opt-in news invitations and promotions`. |
4361 * - "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" : Agency unselected | 4681 /// - "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" : Agency |
4362 * `opt-in performance suggestions`. | 4682 /// unselected `opt-in beta tests and market research`. |
4363 * - "AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS" : Agency | 4683 /// - "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" : Agency unselected |
4364 * selected `opt-out unselect all email notifications`. | 4684 /// `opt-in performance suggestions`. |
4365 * - "AGENCY_LINKED_INDIVIDUAL_MCC" : Agency linked their individual MCC. | 4685 /// - "AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS" : Agency |
4366 * - "AGENCY_SUGGESTED_TO_USER" : Agency was suggested to user for | 4686 /// selected `opt-out unselect all email notifications`. |
4367 * affiliation. | 4687 /// - "AGENCY_LINKED_INDIVIDUAL_MCC" : Agency linked their individual MCC. |
4368 * - "AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED" : Agency ignored | 4688 /// - "AGENCY_SUGGESTED_TO_USER" : Agency was suggested to user for |
4369 * suggested agencies and begin searching. | 4689 /// affiliation. |
4370 * - "AGENCY_PICKED_SUGGESTED_AGENCY" : Agency picked a suggested agency. | 4690 /// - "AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED" : Agency ignored |
4371 * - "AGENCY_SEARCHED_FOR_AGENCIES" : Agency searched for agencies. | 4691 /// suggested agencies and begin searching. |
4372 * - "AGENCY_PICKED_SEARCHED_AGENCY" : Agency picked a searched agency. | 4692 /// - "AGENCY_PICKED_SUGGESTED_AGENCY" : Agency picked a suggested agency. |
4373 * - "AGENCY_DISMISSED_AFFILIATION_WIDGET" : Agency dismissed affiliation | 4693 /// - "AGENCY_SEARCHED_FOR_AGENCIES" : Agency searched for agencies. |
4374 * widget. | 4694 /// - "AGENCY_PICKED_SEARCHED_AGENCY" : Agency picked a searched agency. |
4375 * - "AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT" : Agency clicked on the | 4695 /// - "AGENCY_DISMISSED_AFFILIATION_WIDGET" : Agency dismissed affiliation |
4376 * download link for downloading content. | 4696 /// widget. |
4377 * - "AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT" : Agency user is maklingg | 4697 /// - "AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT" : Agency clicked on the |
4378 * progress viewing a content item. | 4698 /// download link for downloading content. |
4379 * - "AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON" : Agency clicked `cancel Terms | 4699 /// - "AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT" : Agency user is maklingg |
4380 * Of Service` button. | 4700 /// progress viewing a content item. |
4381 * - "SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM" : Advertiser entered | 4701 /// - "AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON" : Agency clicked `cancel |
4382 * website in contact form. | 4702 /// Terms Of Service` button. |
4383 */ | 4703 /// - "SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM" : Advertiser entered |
| 4704 /// website in contact form. |
4384 core.String eventAction; | 4705 core.String eventAction; |
4385 /** | 4706 |
4386 * The category the action belongs to. | 4707 /// The category the action belongs to. |
4387 * Possible string values are: | 4708 /// Possible string values are: |
4388 * - "EVENT_CATEGORY_UNSPECIFIED" : Unchosen. | 4709 /// - "EVENT_CATEGORY_UNSPECIFIED" : Unchosen. |
4389 * - "GOOGLE_PARTNER_SEARCH" : Google Partner Search category. | 4710 /// - "GOOGLE_PARTNER_SEARCH" : Google Partner Search category. |
4390 * - "GOOGLE_PARTNER_SIGNUP_FLOW" : Google Partner sign-up flow category. | 4711 /// - "GOOGLE_PARTNER_SIGNUP_FLOW" : Google Partner sign-up flow category. |
4391 * - "GOOGLE_PARTNER_PORTAL" : Google Partner portal category. | 4712 /// - "GOOGLE_PARTNER_PORTAL" : Google Partner portal category. |
4392 * - "GOOGLE_PARTNER_PORTAL_MY_PROFILE" : Google Partner portal my-profile | 4713 /// - "GOOGLE_PARTNER_PORTAL_MY_PROFILE" : Google Partner portal my-profile |
4393 * category. | 4714 /// category. |
4394 * - "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" : Google Partner portal | 4715 /// - "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" : Google Partner portal |
4395 * certifications category. | 4716 /// certifications category. |
4396 * - "GOOGLE_PARTNER_PORTAL_COMMUNITY" : Google Partner portal community | 4717 /// - "GOOGLE_PARTNER_PORTAL_COMMUNITY" : Google Partner portal community |
4397 * category. | 4718 /// category. |
4398 * - "GOOGLE_PARTNER_PORTAL_INSIGHTS" : Google Partner portal insights | 4719 /// - "GOOGLE_PARTNER_PORTAL_INSIGHTS" : Google Partner portal insights |
4399 * category. | 4720 /// category. |
4400 * - "GOOGLE_PARTNER_PORTAL_CLIENTS" : Google Partner portal clients category. | 4721 /// - "GOOGLE_PARTNER_PORTAL_CLIENTS" : Google Partner portal clients |
4401 * - "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" : Google Partner portal public user | 4722 /// category. |
4402 * profile category. | 4723 /// - "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" : Google Partner portal public |
4403 * - "GOOGLE_PARTNER_PANEL" : Google Partner panel category. | 4724 /// user profile category. |
4404 * - "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" : Google Partner portal last | 4725 /// - "GOOGLE_PARTNER_PANEL" : Google Partner panel category. |
4405 * admin dialog category. | 4726 /// - "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" : Google Partner portal last |
4406 * - "GOOGLE_PARTNER_CLIENT" : Google Partner client category. | 4727 /// admin dialog category. |
4407 * - "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" : Google Partner portal company | 4728 /// - "GOOGLE_PARTNER_CLIENT" : Google Partner client category. |
4408 * profile category. | 4729 /// - "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" : Google Partner portal company |
4409 * - "EXTERNAL_LINKS" : External links category. | 4730 /// profile category. |
4410 * - "GOOGLE_PARTNER_LANDING" : Google Partner landing category. | 4731 /// - "EXTERNAL_LINKS" : External links category. |
4411 */ | 4732 /// - "GOOGLE_PARTNER_LANDING" : Google Partner landing category. |
4412 core.String eventCategory; | 4733 core.String eventCategory; |
4413 /** List of event data for the event. */ | 4734 |
| 4735 /// List of event data for the event. |
4414 core.List<EventData> eventDatas; | 4736 core.List<EventData> eventDatas; |
4415 /** | 4737 |
4416 * The scope of the event. | 4738 /// The scope of the event. |
4417 * Possible string values are: | 4739 /// Possible string values are: |
4418 * - "EVENT_SCOPE_UNSPECIFIED" : Unchosen. | 4740 /// - "EVENT_SCOPE_UNSPECIFIED" : Unchosen. |
4419 * - "VISITOR" : Based on visitor. | 4741 /// - "VISITOR" : Based on visitor. |
4420 * - "SESSION" : Based on session. | 4742 /// - "SESSION" : Based on session. |
4421 * - "PAGE" : Based on page visit. | 4743 /// - "PAGE" : Based on page visit. |
4422 */ | |
4423 core.String eventScope; | 4744 core.String eventScope; |
4424 /** Advertiser lead information. */ | 4745 |
| 4746 /// Advertiser lead information. |
4425 Lead lead; | 4747 Lead lead; |
4426 /** Current request metadata. */ | 4748 |
| 4749 /// Current request metadata. |
4427 RequestMetadata requestMetadata; | 4750 RequestMetadata requestMetadata; |
4428 /** The URL where the event occurred. */ | 4751 |
| 4752 /// The URL where the event occurred. |
4429 core.String url; | 4753 core.String url; |
4430 | 4754 |
4431 LogUserEventRequest(); | 4755 LogUserEventRequest(); |
4432 | 4756 |
4433 LogUserEventRequest.fromJson(core.Map _json) { | 4757 LogUserEventRequest.fromJson(core.Map _json) { |
4434 if (_json.containsKey("eventAction")) { | 4758 if (_json.containsKey("eventAction")) { |
4435 eventAction = _json["eventAction"]; | 4759 eventAction = _json["eventAction"]; |
4436 } | 4760 } |
4437 if (_json.containsKey("eventCategory")) { | 4761 if (_json.containsKey("eventCategory")) { |
4438 eventCategory = _json["eventCategory"]; | 4762 eventCategory = _json["eventCategory"]; |
4439 } | 4763 } |
4440 if (_json.containsKey("eventDatas")) { | 4764 if (_json.containsKey("eventDatas")) { |
4441 eventDatas = _json["eventDatas"].map((value) => new EventData.fromJson(val
ue)).toList(); | 4765 eventDatas = _json["eventDatas"] |
| 4766 .map((value) => new EventData.fromJson(value)) |
| 4767 .toList(); |
4442 } | 4768 } |
4443 if (_json.containsKey("eventScope")) { | 4769 if (_json.containsKey("eventScope")) { |
4444 eventScope = _json["eventScope"]; | 4770 eventScope = _json["eventScope"]; |
4445 } | 4771 } |
4446 if (_json.containsKey("lead")) { | 4772 if (_json.containsKey("lead")) { |
4447 lead = new Lead.fromJson(_json["lead"]); | 4773 lead = new Lead.fromJson(_json["lead"]); |
4448 } | 4774 } |
4449 if (_json.containsKey("requestMetadata")) { | 4775 if (_json.containsKey("requestMetadata")) { |
4450 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); | 4776 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
4451 } | 4777 } |
4452 if (_json.containsKey("url")) { | 4778 if (_json.containsKey("url")) { |
4453 url = _json["url"]; | 4779 url = _json["url"]; |
4454 } | 4780 } |
4455 } | 4781 } |
4456 | 4782 |
4457 core.Map<core.String, core.Object> toJson() { | 4783 core.Map<core.String, core.Object> toJson() { |
4458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4784 final core.Map<core.String, core.Object> _json = |
| 4785 new core.Map<core.String, core.Object>(); |
4459 if (eventAction != null) { | 4786 if (eventAction != null) { |
4460 _json["eventAction"] = eventAction; | 4787 _json["eventAction"] = eventAction; |
4461 } | 4788 } |
4462 if (eventCategory != null) { | 4789 if (eventCategory != null) { |
4463 _json["eventCategory"] = eventCategory; | 4790 _json["eventCategory"] = eventCategory; |
4464 } | 4791 } |
4465 if (eventDatas != null) { | 4792 if (eventDatas != null) { |
4466 _json["eventDatas"] = eventDatas.map((value) => (value).toJson()).toList()
; | 4793 _json["eventDatas"] = |
| 4794 eventDatas.map((value) => (value).toJson()).toList(); |
4467 } | 4795 } |
4468 if (eventScope != null) { | 4796 if (eventScope != null) { |
4469 _json["eventScope"] = eventScope; | 4797 _json["eventScope"] = eventScope; |
4470 } | 4798 } |
4471 if (lead != null) { | 4799 if (lead != null) { |
4472 _json["lead"] = (lead).toJson(); | 4800 _json["lead"] = (lead).toJson(); |
4473 } | 4801 } |
4474 if (requestMetadata != null) { | 4802 if (requestMetadata != null) { |
4475 _json["requestMetadata"] = (requestMetadata).toJson(); | 4803 _json["requestMetadata"] = (requestMetadata).toJson(); |
4476 } | 4804 } |
4477 if (url != null) { | 4805 if (url != null) { |
4478 _json["url"] = url; | 4806 _json["url"] = url; |
4479 } | 4807 } |
4480 return _json; | 4808 return _json; |
4481 } | 4809 } |
4482 } | 4810 } |
4483 | 4811 |
4484 /** | 4812 /// Response message for |
4485 * Response message for | 4813 /// LogUserEvent. |
4486 * LogUserEvent. | |
4487 */ | |
4488 class LogUserEventResponse { | 4814 class LogUserEventResponse { |
4489 /** Current response metadata. */ | 4815 /// Current response metadata. |
4490 ResponseMetadata responseMetadata; | 4816 ResponseMetadata responseMetadata; |
4491 | 4817 |
4492 LogUserEventResponse(); | 4818 LogUserEventResponse(); |
4493 | 4819 |
4494 LogUserEventResponse.fromJson(core.Map _json) { | 4820 LogUserEventResponse.fromJson(core.Map _json) { |
4495 if (_json.containsKey("responseMetadata")) { | 4821 if (_json.containsKey("responseMetadata")) { |
4496 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4822 responseMetadata = |
| 4823 new ResponseMetadata.fromJson(_json["responseMetadata"]); |
4497 } | 4824 } |
4498 } | 4825 } |
4499 | 4826 |
4500 core.Map<core.String, core.Object> toJson() { | 4827 core.Map<core.String, core.Object> toJson() { |
4501 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4828 final core.Map<core.String, core.Object> _json = |
| 4829 new core.Map<core.String, core.Object>(); |
4502 if (responseMetadata != null) { | 4830 if (responseMetadata != null) { |
4503 _json["responseMetadata"] = (responseMetadata).toJson(); | 4831 _json["responseMetadata"] = (responseMetadata).toJson(); |
4504 } | 4832 } |
4505 return _json; | 4833 return _json; |
4506 } | 4834 } |
4507 } | 4835 } |
4508 | 4836 |
4509 /** Represents an amount of money with its currency type. */ | 4837 /// Represents an amount of money with its currency type. |
4510 class Money { | 4838 class Money { |
4511 /** The 3-letter currency code defined in ISO 4217. */ | 4839 /// The 3-letter currency code defined in ISO 4217. |
4512 core.String currencyCode; | 4840 core.String currencyCode; |
4513 /** | 4841 |
4514 * Number of nano (10^-9) units of the amount. | 4842 /// Number of nano (10^-9) units of the amount. |
4515 * The value must be between -999,999,999 and +999,999,999 inclusive. | 4843 /// The value must be between -999,999,999 and +999,999,999 inclusive. |
4516 * If `units` is positive, `nanos` must be positive or zero. | 4844 /// If `units` is positive, `nanos` must be positive or zero. |
4517 * If `units` is zero, `nanos` can be positive, zero, or negative. | 4845 /// If `units` is zero, `nanos` can be positive, zero, or negative. |
4518 * If `units` is negative, `nanos` must be negative or zero. | 4846 /// If `units` is negative, `nanos` must be negative or zero. |
4519 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. | 4847 /// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. |
4520 */ | |
4521 core.int nanos; | 4848 core.int nanos; |
4522 /** | 4849 |
4523 * The whole units of the amount. | 4850 /// The whole units of the amount. |
4524 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. | 4851 /// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
4525 */ | |
4526 core.String units; | 4852 core.String units; |
4527 | 4853 |
4528 Money(); | 4854 Money(); |
4529 | 4855 |
4530 Money.fromJson(core.Map _json) { | 4856 Money.fromJson(core.Map _json) { |
4531 if (_json.containsKey("currencyCode")) { | 4857 if (_json.containsKey("currencyCode")) { |
4532 currencyCode = _json["currencyCode"]; | 4858 currencyCode = _json["currencyCode"]; |
4533 } | 4859 } |
4534 if (_json.containsKey("nanos")) { | 4860 if (_json.containsKey("nanos")) { |
4535 nanos = _json["nanos"]; | 4861 nanos = _json["nanos"]; |
4536 } | 4862 } |
4537 if (_json.containsKey("units")) { | 4863 if (_json.containsKey("units")) { |
4538 units = _json["units"]; | 4864 units = _json["units"]; |
4539 } | 4865 } |
4540 } | 4866 } |
4541 | 4867 |
4542 core.Map<core.String, core.Object> toJson() { | 4868 core.Map<core.String, core.Object> toJson() { |
4543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4869 final core.Map<core.String, core.Object> _json = |
| 4870 new core.Map<core.String, core.Object>(); |
4544 if (currencyCode != null) { | 4871 if (currencyCode != null) { |
4545 _json["currencyCode"] = currencyCode; | 4872 _json["currencyCode"] = currencyCode; |
4546 } | 4873 } |
4547 if (nanos != null) { | 4874 if (nanos != null) { |
4548 _json["nanos"] = nanos; | 4875 _json["nanos"] = nanos; |
4549 } | 4876 } |
4550 if (units != null) { | 4877 if (units != null) { |
4551 _json["units"] = units; | 4878 _json["units"] = units; |
4552 } | 4879 } |
4553 return _json; | 4880 return _json; |
4554 } | 4881 } |
4555 } | 4882 } |
4556 | 4883 |
4557 /** Customers qualified for an offer. */ | 4884 /// Customers qualified for an offer. |
4558 class OfferCustomer { | 4885 class OfferCustomer { |
4559 /** URL to the customer's AdWords page. */ | 4886 /// URL to the customer's AdWords page. |
4560 core.String adwordsUrl; | 4887 core.String adwordsUrl; |
4561 /** Country code of the customer. */ | 4888 |
| 4889 /// Country code of the customer. |
4562 core.String countryCode; | 4890 core.String countryCode; |
4563 /** Time the customer was created. */ | 4891 |
| 4892 /// Time the customer was created. |
4564 core.String creationTime; | 4893 core.String creationTime; |
4565 /** Days the customer is still eligible. */ | 4894 |
| 4895 /// Days the customer is still eligible. |
4566 core.int eligibilityDaysLeft; | 4896 core.int eligibilityDaysLeft; |
4567 /** External CID for the customer. */ | 4897 |
| 4898 /// External CID for the customer. |
4568 core.String externalCid; | 4899 core.String externalCid; |
4569 /** Formatted Get Y amount with currency code. */ | 4900 |
| 4901 /// Formatted Get Y amount with currency code. |
4570 core.String getYAmount; | 4902 core.String getYAmount; |
4571 /** Name of the customer. */ | 4903 |
| 4904 /// Name of the customer. |
4572 core.String name; | 4905 core.String name; |
4573 /** | 4906 |
4574 * Type of the offer | 4907 /// Type of the offer |
4575 * Possible string values are: | 4908 /// Possible string values are: |
4576 * - "OFFER_TYPE_UNSPECIFIED" : Unset. | 4909 /// - "OFFER_TYPE_UNSPECIFIED" : Unset. |
4577 * - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. | 4910 /// - "OFFER_TYPE_SPEND_X_GET_Y" : AdWords spend X get Y. |
4578 * - "OFFER_TYPE_VIDEO" : Youtube video. | 4911 /// - "OFFER_TYPE_VIDEO" : Youtube video. |
4579 * - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. | 4912 /// - "OFFER_TYPE_SPEND_MATCH" : Spend Match up to Y. |
4580 */ | |
4581 core.String offerType; | 4913 core.String offerType; |
4582 /** Formatted Spend X amount with currency code. */ | 4914 |
| 4915 /// Formatted Spend X amount with currency code. |
4583 core.String spendXAmount; | 4916 core.String spendXAmount; |
4584 | 4917 |
4585 OfferCustomer(); | 4918 OfferCustomer(); |
4586 | 4919 |
4587 OfferCustomer.fromJson(core.Map _json) { | 4920 OfferCustomer.fromJson(core.Map _json) { |
4588 if (_json.containsKey("adwordsUrl")) { | 4921 if (_json.containsKey("adwordsUrl")) { |
4589 adwordsUrl = _json["adwordsUrl"]; | 4922 adwordsUrl = _json["adwordsUrl"]; |
4590 } | 4923 } |
4591 if (_json.containsKey("countryCode")) { | 4924 if (_json.containsKey("countryCode")) { |
4592 countryCode = _json["countryCode"]; | 4925 countryCode = _json["countryCode"]; |
(...skipping 15 matching lines...) Expand all Loading... |
4608 } | 4941 } |
4609 if (_json.containsKey("offerType")) { | 4942 if (_json.containsKey("offerType")) { |
4610 offerType = _json["offerType"]; | 4943 offerType = _json["offerType"]; |
4611 } | 4944 } |
4612 if (_json.containsKey("spendXAmount")) { | 4945 if (_json.containsKey("spendXAmount")) { |
4613 spendXAmount = _json["spendXAmount"]; | 4946 spendXAmount = _json["spendXAmount"]; |
4614 } | 4947 } |
4615 } | 4948 } |
4616 | 4949 |
4617 core.Map<core.String, core.Object> toJson() { | 4950 core.Map<core.String, core.Object> toJson() { |
4618 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4951 final core.Map<core.String, core.Object> _json = |
| 4952 new core.Map<core.String, core.Object>(); |
4619 if (adwordsUrl != null) { | 4953 if (adwordsUrl != null) { |
4620 _json["adwordsUrl"] = adwordsUrl; | 4954 _json["adwordsUrl"] = adwordsUrl; |
4621 } | 4955 } |
4622 if (countryCode != null) { | 4956 if (countryCode != null) { |
4623 _json["countryCode"] = countryCode; | 4957 _json["countryCode"] = countryCode; |
4624 } | 4958 } |
4625 if (creationTime != null) { | 4959 if (creationTime != null) { |
4626 _json["creationTime"] = creationTime; | 4960 _json["creationTime"] = creationTime; |
4627 } | 4961 } |
4628 if (eligibilityDaysLeft != null) { | 4962 if (eligibilityDaysLeft != null) { |
(...skipping 11 matching lines...) Expand all Loading... |
4640 if (offerType != null) { | 4974 if (offerType != null) { |
4641 _json["offerType"] = offerType; | 4975 _json["offerType"] = offerType; |
4642 } | 4976 } |
4643 if (spendXAmount != null) { | 4977 if (spendXAmount != null) { |
4644 _json["spendXAmount"] = spendXAmount; | 4978 _json["spendXAmount"] = spendXAmount; |
4645 } | 4979 } |
4646 return _json; | 4980 return _json; |
4647 } | 4981 } |
4648 } | 4982 } |
4649 | 4983 |
4650 /** A set of opt-ins for a user. */ | 4984 /// A set of opt-ins for a user. |
4651 class OptIns { | 4985 class OptIns { |
4652 /** | 4986 /// An opt-in about receiving email from Partners marketing teams. Includes |
4653 * An opt-in about receiving email from Partners marketing teams. Includes | 4987 /// member-only events and special promotional offers for Google products. |
4654 * member-only events and special promotional offers for Google products. | |
4655 */ | |
4656 core.bool marketComm; | 4988 core.bool marketComm; |
4657 /** | 4989 |
4658 * An opt-in about receiving email with customized AdWords campaign management | 4990 /// An opt-in about receiving email with customized AdWords campaign |
4659 * tips. | 4991 /// management |
4660 */ | 4992 /// tips. |
4661 core.bool performanceSuggestions; | 4993 core.bool performanceSuggestions; |
4662 /** An opt-in to allow recieivng phone calls about their Partners account. */ | 4994 |
| 4995 /// An opt-in to allow recieivng phone calls about their Partners account. |
4663 core.bool phoneContact; | 4996 core.bool phoneContact; |
4664 /** | 4997 |
4665 * An opt-in to receive special promotional gifts and material in the mail. | 4998 /// An opt-in to receive special promotional gifts and material in the mail. |
4666 */ | |
4667 core.bool physicalMail; | 4999 core.bool physicalMail; |
4668 /** An opt-in about receiving email regarding new features and products. */ | 5000 |
| 5001 /// An opt-in about receiving email regarding new features and products. |
4669 core.bool specialOffers; | 5002 core.bool specialOffers; |
4670 | 5003 |
4671 OptIns(); | 5004 OptIns(); |
4672 | 5005 |
4673 OptIns.fromJson(core.Map _json) { | 5006 OptIns.fromJson(core.Map _json) { |
4674 if (_json.containsKey("marketComm")) { | 5007 if (_json.containsKey("marketComm")) { |
4675 marketComm = _json["marketComm"]; | 5008 marketComm = _json["marketComm"]; |
4676 } | 5009 } |
4677 if (_json.containsKey("performanceSuggestions")) { | 5010 if (_json.containsKey("performanceSuggestions")) { |
4678 performanceSuggestions = _json["performanceSuggestions"]; | 5011 performanceSuggestions = _json["performanceSuggestions"]; |
4679 } | 5012 } |
4680 if (_json.containsKey("phoneContact")) { | 5013 if (_json.containsKey("phoneContact")) { |
4681 phoneContact = _json["phoneContact"]; | 5014 phoneContact = _json["phoneContact"]; |
4682 } | 5015 } |
4683 if (_json.containsKey("physicalMail")) { | 5016 if (_json.containsKey("physicalMail")) { |
4684 physicalMail = _json["physicalMail"]; | 5017 physicalMail = _json["physicalMail"]; |
4685 } | 5018 } |
4686 if (_json.containsKey("specialOffers")) { | 5019 if (_json.containsKey("specialOffers")) { |
4687 specialOffers = _json["specialOffers"]; | 5020 specialOffers = _json["specialOffers"]; |
4688 } | 5021 } |
4689 } | 5022 } |
4690 | 5023 |
4691 core.Map<core.String, core.Object> toJson() { | 5024 core.Map<core.String, core.Object> toJson() { |
4692 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5025 final core.Map<core.String, core.Object> _json = |
| 5026 new core.Map<core.String, core.Object>(); |
4693 if (marketComm != null) { | 5027 if (marketComm != null) { |
4694 _json["marketComm"] = marketComm; | 5028 _json["marketComm"] = marketComm; |
4695 } | 5029 } |
4696 if (performanceSuggestions != null) { | 5030 if (performanceSuggestions != null) { |
4697 _json["performanceSuggestions"] = performanceSuggestions; | 5031 _json["performanceSuggestions"] = performanceSuggestions; |
4698 } | 5032 } |
4699 if (phoneContact != null) { | 5033 if (phoneContact != null) { |
4700 _json["phoneContact"] = phoneContact; | 5034 _json["phoneContact"] = phoneContact; |
4701 } | 5035 } |
4702 if (physicalMail != null) { | 5036 if (physicalMail != null) { |
4703 _json["physicalMail"] = physicalMail; | 5037 _json["physicalMail"] = physicalMail; |
4704 } | 5038 } |
4705 if (specialOffers != null) { | 5039 if (specialOffers != null) { |
4706 _json["specialOffers"] = specialOffers; | 5040 _json["specialOffers"] = specialOffers; |
4707 } | 5041 } |
4708 return _json; | 5042 return _json; |
4709 } | 5043 } |
4710 } | 5044 } |
4711 | 5045 |
4712 /** Basic information from a public profile. */ | 5046 /// Basic information from a public profile. |
4713 class PublicProfile { | 5047 class PublicProfile { |
4714 /** | 5048 /// The URL to the main display image of the public profile. Being |
4715 * The URL to the main display image of the public profile. Being deprecated. | 5049 /// deprecated. |
4716 */ | |
4717 core.String displayImageUrl; | 5050 core.String displayImageUrl; |
4718 /** The display name of the public profile. */ | 5051 |
| 5052 /// The display name of the public profile. |
4719 core.String displayName; | 5053 core.String displayName; |
4720 /** | 5054 |
4721 * The ID which can be used to retrieve more details about the public profile. | 5055 /// The ID which can be used to retrieve more details about the public |
4722 */ | 5056 /// profile. |
4723 core.String id; | 5057 core.String id; |
4724 /** The URL to the main profile image of the public profile. */ | 5058 |
| 5059 /// The URL to the main profile image of the public profile. |
4725 core.String profileImage; | 5060 core.String profileImage; |
4726 /** The URL of the public profile. */ | 5061 |
| 5062 /// The URL of the public profile. |
4727 core.String url; | 5063 core.String url; |
4728 | 5064 |
4729 PublicProfile(); | 5065 PublicProfile(); |
4730 | 5066 |
4731 PublicProfile.fromJson(core.Map _json) { | 5067 PublicProfile.fromJson(core.Map _json) { |
4732 if (_json.containsKey("displayImageUrl")) { | 5068 if (_json.containsKey("displayImageUrl")) { |
4733 displayImageUrl = _json["displayImageUrl"]; | 5069 displayImageUrl = _json["displayImageUrl"]; |
4734 } | 5070 } |
4735 if (_json.containsKey("displayName")) { | 5071 if (_json.containsKey("displayName")) { |
4736 displayName = _json["displayName"]; | 5072 displayName = _json["displayName"]; |
4737 } | 5073 } |
4738 if (_json.containsKey("id")) { | 5074 if (_json.containsKey("id")) { |
4739 id = _json["id"]; | 5075 id = _json["id"]; |
4740 } | 5076 } |
4741 if (_json.containsKey("profileImage")) { | 5077 if (_json.containsKey("profileImage")) { |
4742 profileImage = _json["profileImage"]; | 5078 profileImage = _json["profileImage"]; |
4743 } | 5079 } |
4744 if (_json.containsKey("url")) { | 5080 if (_json.containsKey("url")) { |
4745 url = _json["url"]; | 5081 url = _json["url"]; |
4746 } | 5082 } |
4747 } | 5083 } |
4748 | 5084 |
4749 core.Map<core.String, core.Object> toJson() { | 5085 core.Map<core.String, core.Object> toJson() { |
4750 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5086 final core.Map<core.String, core.Object> _json = |
| 5087 new core.Map<core.String, core.Object>(); |
4751 if (displayImageUrl != null) { | 5088 if (displayImageUrl != null) { |
4752 _json["displayImageUrl"] = displayImageUrl; | 5089 _json["displayImageUrl"] = displayImageUrl; |
4753 } | 5090 } |
4754 if (displayName != null) { | 5091 if (displayName != null) { |
4755 _json["displayName"] = displayName; | 5092 _json["displayName"] = displayName; |
4756 } | 5093 } |
4757 if (id != null) { | 5094 if (id != null) { |
4758 _json["id"] = id; | 5095 _json["id"] = id; |
4759 } | 5096 } |
4760 if (profileImage != null) { | 5097 if (profileImage != null) { |
4761 _json["profileImage"] = profileImage; | 5098 _json["profileImage"] = profileImage; |
4762 } | 5099 } |
4763 if (url != null) { | 5100 if (url != null) { |
4764 _json["url"] = url; | 5101 _json["url"] = url; |
4765 } | 5102 } |
4766 return _json; | 5103 return _json; |
4767 } | 5104 } |
4768 } | 5105 } |
4769 | 5106 |
4770 /** Information related to ranking of results. */ | 5107 /// Information related to ranking of results. |
4771 class Rank { | 5108 class Rank { |
4772 /** | 5109 /// The type of rank. |
4773 * The type of rank. | 5110 /// Possible string values are: |
4774 * Possible string values are: | 5111 /// - "RANK_TYPE_UNSPECIFIED" : Unchosen. |
4775 * - "RANK_TYPE_UNSPECIFIED" : Unchosen. | 5112 /// - "RT_FINAL_SCORE" : Total final score. |
4776 * - "RT_FINAL_SCORE" : Total final score. | |
4777 */ | |
4778 core.String type; | 5113 core.String type; |
4779 /** The numerical value of the rank. */ | 5114 |
| 5115 /// The numerical value of the rank. |
4780 core.double value; | 5116 core.double value; |
4781 | 5117 |
4782 Rank(); | 5118 Rank(); |
4783 | 5119 |
4784 Rank.fromJson(core.Map _json) { | 5120 Rank.fromJson(core.Map _json) { |
4785 if (_json.containsKey("type")) { | 5121 if (_json.containsKey("type")) { |
4786 type = _json["type"]; | 5122 type = _json["type"]; |
4787 } | 5123 } |
4788 if (_json.containsKey("value")) { | 5124 if (_json.containsKey("value")) { |
4789 value = _json["value"]; | 5125 value = _json["value"]; |
4790 } | 5126 } |
4791 } | 5127 } |
4792 | 5128 |
4793 core.Map<core.String, core.Object> toJson() { | 5129 core.Map<core.String, core.Object> toJson() { |
4794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5130 final core.Map<core.String, core.Object> _json = |
| 5131 new core.Map<core.String, core.Object>(); |
4795 if (type != null) { | 5132 if (type != null) { |
4796 _json["type"] = type; | 5133 _json["type"] = type; |
4797 } | 5134 } |
4798 if (value != null) { | 5135 if (value != null) { |
4799 _json["value"] = value; | 5136 _json["value"] = value; |
4800 } | 5137 } |
4801 return _json; | 5138 return _json; |
4802 } | 5139 } |
4803 } | 5140 } |
4804 | 5141 |
4805 /** | 5142 /// <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info. |
4806 * <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info. | |
4807 */ | |
4808 class RecaptchaChallenge { | 5143 class RecaptchaChallenge { |
4809 /** The ID of the reCaptcha challenge. */ | 5144 /// The ID of the reCaptcha challenge. |
4810 core.String id; | 5145 core.String id; |
4811 /** The response to the reCaptcha challenge. */ | 5146 |
| 5147 /// The response to the reCaptcha challenge. |
4812 core.String response; | 5148 core.String response; |
4813 | 5149 |
4814 RecaptchaChallenge(); | 5150 RecaptchaChallenge(); |
4815 | 5151 |
4816 RecaptchaChallenge.fromJson(core.Map _json) { | 5152 RecaptchaChallenge.fromJson(core.Map _json) { |
4817 if (_json.containsKey("id")) { | 5153 if (_json.containsKey("id")) { |
4818 id = _json["id"]; | 5154 id = _json["id"]; |
4819 } | 5155 } |
4820 if (_json.containsKey("response")) { | 5156 if (_json.containsKey("response")) { |
4821 response = _json["response"]; | 5157 response = _json["response"]; |
4822 } | 5158 } |
4823 } | 5159 } |
4824 | 5160 |
4825 core.Map<core.String, core.Object> toJson() { | 5161 core.Map<core.String, core.Object> toJson() { |
4826 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5162 final core.Map<core.String, core.Object> _json = |
| 5163 new core.Map<core.String, core.Object>(); |
4827 if (id != null) { | 5164 if (id != null) { |
4828 _json["id"] = id; | 5165 _json["id"] = id; |
4829 } | 5166 } |
4830 if (response != null) { | 5167 if (response != null) { |
4831 _json["response"] = response; | 5168 _json["response"] = response; |
4832 } | 5169 } |
4833 return _json; | 5170 return _json; |
4834 } | 5171 } |
4835 } | 5172 } |
4836 | 5173 |
4837 /** Common data that is in each API request. */ | 5174 /// Common data that is in each API request. |
4838 class RequestMetadata { | 5175 class RequestMetadata { |
4839 /** Experiment IDs the current request belongs to. */ | 5176 /// Experiment IDs the current request belongs to. |
4840 core.List<core.String> experimentIds; | 5177 core.List<core.String> experimentIds; |
4841 /** Locale to use for the current request. */ | 5178 |
| 5179 /// Locale to use for the current request. |
4842 core.String locale; | 5180 core.String locale; |
4843 /** Google Partners session ID. */ | 5181 |
| 5182 /// Google Partners session ID. |
4844 core.String partnersSessionId; | 5183 core.String partnersSessionId; |
4845 /** Source of traffic for the current request. */ | 5184 |
| 5185 /// Source of traffic for the current request. |
4846 TrafficSource trafficSource; | 5186 TrafficSource trafficSource; |
4847 /** | 5187 |
4848 * Values to use instead of the user's respective defaults for the current | 5188 /// Values to use instead of the user's respective defaults for the current |
4849 * request. These are only honored by whitelisted products. | 5189 /// request. These are only honored by whitelisted products. |
4850 */ | |
4851 UserOverrides userOverrides; | 5190 UserOverrides userOverrides; |
4852 | 5191 |
4853 RequestMetadata(); | 5192 RequestMetadata(); |
4854 | 5193 |
4855 RequestMetadata.fromJson(core.Map _json) { | 5194 RequestMetadata.fromJson(core.Map _json) { |
4856 if (_json.containsKey("experimentIds")) { | 5195 if (_json.containsKey("experimentIds")) { |
4857 experimentIds = _json["experimentIds"]; | 5196 experimentIds = _json["experimentIds"]; |
4858 } | 5197 } |
4859 if (_json.containsKey("locale")) { | 5198 if (_json.containsKey("locale")) { |
4860 locale = _json["locale"]; | 5199 locale = _json["locale"]; |
4861 } | 5200 } |
4862 if (_json.containsKey("partnersSessionId")) { | 5201 if (_json.containsKey("partnersSessionId")) { |
4863 partnersSessionId = _json["partnersSessionId"]; | 5202 partnersSessionId = _json["partnersSessionId"]; |
4864 } | 5203 } |
4865 if (_json.containsKey("trafficSource")) { | 5204 if (_json.containsKey("trafficSource")) { |
4866 trafficSource = new TrafficSource.fromJson(_json["trafficSource"]); | 5205 trafficSource = new TrafficSource.fromJson(_json["trafficSource"]); |
4867 } | 5206 } |
4868 if (_json.containsKey("userOverrides")) { | 5207 if (_json.containsKey("userOverrides")) { |
4869 userOverrides = new UserOverrides.fromJson(_json["userOverrides"]); | 5208 userOverrides = new UserOverrides.fromJson(_json["userOverrides"]); |
4870 } | 5209 } |
4871 } | 5210 } |
4872 | 5211 |
4873 core.Map<core.String, core.Object> toJson() { | 5212 core.Map<core.String, core.Object> toJson() { |
4874 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5213 final core.Map<core.String, core.Object> _json = |
| 5214 new core.Map<core.String, core.Object>(); |
4875 if (experimentIds != null) { | 5215 if (experimentIds != null) { |
4876 _json["experimentIds"] = experimentIds; | 5216 _json["experimentIds"] = experimentIds; |
4877 } | 5217 } |
4878 if (locale != null) { | 5218 if (locale != null) { |
4879 _json["locale"] = locale; | 5219 _json["locale"] = locale; |
4880 } | 5220 } |
4881 if (partnersSessionId != null) { | 5221 if (partnersSessionId != null) { |
4882 _json["partnersSessionId"] = partnersSessionId; | 5222 _json["partnersSessionId"] = partnersSessionId; |
4883 } | 5223 } |
4884 if (trafficSource != null) { | 5224 if (trafficSource != null) { |
4885 _json["trafficSource"] = (trafficSource).toJson(); | 5225 _json["trafficSource"] = (trafficSource).toJson(); |
4886 } | 5226 } |
4887 if (userOverrides != null) { | 5227 if (userOverrides != null) { |
4888 _json["userOverrides"] = (userOverrides).toJson(); | 5228 _json["userOverrides"] = (userOverrides).toJson(); |
4889 } | 5229 } |
4890 return _json; | 5230 return _json; |
4891 } | 5231 } |
4892 } | 5232 } |
4893 | 5233 |
4894 /** Common data that is in each API response. */ | 5234 /// Common data that is in each API response. |
4895 class ResponseMetadata { | 5235 class ResponseMetadata { |
4896 /** Debug information about this request. */ | 5236 /// Debug information about this request. |
4897 DebugInfo debugInfo; | 5237 DebugInfo debugInfo; |
4898 | 5238 |
4899 ResponseMetadata(); | 5239 ResponseMetadata(); |
4900 | 5240 |
4901 ResponseMetadata.fromJson(core.Map _json) { | 5241 ResponseMetadata.fromJson(core.Map _json) { |
4902 if (_json.containsKey("debugInfo")) { | 5242 if (_json.containsKey("debugInfo")) { |
4903 debugInfo = new DebugInfo.fromJson(_json["debugInfo"]); | 5243 debugInfo = new DebugInfo.fromJson(_json["debugInfo"]); |
4904 } | 5244 } |
4905 } | 5245 } |
4906 | 5246 |
4907 core.Map<core.String, core.Object> toJson() { | 5247 core.Map<core.String, core.Object> toJson() { |
4908 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5248 final core.Map<core.String, core.Object> _json = |
| 5249 new core.Map<core.String, core.Object>(); |
4909 if (debugInfo != null) { | 5250 if (debugInfo != null) { |
4910 _json["debugInfo"] = (debugInfo).toJson(); | 5251 _json["debugInfo"] = (debugInfo).toJson(); |
4911 } | 5252 } |
4912 return _json; | 5253 return _json; |
4913 } | 5254 } |
4914 } | 5255 } |
4915 | 5256 |
4916 /** Agency specialization status */ | 5257 /// Agency specialization status |
4917 class SpecializationStatus { | 5258 class SpecializationStatus { |
4918 /** | 5259 /// The specialization this status is for. |
4919 * The specialization this status is for. | 5260 /// Possible string values are: |
4920 * Possible string values are: | 5261 /// - "BADGE_SPECIALIZATION_UNKNOWN" : Unknown specialization |
4921 * - "BADGE_SPECIALIZATION_UNKNOWN" : Unknown specialization | 5262 /// - "BADGE_SPECIALIZATION_ADWORDS_SEARCH" : AdWords Search specialization |
4922 * - "BADGE_SPECIALIZATION_ADWORDS_SEARCH" : AdWords Search specialization | 5263 /// - "BADGE_SPECIALIZATION_ADWORDS_DISPLAY" : AdWords Display specialization |
4923 * - "BADGE_SPECIALIZATION_ADWORDS_DISPLAY" : AdWords Display specialization | 5264 /// - "BADGE_SPECIALIZATION_ADWORDS_MOBILE" : AdWords Mobile specialization |
4924 * - "BADGE_SPECIALIZATION_ADWORDS_MOBILE" : AdWords Mobile specialization | 5265 /// - "BADGE_SPECIALIZATION_ADWORDS_VIDEO" : AdWords Video specialization |
4925 * - "BADGE_SPECIALIZATION_ADWORDS_VIDEO" : AdWords Video specialization | 5266 /// - "BADGE_SPECIALIZATION_ADWORDS_SHOPPING" : AdWords Shopping |
4926 * - "BADGE_SPECIALIZATION_ADWORDS_SHOPPING" : AdWords Shopping specialization | 5267 /// specialization |
4927 */ | |
4928 core.String badgeSpecialization; | 5268 core.String badgeSpecialization; |
4929 /** | 5269 |
4930 * State of agency specialization. | 5270 /// State of agency specialization. |
4931 * Possible string values are: | 5271 /// Possible string values are: |
4932 * - "BADGE_SPECIALIZATION_STATE_UNKNOWN" : Unknown state | 5272 /// - "BADGE_SPECIALIZATION_STATE_UNKNOWN" : Unknown state |
4933 * - "BADGE_SPECIALIZATION_STATE_PASSED" : Specialization passed | 5273 /// - "BADGE_SPECIALIZATION_STATE_PASSED" : Specialization passed |
4934 * - "BADGE_SPECIALIZATION_STATE_NOT_PASSED" : Specialization not passed | 5274 /// - "BADGE_SPECIALIZATION_STATE_NOT_PASSED" : Specialization not passed |
4935 * - "BADGE_SPECIALIZATION_STATE_IN_GRACE" : Specialization in grace | 5275 /// - "BADGE_SPECIALIZATION_STATE_IN_GRACE" : Specialization in grace |
4936 */ | |
4937 core.String badgeSpecializationState; | 5276 core.String badgeSpecializationState; |
4938 | 5277 |
4939 SpecializationStatus(); | 5278 SpecializationStatus(); |
4940 | 5279 |
4941 SpecializationStatus.fromJson(core.Map _json) { | 5280 SpecializationStatus.fromJson(core.Map _json) { |
4942 if (_json.containsKey("badgeSpecialization")) { | 5281 if (_json.containsKey("badgeSpecialization")) { |
4943 badgeSpecialization = _json["badgeSpecialization"]; | 5282 badgeSpecialization = _json["badgeSpecialization"]; |
4944 } | 5283 } |
4945 if (_json.containsKey("badgeSpecializationState")) { | 5284 if (_json.containsKey("badgeSpecializationState")) { |
4946 badgeSpecializationState = _json["badgeSpecializationState"]; | 5285 badgeSpecializationState = _json["badgeSpecializationState"]; |
4947 } | 5286 } |
4948 } | 5287 } |
4949 | 5288 |
4950 core.Map<core.String, core.Object> toJson() { | 5289 core.Map<core.String, core.Object> toJson() { |
4951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5290 final core.Map<core.String, core.Object> _json = |
| 5291 new core.Map<core.String, core.Object>(); |
4952 if (badgeSpecialization != null) { | 5292 if (badgeSpecialization != null) { |
4953 _json["badgeSpecialization"] = badgeSpecialization; | 5293 _json["badgeSpecialization"] = badgeSpecialization; |
4954 } | 5294 } |
4955 if (badgeSpecializationState != null) { | 5295 if (badgeSpecializationState != null) { |
4956 _json["badgeSpecializationState"] = badgeSpecializationState; | 5296 _json["badgeSpecializationState"] = badgeSpecializationState; |
4957 } | 5297 } |
4958 return _json; | 5298 return _json; |
4959 } | 5299 } |
4960 } | 5300 } |
4961 | 5301 |
4962 /** Source of traffic for the current request. */ | 5302 /// Source of traffic for the current request. |
4963 class TrafficSource { | 5303 class TrafficSource { |
4964 /** | 5304 /// Identifier to indicate where the traffic comes from. |
4965 * Identifier to indicate where the traffic comes from. | 5305 /// An identifier has multiple letters created by a team which redirected the |
4966 * An identifier has multiple letters created by a team which redirected the | 5306 /// traffic to us. |
4967 * traffic to us. | |
4968 */ | |
4969 core.String trafficSourceId; | 5307 core.String trafficSourceId; |
4970 /** | 5308 |
4971 * Second level identifier to indicate where the traffic comes from. | 5309 /// Second level identifier to indicate where the traffic comes from. |
4972 * An identifier has multiple letters created by a team which redirected the | 5310 /// An identifier has multiple letters created by a team which redirected the |
4973 * traffic to us. | 5311 /// traffic to us. |
4974 */ | |
4975 core.String trafficSubId; | 5312 core.String trafficSubId; |
4976 | 5313 |
4977 TrafficSource(); | 5314 TrafficSource(); |
4978 | 5315 |
4979 TrafficSource.fromJson(core.Map _json) { | 5316 TrafficSource.fromJson(core.Map _json) { |
4980 if (_json.containsKey("trafficSourceId")) { | 5317 if (_json.containsKey("trafficSourceId")) { |
4981 trafficSourceId = _json["trafficSourceId"]; | 5318 trafficSourceId = _json["trafficSourceId"]; |
4982 } | 5319 } |
4983 if (_json.containsKey("trafficSubId")) { | 5320 if (_json.containsKey("trafficSubId")) { |
4984 trafficSubId = _json["trafficSubId"]; | 5321 trafficSubId = _json["trafficSubId"]; |
4985 } | 5322 } |
4986 } | 5323 } |
4987 | 5324 |
4988 core.Map<core.String, core.Object> toJson() { | 5325 core.Map<core.String, core.Object> toJson() { |
4989 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5326 final core.Map<core.String, core.Object> _json = |
| 5327 new core.Map<core.String, core.Object>(); |
4990 if (trafficSourceId != null) { | 5328 if (trafficSourceId != null) { |
4991 _json["trafficSourceId"] = trafficSourceId; | 5329 _json["trafficSourceId"] = trafficSourceId; |
4992 } | 5330 } |
4993 if (trafficSubId != null) { | 5331 if (trafficSubId != null) { |
4994 _json["trafficSubId"] = trafficSubId; | 5332 _json["trafficSubId"] = trafficSubId; |
4995 } | 5333 } |
4996 return _json; | 5334 return _json; |
4997 } | 5335 } |
4998 } | 5336 } |
4999 | 5337 |
5000 /** A resource representing a user of the Partners platform. */ | 5338 /// A resource representing a user of the Partners platform. |
5001 class User { | 5339 class User { |
5002 /** | 5340 /// This is the list of AdWords Manager Accounts the user has edit access to. |
5003 * This is the list of AdWords Manager Accounts the user has edit access to. | 5341 /// If the user has edit access to multiple accounts, the user can choose the |
5004 * If the user has edit access to multiple accounts, the user can choose the | 5342 /// preferred account and we use this when a personal account is needed. Can |
5005 * preferred account and we use this when a personal account is needed. Can | 5343 /// be empty meaning the user has access to no accounts. |
5006 * be empty meaning the user has access to no accounts. | 5344 /// @OutputOnly |
5007 * @OutputOnly | |
5008 */ | |
5009 core.List<AdWordsManagerAccountInfo> availableAdwordsManagerAccounts; | 5345 core.List<AdWordsManagerAccountInfo> availableAdwordsManagerAccounts; |
5010 /** | 5346 |
5011 * The list of achieved certifications. These are calculated based on exam | 5347 /// The list of achieved certifications. These are calculated based on exam |
5012 * results and other requirements. | 5348 /// results and other requirements. |
5013 * @OutputOnly | 5349 /// @OutputOnly |
5014 */ | |
5015 core.List<Certification> certificationStatus; | 5350 core.List<Certification> certificationStatus; |
5016 /** | 5351 |
5017 * The company that the user is associated with. | 5352 /// The company that the user is associated with. |
5018 * If not present, the user is not associated with any company. | 5353 /// If not present, the user is not associated with any company. |
5019 */ | |
5020 CompanyRelation company; | 5354 CompanyRelation company; |
5021 /** | 5355 |
5022 * The email address used by the user used for company verification. | 5356 /// The email address used by the user used for company verification. |
5023 * @OutputOnly | 5357 /// @OutputOnly |
5024 */ | |
5025 core.String companyVerificationEmail; | 5358 core.String companyVerificationEmail; |
5026 /** | 5359 |
5027 * The list of exams the user ever taken. For each type of exam, only one | 5360 /// The list of exams the user ever taken. For each type of exam, only one |
5028 * entry is listed. | 5361 /// entry is listed. |
5029 */ | |
5030 core.List<ExamStatus> examStatus; | 5362 core.List<ExamStatus> examStatus; |
5031 /** The ID of the user. */ | 5363 |
| 5364 /// The ID of the user. |
5032 core.String id; | 5365 core.String id; |
5033 /** | 5366 |
5034 * The internal user ID. | 5367 /// The internal user ID. |
5035 * Only available for a whitelisted set of api clients. | 5368 /// Only available for a whitelisted set of api clients. |
5036 */ | |
5037 core.String internalId; | 5369 core.String internalId; |
5038 /** | 5370 |
5039 * The most recent time the user interacted with the Partners site. | 5371 /// The most recent time the user interacted with the Partners site. |
5040 * @OutputOnly | 5372 /// @OutputOnly |
5041 */ | |
5042 core.String lastAccessTime; | 5373 core.String lastAccessTime; |
5043 /** | 5374 |
5044 * The list of emails the user has access to/can select as primary. | 5375 /// The list of emails the user has access to/can select as primary. |
5045 * @OutputOnly | 5376 /// @OutputOnly |
5046 */ | |
5047 core.List<core.String> primaryEmails; | 5377 core.List<core.String> primaryEmails; |
5048 /** | 5378 |
5049 * The profile information of a Partners user, contains all the directly | 5379 /// The profile information of a Partners user, contains all the directly |
5050 * editable user information. | 5380 /// editable user information. |
5051 */ | |
5052 UserProfile profile; | 5381 UserProfile profile; |
5053 /** | 5382 |
5054 * Information about a user's external public profile outside Google Partners. | 5383 /// Information about a user's external public profile outside Google |
5055 */ | 5384 /// Partners. |
5056 PublicProfile publicProfile; | 5385 PublicProfile publicProfile; |
5057 | 5386 |
5058 User(); | 5387 User(); |
5059 | 5388 |
5060 User.fromJson(core.Map _json) { | 5389 User.fromJson(core.Map _json) { |
5061 if (_json.containsKey("availableAdwordsManagerAccounts")) { | 5390 if (_json.containsKey("availableAdwordsManagerAccounts")) { |
5062 availableAdwordsManagerAccounts = _json["availableAdwordsManagerAccounts"]
.map((value) => new AdWordsManagerAccountInfo.fromJson(value)).toList(); | 5391 availableAdwordsManagerAccounts = _json["availableAdwordsManagerAccounts"] |
| 5392 .map((value) => new AdWordsManagerAccountInfo.fromJson(value)) |
| 5393 .toList(); |
5063 } | 5394 } |
5064 if (_json.containsKey("certificationStatus")) { | 5395 if (_json.containsKey("certificationStatus")) { |
5065 certificationStatus = _json["certificationStatus"].map((value) => new Cert
ification.fromJson(value)).toList(); | 5396 certificationStatus = _json["certificationStatus"] |
| 5397 .map((value) => new Certification.fromJson(value)) |
| 5398 .toList(); |
5066 } | 5399 } |
5067 if (_json.containsKey("company")) { | 5400 if (_json.containsKey("company")) { |
5068 company = new CompanyRelation.fromJson(_json["company"]); | 5401 company = new CompanyRelation.fromJson(_json["company"]); |
5069 } | 5402 } |
5070 if (_json.containsKey("companyVerificationEmail")) { | 5403 if (_json.containsKey("companyVerificationEmail")) { |
5071 companyVerificationEmail = _json["companyVerificationEmail"]; | 5404 companyVerificationEmail = _json["companyVerificationEmail"]; |
5072 } | 5405 } |
5073 if (_json.containsKey("examStatus")) { | 5406 if (_json.containsKey("examStatus")) { |
5074 examStatus = _json["examStatus"].map((value) => new ExamStatus.fromJson(va
lue)).toList(); | 5407 examStatus = _json["examStatus"] |
| 5408 .map((value) => new ExamStatus.fromJson(value)) |
| 5409 .toList(); |
5075 } | 5410 } |
5076 if (_json.containsKey("id")) { | 5411 if (_json.containsKey("id")) { |
5077 id = _json["id"]; | 5412 id = _json["id"]; |
5078 } | 5413 } |
5079 if (_json.containsKey("internalId")) { | 5414 if (_json.containsKey("internalId")) { |
5080 internalId = _json["internalId"]; | 5415 internalId = _json["internalId"]; |
5081 } | 5416 } |
5082 if (_json.containsKey("lastAccessTime")) { | 5417 if (_json.containsKey("lastAccessTime")) { |
5083 lastAccessTime = _json["lastAccessTime"]; | 5418 lastAccessTime = _json["lastAccessTime"]; |
5084 } | 5419 } |
5085 if (_json.containsKey("primaryEmails")) { | 5420 if (_json.containsKey("primaryEmails")) { |
5086 primaryEmails = _json["primaryEmails"]; | 5421 primaryEmails = _json["primaryEmails"]; |
5087 } | 5422 } |
5088 if (_json.containsKey("profile")) { | 5423 if (_json.containsKey("profile")) { |
5089 profile = new UserProfile.fromJson(_json["profile"]); | 5424 profile = new UserProfile.fromJson(_json["profile"]); |
5090 } | 5425 } |
5091 if (_json.containsKey("publicProfile")) { | 5426 if (_json.containsKey("publicProfile")) { |
5092 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); | 5427 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); |
5093 } | 5428 } |
5094 } | 5429 } |
5095 | 5430 |
5096 core.Map<core.String, core.Object> toJson() { | 5431 core.Map<core.String, core.Object> toJson() { |
5097 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5432 final core.Map<core.String, core.Object> _json = |
| 5433 new core.Map<core.String, core.Object>(); |
5098 if (availableAdwordsManagerAccounts != null) { | 5434 if (availableAdwordsManagerAccounts != null) { |
5099 _json["availableAdwordsManagerAccounts"] = availableAdwordsManagerAccounts
.map((value) => (value).toJson()).toList(); | 5435 _json["availableAdwordsManagerAccounts"] = availableAdwordsManagerAccounts |
| 5436 .map((value) => (value).toJson()) |
| 5437 .toList(); |
5100 } | 5438 } |
5101 if (certificationStatus != null) { | 5439 if (certificationStatus != null) { |
5102 _json["certificationStatus"] = certificationStatus.map((value) => (value).
toJson()).toList(); | 5440 _json["certificationStatus"] = |
| 5441 certificationStatus.map((value) => (value).toJson()).toList(); |
5103 } | 5442 } |
5104 if (company != null) { | 5443 if (company != null) { |
5105 _json["company"] = (company).toJson(); | 5444 _json["company"] = (company).toJson(); |
5106 } | 5445 } |
5107 if (companyVerificationEmail != null) { | 5446 if (companyVerificationEmail != null) { |
5108 _json["companyVerificationEmail"] = companyVerificationEmail; | 5447 _json["companyVerificationEmail"] = companyVerificationEmail; |
5109 } | 5448 } |
5110 if (examStatus != null) { | 5449 if (examStatus != null) { |
5111 _json["examStatus"] = examStatus.map((value) => (value).toJson()).toList()
; | 5450 _json["examStatus"] = |
| 5451 examStatus.map((value) => (value).toJson()).toList(); |
5112 } | 5452 } |
5113 if (id != null) { | 5453 if (id != null) { |
5114 _json["id"] = id; | 5454 _json["id"] = id; |
5115 } | 5455 } |
5116 if (internalId != null) { | 5456 if (internalId != null) { |
5117 _json["internalId"] = internalId; | 5457 _json["internalId"] = internalId; |
5118 } | 5458 } |
5119 if (lastAccessTime != null) { | 5459 if (lastAccessTime != null) { |
5120 _json["lastAccessTime"] = lastAccessTime; | 5460 _json["lastAccessTime"] = lastAccessTime; |
5121 } | 5461 } |
5122 if (primaryEmails != null) { | 5462 if (primaryEmails != null) { |
5123 _json["primaryEmails"] = primaryEmails; | 5463 _json["primaryEmails"] = primaryEmails; |
5124 } | 5464 } |
5125 if (profile != null) { | 5465 if (profile != null) { |
5126 _json["profile"] = (profile).toJson(); | 5466 _json["profile"] = (profile).toJson(); |
5127 } | 5467 } |
5128 if (publicProfile != null) { | 5468 if (publicProfile != null) { |
5129 _json["publicProfile"] = (publicProfile).toJson(); | 5469 _json["publicProfile"] = (publicProfile).toJson(); |
5130 } | 5470 } |
5131 return _json; | 5471 return _json; |
5132 } | 5472 } |
5133 } | 5473 } |
5134 | 5474 |
5135 /** | 5475 /// Values to use instead of the user's respective defaults. These are only |
5136 * Values to use instead of the user's respective defaults. These are only | 5476 /// honored by whitelisted products. |
5137 * honored by whitelisted products. | |
5138 */ | |
5139 class UserOverrides { | 5477 class UserOverrides { |
5140 /** IP address to use instead of the user's geo-located IP address. */ | 5478 /// IP address to use instead of the user's geo-located IP address. |
5141 core.String ipAddress; | 5479 core.String ipAddress; |
5142 /** Logged-in user ID to impersonate instead of the user's ID. */ | 5480 |
| 5481 /// Logged-in user ID to impersonate instead of the user's ID. |
5143 core.String userId; | 5482 core.String userId; |
5144 | 5483 |
5145 UserOverrides(); | 5484 UserOverrides(); |
5146 | 5485 |
5147 UserOverrides.fromJson(core.Map _json) { | 5486 UserOverrides.fromJson(core.Map _json) { |
5148 if (_json.containsKey("ipAddress")) { | 5487 if (_json.containsKey("ipAddress")) { |
5149 ipAddress = _json["ipAddress"]; | 5488 ipAddress = _json["ipAddress"]; |
5150 } | 5489 } |
5151 if (_json.containsKey("userId")) { | 5490 if (_json.containsKey("userId")) { |
5152 userId = _json["userId"]; | 5491 userId = _json["userId"]; |
5153 } | 5492 } |
5154 } | 5493 } |
5155 | 5494 |
5156 core.Map<core.String, core.Object> toJson() { | 5495 core.Map<core.String, core.Object> toJson() { |
5157 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5496 final core.Map<core.String, core.Object> _json = |
| 5497 new core.Map<core.String, core.Object>(); |
5158 if (ipAddress != null) { | 5498 if (ipAddress != null) { |
5159 _json["ipAddress"] = ipAddress; | 5499 _json["ipAddress"] = ipAddress; |
5160 } | 5500 } |
5161 if (userId != null) { | 5501 if (userId != null) { |
5162 _json["userId"] = userId; | 5502 _json["userId"] = userId; |
5163 } | 5503 } |
5164 return _json; | 5504 return _json; |
5165 } | 5505 } |
5166 } | 5506 } |
5167 | 5507 |
5168 /** The profile information of a Partners user. */ | 5508 /// The profile information of a Partners user. |
5169 class UserProfile { | 5509 class UserProfile { |
5170 /** The user's mailing address, contains multiple fields. */ | 5510 /// The user's mailing address, contains multiple fields. |
5171 Location address; | 5511 Location address; |
5172 /** | 5512 |
5173 * If the user has edit access to multiple accounts, the user can choose the | 5513 /// If the user has edit access to multiple accounts, the user can choose the |
5174 * preferred account and it is used when a personal account is needed. Can | 5514 /// preferred account and it is used when a personal account is needed. Can |
5175 * be empty. | 5515 /// be empty. |
5176 */ | |
5177 core.String adwordsManagerAccount; | 5516 core.String adwordsManagerAccount; |
5178 /** | 5517 |
5179 * A list of ids representing which channels the user selected they were in. | 5518 /// A list of ids representing which channels the user selected they were in. |
5180 */ | |
5181 core.List<core.String> channels; | 5519 core.List<core.String> channels; |
5182 /** | 5520 |
5183 * The email address the user has selected on the Partners site as primary. | 5521 /// The email address the user has selected on the Partners site as primary. |
5184 */ | |
5185 core.String emailAddress; | 5522 core.String emailAddress; |
5186 /** | 5523 |
5187 * The list of opt-ins for the user, related to communication preferences. | 5524 /// The list of opt-ins for the user, related to communication preferences. |
5188 */ | |
5189 OptIns emailOptIns; | 5525 OptIns emailOptIns; |
5190 /** The user's family name. */ | 5526 |
| 5527 /// The user's family name. |
5191 core.String familyName; | 5528 core.String familyName; |
5192 /** The user's given name. */ | 5529 |
| 5530 /// The user's given name. |
5193 core.String givenName; | 5531 core.String givenName; |
5194 /** A list of ids representing which industries the user selected. */ | 5532 |
| 5533 /// A list of ids representing which industries the user selected. |
5195 core.List<core.String> industries; | 5534 core.List<core.String> industries; |
5196 /** A list of ids represnting which job categories the user selected. */ | 5535 |
| 5536 /// A list of ids represnting which job categories the user selected. |
5197 core.List<core.String> jobFunctions; | 5537 core.List<core.String> jobFunctions; |
5198 /** The list of languages this user understands. */ | 5538 |
| 5539 /// The list of languages this user understands. |
5199 core.List<core.String> languages; | 5540 core.List<core.String> languages; |
5200 /** A list of ids representing which markets the user was interested in. */ | 5541 |
| 5542 /// A list of ids representing which markets the user was interested in. |
5201 core.List<core.String> markets; | 5543 core.List<core.String> markets; |
5202 /** The user's phone number. */ | 5544 |
| 5545 /// The user's phone number. |
5203 core.String phoneNumber; | 5546 core.String phoneNumber; |
5204 /** The user's primary country, an ISO 2-character code. */ | 5547 |
| 5548 /// The user's primary country, an ISO 2-character code. |
5205 core.String primaryCountryCode; | 5549 core.String primaryCountryCode; |
5206 /** Whether the user's public profile is visible to anyone with the URL. */ | 5550 |
| 5551 /// Whether the user's public profile is visible to anyone with the URL. |
5207 core.bool profilePublic; | 5552 core.bool profilePublic; |
5208 | 5553 |
5209 UserProfile(); | 5554 UserProfile(); |
5210 | 5555 |
5211 UserProfile.fromJson(core.Map _json) { | 5556 UserProfile.fromJson(core.Map _json) { |
5212 if (_json.containsKey("address")) { | 5557 if (_json.containsKey("address")) { |
5213 address = new Location.fromJson(_json["address"]); | 5558 address = new Location.fromJson(_json["address"]); |
5214 } | 5559 } |
5215 if (_json.containsKey("adwordsManagerAccount")) { | 5560 if (_json.containsKey("adwordsManagerAccount")) { |
5216 adwordsManagerAccount = _json["adwordsManagerAccount"]; | 5561 adwordsManagerAccount = _json["adwordsManagerAccount"]; |
(...skipping 30 matching lines...) Expand all Loading... |
5247 } | 5592 } |
5248 if (_json.containsKey("primaryCountryCode")) { | 5593 if (_json.containsKey("primaryCountryCode")) { |
5249 primaryCountryCode = _json["primaryCountryCode"]; | 5594 primaryCountryCode = _json["primaryCountryCode"]; |
5250 } | 5595 } |
5251 if (_json.containsKey("profilePublic")) { | 5596 if (_json.containsKey("profilePublic")) { |
5252 profilePublic = _json["profilePublic"]; | 5597 profilePublic = _json["profilePublic"]; |
5253 } | 5598 } |
5254 } | 5599 } |
5255 | 5600 |
5256 core.Map<core.String, core.Object> toJson() { | 5601 core.Map<core.String, core.Object> toJson() { |
5257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5602 final core.Map<core.String, core.Object> _json = |
| 5603 new core.Map<core.String, core.Object>(); |
5258 if (address != null) { | 5604 if (address != null) { |
5259 _json["address"] = (address).toJson(); | 5605 _json["address"] = (address).toJson(); |
5260 } | 5606 } |
5261 if (adwordsManagerAccount != null) { | 5607 if (adwordsManagerAccount != null) { |
5262 _json["adwordsManagerAccount"] = adwordsManagerAccount; | 5608 _json["adwordsManagerAccount"] = adwordsManagerAccount; |
5263 } | 5609 } |
5264 if (channels != null) { | 5610 if (channels != null) { |
5265 _json["channels"] = channels; | 5611 _json["channels"] = channels; |
5266 } | 5612 } |
5267 if (emailAddress != null) { | 5613 if (emailAddress != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
5293 } | 5639 } |
5294 if (primaryCountryCode != null) { | 5640 if (primaryCountryCode != null) { |
5295 _json["primaryCountryCode"] = primaryCountryCode; | 5641 _json["primaryCountryCode"] = primaryCountryCode; |
5296 } | 5642 } |
5297 if (profilePublic != null) { | 5643 if (profilePublic != null) { |
5298 _json["profilePublic"] = profilePublic; | 5644 _json["profilePublic"] = profilePublic; |
5299 } | 5645 } |
5300 return _json; | 5646 return _json; |
5301 } | 5647 } |
5302 } | 5648 } |
OLD | NEW |