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