| 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.analytics.v3; | 3 library googleapis.analytics.v3; |
| 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; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 ManagementAccountsResourceApi get accounts => new ManagementAccountsResourceAp
i(_requester); | 422 ManagementAccountsResourceApi get accounts => new ManagementAccountsResourceAp
i(_requester); |
| 423 ManagementCustomDataSourcesResourceApi get customDataSources => new Management
CustomDataSourcesResourceApi(_requester); | 423 ManagementCustomDataSourcesResourceApi get customDataSources => new Management
CustomDataSourcesResourceApi(_requester); |
| 424 ManagementCustomDimensionsResourceApi get customDimensions => new ManagementCu
stomDimensionsResourceApi(_requester); | 424 ManagementCustomDimensionsResourceApi get customDimensions => new ManagementCu
stomDimensionsResourceApi(_requester); |
| 425 ManagementCustomMetricsResourceApi get customMetrics => new ManagementCustomMe
tricsResourceApi(_requester); | 425 ManagementCustomMetricsResourceApi get customMetrics => new ManagementCustomMe
tricsResourceApi(_requester); |
| 426 ManagementExperimentsResourceApi get experiments => new ManagementExperimentsR
esourceApi(_requester); | 426 ManagementExperimentsResourceApi get experiments => new ManagementExperimentsR
esourceApi(_requester); |
| 427 ManagementFiltersResourceApi get filters => new ManagementFiltersResourceApi(_
requester); | 427 ManagementFiltersResourceApi get filters => new ManagementFiltersResourceApi(_
requester); |
| 428 ManagementGoalsResourceApi get goals => new ManagementGoalsResourceApi(_reques
ter); | 428 ManagementGoalsResourceApi get goals => new ManagementGoalsResourceApi(_reques
ter); |
| 429 ManagementProfileFilterLinksResourceApi get profileFilterLinks => new Manageme
ntProfileFilterLinksResourceApi(_requester); | 429 ManagementProfileFilterLinksResourceApi get profileFilterLinks => new Manageme
ntProfileFilterLinksResourceApi(_requester); |
| 430 ManagementProfileUserLinksResourceApi get profileUserLinks => new ManagementPr
ofileUserLinksResourceApi(_requester); | 430 ManagementProfileUserLinksResourceApi get profileUserLinks => new ManagementPr
ofileUserLinksResourceApi(_requester); |
| 431 ManagementProfilesResourceApi get profiles => new ManagementProfilesResourceAp
i(_requester); | 431 ManagementProfilesResourceApi get profiles => new ManagementProfilesResourceAp
i(_requester); |
| 432 ManagementRemarketingAudienceResourceApi get remarketingAudience => new Manage
mentRemarketingAudienceResourceApi(_requester); |
| 432 ManagementSegmentsResourceApi get segments => new ManagementSegmentsResourceAp
i(_requester); | 433 ManagementSegmentsResourceApi get segments => new ManagementSegmentsResourceAp
i(_requester); |
| 433 ManagementUnsampledReportsResourceApi get unsampledReports => new ManagementUn
sampledReportsResourceApi(_requester); | 434 ManagementUnsampledReportsResourceApi get unsampledReports => new ManagementUn
sampledReportsResourceApi(_requester); |
| 434 ManagementUploadsResourceApi get uploads => new ManagementUploadsResourceApi(_
requester); | 435 ManagementUploadsResourceApi get uploads => new ManagementUploadsResourceApi(_
requester); |
| 435 ManagementWebPropertyAdWordsLinksResourceApi get webPropertyAdWordsLinks => ne
w ManagementWebPropertyAdWordsLinksResourceApi(_requester); | 436 ManagementWebPropertyAdWordsLinksResourceApi get webPropertyAdWordsLinks => ne
w ManagementWebPropertyAdWordsLinksResourceApi(_requester); |
| 436 ManagementWebpropertiesResourceApi get webproperties => new ManagementWebprope
rtiesResourceApi(_requester); | 437 ManagementWebpropertiesResourceApi get webproperties => new ManagementWebprope
rtiesResourceApi(_requester); |
| 437 ManagementWebpropertyUserLinksResourceApi get webpropertyUserLinks => new Mana
gementWebpropertyUserLinksResourceApi(_requester); | 438 ManagementWebpropertyUserLinksResourceApi get webpropertyUserLinks => new Mana
gementWebpropertyUserLinksResourceApi(_requester); |
| 438 | 439 |
| 439 ManagementResourceApi(commons.ApiRequester client) : | 440 ManagementResourceApi(commons.ApiRequester client) : |
| 440 _requester = client; | 441 _requester = client; |
| 441 } | 442 } |
| (...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3270 queryParams: _queryParams, | 3271 queryParams: _queryParams, |
| 3271 uploadOptions: _uploadOptions, | 3272 uploadOptions: _uploadOptions, |
| 3272 uploadMedia: _uploadMedia, | 3273 uploadMedia: _uploadMedia, |
| 3273 downloadOptions: _downloadOptions); | 3274 downloadOptions: _downloadOptions); |
| 3274 return _response.then((data) => new Profile.fromJson(data)); | 3275 return _response.then((data) => new Profile.fromJson(data)); |
| 3275 } | 3276 } |
| 3276 | 3277 |
| 3277 } | 3278 } |
| 3278 | 3279 |
| 3279 | 3280 |
| 3281 class ManagementRemarketingAudienceResourceApi { |
| 3282 final commons.ApiRequester _requester; |
| 3283 |
| 3284 ManagementRemarketingAudienceResourceApi(commons.ApiRequester client) : |
| 3285 _requester = client; |
| 3286 |
| 3287 /** |
| 3288 * Gets remarketing audiences to which the user has access. |
| 3289 * |
| 3290 * Request parameters: |
| 3291 * |
| 3292 * [accountId] - Account ID for the remarketing audience to retrieve. |
| 3293 * |
| 3294 * [webPropertyId] - Web property ID for the remarketing audience to retrieve. |
| 3295 * |
| 3296 * [remarketingAudienceId] - The ID to retrieve the Remarketing Audience for. |
| 3297 * |
| 3298 * Completes with a [RemarketingAudience]. |
| 3299 * |
| 3300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3301 * error. |
| 3302 * |
| 3303 * If the used [http.Client] completes with an error when making a REST call, |
| 3304 * this method will complete with the same error. |
| 3305 */ |
| 3306 async.Future<RemarketingAudience> get(core.String accountId, core.String webPr
opertyId, core.String remarketingAudienceId) { |
| 3307 var _url = null; |
| 3308 var _queryParams = new core.Map(); |
| 3309 var _uploadMedia = null; |
| 3310 var _uploadOptions = null; |
| 3311 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3312 var _body = null; |
| 3313 |
| 3314 if (accountId == null) { |
| 3315 throw new core.ArgumentError("Parameter accountId is required."); |
| 3316 } |
| 3317 if (webPropertyId == null) { |
| 3318 throw new core.ArgumentError("Parameter webPropertyId is required."); |
| 3319 } |
| 3320 if (remarketingAudienceId == null) { |
| 3321 throw new core.ArgumentError("Parameter remarketingAudienceId is required.
"); |
| 3322 } |
| 3323 |
| 3324 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId')
+ '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark
etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); |
| 3325 |
| 3326 var _response = _requester.request(_url, |
| 3327 "GET", |
| 3328 body: _body, |
| 3329 queryParams: _queryParams, |
| 3330 uploadOptions: _uploadOptions, |
| 3331 uploadMedia: _uploadMedia, |
| 3332 downloadOptions: _downloadOptions); |
| 3333 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
| 3334 } |
| 3335 |
| 3336 /** |
| 3337 * Creates a new remarketing audiences. |
| 3338 * |
| 3339 * [request] - The metadata request object. |
| 3340 * |
| 3341 * Request parameters: |
| 3342 * |
| 3343 * [accountId] - Account ID to create the remarketing audience for. |
| 3344 * |
| 3345 * [webPropertyId] - Web property ID to create the remarketing audience for. |
| 3346 * |
| 3347 * Completes with a [RemarketingAudience]. |
| 3348 * |
| 3349 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3350 * error. |
| 3351 * |
| 3352 * If the used [http.Client] completes with an error when making a REST call, |
| 3353 * this method will complete with the same error. |
| 3354 */ |
| 3355 async.Future<RemarketingAudience> insert(RemarketingAudience request, core.Str
ing accountId, core.String webPropertyId) { |
| 3356 var _url = null; |
| 3357 var _queryParams = new core.Map(); |
| 3358 var _uploadMedia = null; |
| 3359 var _uploadOptions = null; |
| 3360 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3361 var _body = null; |
| 3362 |
| 3363 if (request != null) { |
| 3364 _body = convert.JSON.encode((request).toJson()); |
| 3365 } |
| 3366 if (accountId == null) { |
| 3367 throw new core.ArgumentError("Parameter accountId is required."); |
| 3368 } |
| 3369 if (webPropertyId == null) { |
| 3370 throw new core.ArgumentError("Parameter webPropertyId is required."); |
| 3371 } |
| 3372 |
| 3373 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId')
+ '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark
etingAudiences'; |
| 3374 |
| 3375 var _response = _requester.request(_url, |
| 3376 "POST", |
| 3377 body: _body, |
| 3378 queryParams: _queryParams, |
| 3379 uploadOptions: _uploadOptions, |
| 3380 uploadMedia: _uploadMedia, |
| 3381 downloadOptions: _downloadOptions); |
| 3382 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
| 3383 } |
| 3384 |
| 3385 /** |
| 3386 * Lists remarketing audiences to which the user has access. |
| 3387 * |
| 3388 * Request parameters: |
| 3389 * |
| 3390 * [accountId] - Account ID for the remarketing audience to retrieve. |
| 3391 * |
| 3392 * [webPropertyId] - Web property ID for the remarketing audience to retrieve. |
| 3393 * |
| 3394 * [max_results] - The maximum number of remarketing audiences to include in |
| 3395 * this response. |
| 3396 * |
| 3397 * [start_index] - An index of the first entity to retrieve. Use this |
| 3398 * parameter as a pagination mechanism along with the max-results parameter. |
| 3399 * |
| 3400 * [type] - null |
| 3401 * |
| 3402 * Completes with a [RemarketingAudiences]. |
| 3403 * |
| 3404 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3405 * error. |
| 3406 * |
| 3407 * If the used [http.Client] completes with an error when making a REST call, |
| 3408 * this method will complete with the same error. |
| 3409 */ |
| 3410 async.Future<RemarketingAudiences> list(core.String accountId, core.String web
PropertyId, {core.int max_results, core.int start_index, core.String type}) { |
| 3411 var _url = null; |
| 3412 var _queryParams = new core.Map(); |
| 3413 var _uploadMedia = null; |
| 3414 var _uploadOptions = null; |
| 3415 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3416 var _body = null; |
| 3417 |
| 3418 if (accountId == null) { |
| 3419 throw new core.ArgumentError("Parameter accountId is required."); |
| 3420 } |
| 3421 if (webPropertyId == null) { |
| 3422 throw new core.ArgumentError("Parameter webPropertyId is required."); |
| 3423 } |
| 3424 if (max_results != null) { |
| 3425 _queryParams["max-results"] = ["${max_results}"]; |
| 3426 } |
| 3427 if (start_index != null) { |
| 3428 _queryParams["start-index"] = ["${start_index}"]; |
| 3429 } |
| 3430 if (type != null) { |
| 3431 _queryParams["type"] = [type]; |
| 3432 } |
| 3433 |
| 3434 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId')
+ '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark
etingAudiences'; |
| 3435 |
| 3436 var _response = _requester.request(_url, |
| 3437 "GET", |
| 3438 body: _body, |
| 3439 queryParams: _queryParams, |
| 3440 uploadOptions: _uploadOptions, |
| 3441 uploadMedia: _uploadMedia, |
| 3442 downloadOptions: _downloadOptions); |
| 3443 return _response.then((data) => new RemarketingAudiences.fromJson(data)); |
| 3444 } |
| 3445 |
| 3446 /** |
| 3447 * Updates an existing remarketing audiences. This method supports patch |
| 3448 * semantics. |
| 3449 * |
| 3450 * [request] - The metadata request object. |
| 3451 * |
| 3452 * Request parameters: |
| 3453 * |
| 3454 * [accountId] - Account ID for the remarketing audience to update. |
| 3455 * |
| 3456 * [webPropertyId] - Web property ID for the remarketing audience to update. |
| 3457 * |
| 3458 * [remarketingAudienceId] - Remarketing audience ID of the remarketing |
| 3459 * audience to update. |
| 3460 * |
| 3461 * Completes with a [RemarketingAudience]. |
| 3462 * |
| 3463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3464 * error. |
| 3465 * |
| 3466 * If the used [http.Client] completes with an error when making a REST call, |
| 3467 * this method will complete with the same error. |
| 3468 */ |
| 3469 async.Future<RemarketingAudience> patch(RemarketingAudience request, core.Stri
ng accountId, core.String webPropertyId, core.String remarketingAudienceId) { |
| 3470 var _url = null; |
| 3471 var _queryParams = new core.Map(); |
| 3472 var _uploadMedia = null; |
| 3473 var _uploadOptions = null; |
| 3474 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3475 var _body = null; |
| 3476 |
| 3477 if (request != null) { |
| 3478 _body = convert.JSON.encode((request).toJson()); |
| 3479 } |
| 3480 if (accountId == null) { |
| 3481 throw new core.ArgumentError("Parameter accountId is required."); |
| 3482 } |
| 3483 if (webPropertyId == null) { |
| 3484 throw new core.ArgumentError("Parameter webPropertyId is required."); |
| 3485 } |
| 3486 if (remarketingAudienceId == null) { |
| 3487 throw new core.ArgumentError("Parameter remarketingAudienceId is required.
"); |
| 3488 } |
| 3489 |
| 3490 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId')
+ '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark
etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); |
| 3491 |
| 3492 var _response = _requester.request(_url, |
| 3493 "PATCH", |
| 3494 body: _body, |
| 3495 queryParams: _queryParams, |
| 3496 uploadOptions: _uploadOptions, |
| 3497 uploadMedia: _uploadMedia, |
| 3498 downloadOptions: _downloadOptions); |
| 3499 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
| 3500 } |
| 3501 |
| 3502 /** |
| 3503 * Updates an existing remarketing audiences. |
| 3504 * |
| 3505 * [request] - The metadata request object. |
| 3506 * |
| 3507 * Request parameters: |
| 3508 * |
| 3509 * [accountId] - Account ID for the remarketing audience to update. |
| 3510 * |
| 3511 * [webPropertyId] - Web property ID for the remarketing audience to update. |
| 3512 * |
| 3513 * [remarketingAudienceId] - Remarketing audience ID of the remarketing |
| 3514 * audience to update. |
| 3515 * |
| 3516 * Completes with a [RemarketingAudience]. |
| 3517 * |
| 3518 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3519 * error. |
| 3520 * |
| 3521 * If the used [http.Client] completes with an error when making a REST call, |
| 3522 * this method will complete with the same error. |
| 3523 */ |
| 3524 async.Future<RemarketingAudience> update(RemarketingAudience request, core.Str
ing accountId, core.String webPropertyId, core.String remarketingAudienceId) { |
| 3525 var _url = null; |
| 3526 var _queryParams = new core.Map(); |
| 3527 var _uploadMedia = null; |
| 3528 var _uploadOptions = null; |
| 3529 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3530 var _body = null; |
| 3531 |
| 3532 if (request != null) { |
| 3533 _body = convert.JSON.encode((request).toJson()); |
| 3534 } |
| 3535 if (accountId == null) { |
| 3536 throw new core.ArgumentError("Parameter accountId is required."); |
| 3537 } |
| 3538 if (webPropertyId == null) { |
| 3539 throw new core.ArgumentError("Parameter webPropertyId is required."); |
| 3540 } |
| 3541 if (remarketingAudienceId == null) { |
| 3542 throw new core.ArgumentError("Parameter remarketingAudienceId is required.
"); |
| 3543 } |
| 3544 |
| 3545 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId')
+ '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark
etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); |
| 3546 |
| 3547 var _response = _requester.request(_url, |
| 3548 "PUT", |
| 3549 body: _body, |
| 3550 queryParams: _queryParams, |
| 3551 uploadOptions: _uploadOptions, |
| 3552 uploadMedia: _uploadMedia, |
| 3553 downloadOptions: _downloadOptions); |
| 3554 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
| 3555 } |
| 3556 |
| 3557 } |
| 3558 |
| 3559 |
| 3280 class ManagementSegmentsResourceApi { | 3560 class ManagementSegmentsResourceApi { |
| 3281 final commons.ApiRequester _requester; | 3561 final commons.ApiRequester _requester; |
| 3282 | 3562 |
| 3283 ManagementSegmentsResourceApi(commons.ApiRequester client) : | 3563 ManagementSegmentsResourceApi(commons.ApiRequester client) : |
| 3284 _requester = client; | 3564 _requester = client; |
| 3285 | 3565 |
| 3286 /** | 3566 /** |
| 3287 * Lists segments to which the user has access. | 3567 * Lists segments to which the user has access. |
| 3288 * | 3568 * |
| 3289 * Request parameters: | 3569 * Request parameters: |
| (...skipping 5578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8868 if (totalResults != null) { | 9148 if (totalResults != null) { |
| 8869 _json["totalResults"] = totalResults; | 9149 _json["totalResults"] = totalResults; |
| 8870 } | 9150 } |
| 8871 if (username != null) { | 9151 if (username != null) { |
| 8872 _json["username"] = username; | 9152 _json["username"] = username; |
| 8873 } | 9153 } |
| 8874 return _json; | 9154 return _json; |
| 8875 } | 9155 } |
| 8876 } | 9156 } |
| 8877 | 9157 |
| 9158 /** JSON template for an Analytics Remarketing Include Conditions. */ |
| 9159 class IncludeConditions { |
| 9160 /** |
| 9161 * The look-back window lets you specify a time frame for evaluating the |
| 9162 * behavior that qualifies users for your audience. For example, if your |
| 9163 * filters include users from Central Asia, and Transactions Greater than 2, |
| 9164 * and you set the look-back window to 14 days, then any user from Central |
| 9165 * Asia whose cumulative transactions exceed 2 during the last 14 days is |
| 9166 * added to the audience. |
| 9167 */ |
| 9168 core.int daysToLookBack; |
| 9169 /** |
| 9170 * Boolean indicating whether this segment is a smart list. |
| 9171 * https://support.google.com/analytics/answer/4628577 |
| 9172 */ |
| 9173 core.bool isSmartList; |
| 9174 /** Resource type for include conditions. */ |
| 9175 core.String kind; |
| 9176 /** |
| 9177 * Number of days a user remains in the audience. Use any integer from 1-540. |
| 9178 * In remarketing audiences for search ads, membership duration is truncated |
| 9179 * to 180 days. |
| 9180 */ |
| 9181 core.int membershipDurationDays; |
| 9182 /** |
| 9183 * The segment condition that will cause a user to be added to an audience. |
| 9184 */ |
| 9185 core.String segment; |
| 9186 |
| 9187 IncludeConditions(); |
| 9188 |
| 9189 IncludeConditions.fromJson(core.Map _json) { |
| 9190 if (_json.containsKey("daysToLookBack")) { |
| 9191 daysToLookBack = _json["daysToLookBack"]; |
| 9192 } |
| 9193 if (_json.containsKey("isSmartList")) { |
| 9194 isSmartList = _json["isSmartList"]; |
| 9195 } |
| 9196 if (_json.containsKey("kind")) { |
| 9197 kind = _json["kind"]; |
| 9198 } |
| 9199 if (_json.containsKey("membershipDurationDays")) { |
| 9200 membershipDurationDays = _json["membershipDurationDays"]; |
| 9201 } |
| 9202 if (_json.containsKey("segment")) { |
| 9203 segment = _json["segment"]; |
| 9204 } |
| 9205 } |
| 9206 |
| 9207 core.Map toJson() { |
| 9208 var _json = new core.Map(); |
| 9209 if (daysToLookBack != null) { |
| 9210 _json["daysToLookBack"] = daysToLookBack; |
| 9211 } |
| 9212 if (isSmartList != null) { |
| 9213 _json["isSmartList"] = isSmartList; |
| 9214 } |
| 9215 if (kind != null) { |
| 9216 _json["kind"] = kind; |
| 9217 } |
| 9218 if (membershipDurationDays != null) { |
| 9219 _json["membershipDurationDays"] = membershipDurationDays; |
| 9220 } |
| 9221 if (segment != null) { |
| 9222 _json["segment"] = segment; |
| 9223 } |
| 9224 return _json; |
| 9225 } |
| 9226 } |
| 9227 |
| 9228 /** JSON template for an Analytics Remarketing Audience Foreign Link. */ |
| 9229 class LinkedForeignAccount { |
| 9230 /** Account ID to which this linked foreign account belongs. */ |
| 9231 core.String accountId; |
| 9232 /** Boolean indicating whether this is eligible for search. */ |
| 9233 core.bool eligibleForSearch; |
| 9234 /** Entity ad account link ID. */ |
| 9235 core.String id; |
| 9236 /** |
| 9237 * Internal ID for the web property to which this linked foreign account |
| 9238 * belongs. |
| 9239 */ |
| 9240 core.String internalWebPropertyId; |
| 9241 /** Resource type for linked foreign account. */ |
| 9242 core.String kind; |
| 9243 /** |
| 9244 * The foreign account ID. For example the an AdWords `linkedAccountId` has |
| 9245 * the following format XXX-XXX-XXXX. |
| 9246 */ |
| 9247 core.String linkedAccountId; |
| 9248 /** Remarketing audience ID to which this linked foreign account belongs. */ |
| 9249 core.String remarketingAudienceId; |
| 9250 /** The status of this foreign account link. */ |
| 9251 core.String status; |
| 9252 /** The type of the foreign account. For example `ADWORDS_LINKS`. */ |
| 9253 core.String type; |
| 9254 /** |
| 9255 * Web property ID of the form UA-XXXXX-YY to which this linked foreign |
| 9256 * account belongs. |
| 9257 */ |
| 9258 core.String webPropertyId; |
| 9259 |
| 9260 LinkedForeignAccount(); |
| 9261 |
| 9262 LinkedForeignAccount.fromJson(core.Map _json) { |
| 9263 if (_json.containsKey("accountId")) { |
| 9264 accountId = _json["accountId"]; |
| 9265 } |
| 9266 if (_json.containsKey("eligibleForSearch")) { |
| 9267 eligibleForSearch = _json["eligibleForSearch"]; |
| 9268 } |
| 9269 if (_json.containsKey("id")) { |
| 9270 id = _json["id"]; |
| 9271 } |
| 9272 if (_json.containsKey("internalWebPropertyId")) { |
| 9273 internalWebPropertyId = _json["internalWebPropertyId"]; |
| 9274 } |
| 9275 if (_json.containsKey("kind")) { |
| 9276 kind = _json["kind"]; |
| 9277 } |
| 9278 if (_json.containsKey("linkedAccountId")) { |
| 9279 linkedAccountId = _json["linkedAccountId"]; |
| 9280 } |
| 9281 if (_json.containsKey("remarketingAudienceId")) { |
| 9282 remarketingAudienceId = _json["remarketingAudienceId"]; |
| 9283 } |
| 9284 if (_json.containsKey("status")) { |
| 9285 status = _json["status"]; |
| 9286 } |
| 9287 if (_json.containsKey("type")) { |
| 9288 type = _json["type"]; |
| 9289 } |
| 9290 if (_json.containsKey("webPropertyId")) { |
| 9291 webPropertyId = _json["webPropertyId"]; |
| 9292 } |
| 9293 } |
| 9294 |
| 9295 core.Map toJson() { |
| 9296 var _json = new core.Map(); |
| 9297 if (accountId != null) { |
| 9298 _json["accountId"] = accountId; |
| 9299 } |
| 9300 if (eligibleForSearch != null) { |
| 9301 _json["eligibleForSearch"] = eligibleForSearch; |
| 9302 } |
| 9303 if (id != null) { |
| 9304 _json["id"] = id; |
| 9305 } |
| 9306 if (internalWebPropertyId != null) { |
| 9307 _json["internalWebPropertyId"] = internalWebPropertyId; |
| 9308 } |
| 9309 if (kind != null) { |
| 9310 _json["kind"] = kind; |
| 9311 } |
| 9312 if (linkedAccountId != null) { |
| 9313 _json["linkedAccountId"] = linkedAccountId; |
| 9314 } |
| 9315 if (remarketingAudienceId != null) { |
| 9316 _json["remarketingAudienceId"] = remarketingAudienceId; |
| 9317 } |
| 9318 if (status != null) { |
| 9319 _json["status"] = status; |
| 9320 } |
| 9321 if (type != null) { |
| 9322 _json["type"] = type; |
| 9323 } |
| 9324 if (webPropertyId != null) { |
| 9325 _json["webPropertyId"] = webPropertyId; |
| 9326 } |
| 9327 return _json; |
| 9328 } |
| 9329 } |
| 9330 |
| 8878 class McfDataColumnHeaders { | 9331 class McfDataColumnHeaders { |
| 8879 /** Column Type. Either DIMENSION or METRIC. */ | 9332 /** Column Type. Either DIMENSION or METRIC. */ |
| 8880 core.String columnType; | 9333 core.String columnType; |
| 8881 /** | 9334 /** |
| 8882 * Data type. Dimension and metric values data types such as INTEGER, DOUBLE, | 9335 * Data type. Dimension and metric values data types such as INTEGER, DOUBLE, |
| 8883 * CURRENCY, MCF_SEQUENCE etc. | 9336 * CURRENCY, MCF_SEQUENCE etc. |
| 8884 */ | 9337 */ |
| 8885 core.String dataType; | 9338 core.String dataType; |
| 8886 /** Column name. */ | 9339 /** Column name. */ |
| 8887 core.String name; | 9340 core.String name; |
| (...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10306 if (totalResults != null) { | 10759 if (totalResults != null) { |
| 10307 _json["totalResults"] = totalResults; | 10760 _json["totalResults"] = totalResults; |
| 10308 } | 10761 } |
| 10309 if (totalsForAllResults != null) { | 10762 if (totalsForAllResults != null) { |
| 10310 _json["totalsForAllResults"] = totalsForAllResults; | 10763 _json["totalsForAllResults"] = totalsForAllResults; |
| 10311 } | 10764 } |
| 10312 return _json; | 10765 return _json; |
| 10313 } | 10766 } |
| 10314 } | 10767 } |
| 10315 | 10768 |
| 10769 /** |
| 10770 * The simple audience definition that will cause a user to be added to an |
| 10771 * audience. |
| 10772 */ |
| 10773 class RemarketingAudienceAudienceDefinition { |
| 10774 /** Defines the conditions to include users to the audience. */ |
| 10775 IncludeConditions includeConditions; |
| 10776 |
| 10777 RemarketingAudienceAudienceDefinition(); |
| 10778 |
| 10779 RemarketingAudienceAudienceDefinition.fromJson(core.Map _json) { |
| 10780 if (_json.containsKey("includeConditions")) { |
| 10781 includeConditions = new IncludeConditions.fromJson(_json["includeCondition
s"]); |
| 10782 } |
| 10783 } |
| 10784 |
| 10785 core.Map toJson() { |
| 10786 var _json = new core.Map(); |
| 10787 if (includeConditions != null) { |
| 10788 _json["includeConditions"] = (includeConditions).toJson(); |
| 10789 } |
| 10790 return _json; |
| 10791 } |
| 10792 } |
| 10793 |
| 10794 /** Defines the conditions to exclude users from the audience. */ |
| 10795 class RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions { |
| 10796 /** Whether to make the exclusion TEMPORARY or PERMANENT. */ |
| 10797 core.String exclusionDuration; |
| 10798 /** |
| 10799 * The segment condition that will cause a user to be removed from an |
| 10800 * audience. |
| 10801 */ |
| 10802 core.String segment; |
| 10803 |
| 10804 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions(); |
| 10805 |
| 10806 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.fromJson(core
.Map _json) { |
| 10807 if (_json.containsKey("exclusionDuration")) { |
| 10808 exclusionDuration = _json["exclusionDuration"]; |
| 10809 } |
| 10810 if (_json.containsKey("segment")) { |
| 10811 segment = _json["segment"]; |
| 10812 } |
| 10813 } |
| 10814 |
| 10815 core.Map toJson() { |
| 10816 var _json = new core.Map(); |
| 10817 if (exclusionDuration != null) { |
| 10818 _json["exclusionDuration"] = exclusionDuration; |
| 10819 } |
| 10820 if (segment != null) { |
| 10821 _json["segment"] = segment; |
| 10822 } |
| 10823 return _json; |
| 10824 } |
| 10825 } |
| 10826 |
| 10827 /** |
| 10828 * A state based audience definition that will cause a user to be added or |
| 10829 * removed from an audience. |
| 10830 */ |
| 10831 class RemarketingAudienceStateBasedAudienceDefinition { |
| 10832 /** Defines the conditions to exclude users from the audience. */ |
| 10833 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions excludeCondit
ions; |
| 10834 /** Defines the conditions to include users to the audience. */ |
| 10835 IncludeConditions includeConditions; |
| 10836 |
| 10837 RemarketingAudienceStateBasedAudienceDefinition(); |
| 10838 |
| 10839 RemarketingAudienceStateBasedAudienceDefinition.fromJson(core.Map _json) { |
| 10840 if (_json.containsKey("excludeConditions")) { |
| 10841 excludeConditions = new RemarketingAudienceStateBasedAudienceDefinitionExc
ludeConditions.fromJson(_json["excludeConditions"]); |
| 10842 } |
| 10843 if (_json.containsKey("includeConditions")) { |
| 10844 includeConditions = new IncludeConditions.fromJson(_json["includeCondition
s"]); |
| 10845 } |
| 10846 } |
| 10847 |
| 10848 core.Map toJson() { |
| 10849 var _json = new core.Map(); |
| 10850 if (excludeConditions != null) { |
| 10851 _json["excludeConditions"] = (excludeConditions).toJson(); |
| 10852 } |
| 10853 if (includeConditions != null) { |
| 10854 _json["includeConditions"] = (includeConditions).toJson(); |
| 10855 } |
| 10856 return _json; |
| 10857 } |
| 10858 } |
| 10859 |
| 10860 /** JSON template for an Analytics remarketing audience. */ |
| 10861 class RemarketingAudience { |
| 10862 /** Account ID to which this remarketing audience belongs. */ |
| 10863 core.String accountId; |
| 10864 /** |
| 10865 * The simple audience definition that will cause a user to be added to an |
| 10866 * audience. |
| 10867 */ |
| 10868 RemarketingAudienceAudienceDefinition audienceDefinition; |
| 10869 /** The type of audience, either SIMPLE or STATE_BASED. */ |
| 10870 core.String audienceType; |
| 10871 /** Time this remarketing audience was created. */ |
| 10872 core.DateTime created; |
| 10873 /** The description of this remarketing audience. */ |
| 10874 core.String description; |
| 10875 /** Remarketing Audience ID. */ |
| 10876 core.String id; |
| 10877 /** |
| 10878 * Internal ID for the web property to which this remarketing audience |
| 10879 * belongs. |
| 10880 */ |
| 10881 core.String internalWebPropertyId; |
| 10882 /** Collection type. */ |
| 10883 core.String kind; |
| 10884 /** |
| 10885 * The linked ad accounts associated with this remarketing audience. A |
| 10886 * remarketing audience can have only one linkedAdAccount currently. |
| 10887 */ |
| 10888 core.List<LinkedForeignAccount> linkedAdAccounts; |
| 10889 /** The views (profiles) that this remarketing audience is linked to. */ |
| 10890 core.List<core.String> linkedViews; |
| 10891 /** The name of this remarketing audience. */ |
| 10892 core.String name; |
| 10893 /** |
| 10894 * A state based audience definition that will cause a user to be added or |
| 10895 * removed from an audience. |
| 10896 */ |
| 10897 RemarketingAudienceStateBasedAudienceDefinition stateBasedAudienceDefinition; |
| 10898 /** Time this remarketing audience was last modified. */ |
| 10899 core.DateTime updated; |
| 10900 /** |
| 10901 * Web property ID of the form UA-XXXXX-YY to which this remarketing audience |
| 10902 * belongs. |
| 10903 */ |
| 10904 core.String webPropertyId; |
| 10905 |
| 10906 RemarketingAudience(); |
| 10907 |
| 10908 RemarketingAudience.fromJson(core.Map _json) { |
| 10909 if (_json.containsKey("accountId")) { |
| 10910 accountId = _json["accountId"]; |
| 10911 } |
| 10912 if (_json.containsKey("audienceDefinition")) { |
| 10913 audienceDefinition = new RemarketingAudienceAudienceDefinition.fromJson(_j
son["audienceDefinition"]); |
| 10914 } |
| 10915 if (_json.containsKey("audienceType")) { |
| 10916 audienceType = _json["audienceType"]; |
| 10917 } |
| 10918 if (_json.containsKey("created")) { |
| 10919 created = core.DateTime.parse(_json["created"]); |
| 10920 } |
| 10921 if (_json.containsKey("description")) { |
| 10922 description = _json["description"]; |
| 10923 } |
| 10924 if (_json.containsKey("id")) { |
| 10925 id = _json["id"]; |
| 10926 } |
| 10927 if (_json.containsKey("internalWebPropertyId")) { |
| 10928 internalWebPropertyId = _json["internalWebPropertyId"]; |
| 10929 } |
| 10930 if (_json.containsKey("kind")) { |
| 10931 kind = _json["kind"]; |
| 10932 } |
| 10933 if (_json.containsKey("linkedAdAccounts")) { |
| 10934 linkedAdAccounts = _json["linkedAdAccounts"].map((value) => new LinkedFore
ignAccount.fromJson(value)).toList(); |
| 10935 } |
| 10936 if (_json.containsKey("linkedViews")) { |
| 10937 linkedViews = _json["linkedViews"]; |
| 10938 } |
| 10939 if (_json.containsKey("name")) { |
| 10940 name = _json["name"]; |
| 10941 } |
| 10942 if (_json.containsKey("stateBasedAudienceDefinition")) { |
| 10943 stateBasedAudienceDefinition = new RemarketingAudienceStateBasedAudienceDe
finition.fromJson(_json["stateBasedAudienceDefinition"]); |
| 10944 } |
| 10945 if (_json.containsKey("updated")) { |
| 10946 updated = core.DateTime.parse(_json["updated"]); |
| 10947 } |
| 10948 if (_json.containsKey("webPropertyId")) { |
| 10949 webPropertyId = _json["webPropertyId"]; |
| 10950 } |
| 10951 } |
| 10952 |
| 10953 core.Map toJson() { |
| 10954 var _json = new core.Map(); |
| 10955 if (accountId != null) { |
| 10956 _json["accountId"] = accountId; |
| 10957 } |
| 10958 if (audienceDefinition != null) { |
| 10959 _json["audienceDefinition"] = (audienceDefinition).toJson(); |
| 10960 } |
| 10961 if (audienceType != null) { |
| 10962 _json["audienceType"] = audienceType; |
| 10963 } |
| 10964 if (created != null) { |
| 10965 _json["created"] = (created).toIso8601String(); |
| 10966 } |
| 10967 if (description != null) { |
| 10968 _json["description"] = description; |
| 10969 } |
| 10970 if (id != null) { |
| 10971 _json["id"] = id; |
| 10972 } |
| 10973 if (internalWebPropertyId != null) { |
| 10974 _json["internalWebPropertyId"] = internalWebPropertyId; |
| 10975 } |
| 10976 if (kind != null) { |
| 10977 _json["kind"] = kind; |
| 10978 } |
| 10979 if (linkedAdAccounts != null) { |
| 10980 _json["linkedAdAccounts"] = linkedAdAccounts.map((value) => (value).toJson
()).toList(); |
| 10981 } |
| 10982 if (linkedViews != null) { |
| 10983 _json["linkedViews"] = linkedViews; |
| 10984 } |
| 10985 if (name != null) { |
| 10986 _json["name"] = name; |
| 10987 } |
| 10988 if (stateBasedAudienceDefinition != null) { |
| 10989 _json["stateBasedAudienceDefinition"] = (stateBasedAudienceDefinition).toJ
son(); |
| 10990 } |
| 10991 if (updated != null) { |
| 10992 _json["updated"] = (updated).toIso8601String(); |
| 10993 } |
| 10994 if (webPropertyId != null) { |
| 10995 _json["webPropertyId"] = webPropertyId; |
| 10996 } |
| 10997 return _json; |
| 10998 } |
| 10999 } |
| 11000 |
| 11001 /** |
| 11002 * A remarketing audience collection lists Analytics remarketing audiences to |
| 11003 * which the user has access. Each resource in the collection corresponds to a |
| 11004 * single Analytics remarketing audience. |
| 11005 */ |
| 11006 class RemarketingAudiences { |
| 11007 /** A list of remarketing audiences. */ |
| 11008 core.List<RemarketingAudience> items; |
| 11009 /** |
| 11010 * The maximum number of resources the response can contain, regardless of the |
| 11011 * actual number of resources returned. Its value ranges from 1 to 1000 with a |
| 11012 * value of 1000 by default, or otherwise specified by the max-results query |
| 11013 * parameter. |
| 11014 */ |
| 11015 core.int itemsPerPage; |
| 11016 /** Collection type. */ |
| 11017 core.String kind; |
| 11018 /** Link to next page for this remarketing audience collection. */ |
| 11019 core.String nextLink; |
| 11020 /** Link to previous page for this view (profile) collection. */ |
| 11021 core.String previousLink; |
| 11022 /** |
| 11023 * The starting index of the resources, which is 1 by default or otherwise |
| 11024 * specified by the start-index query parameter. |
| 11025 */ |
| 11026 core.int startIndex; |
| 11027 /** |
| 11028 * The total number of results for the query, regardless of the number of |
| 11029 * results in the response. |
| 11030 */ |
| 11031 core.int totalResults; |
| 11032 /** Email ID of the authenticated user */ |
| 11033 core.String username; |
| 11034 |
| 11035 RemarketingAudiences(); |
| 11036 |
| 11037 RemarketingAudiences.fromJson(core.Map _json) { |
| 11038 if (_json.containsKey("items")) { |
| 11039 items = _json["items"].map((value) => new RemarketingAudience.fromJson(val
ue)).toList(); |
| 11040 } |
| 11041 if (_json.containsKey("itemsPerPage")) { |
| 11042 itemsPerPage = _json["itemsPerPage"]; |
| 11043 } |
| 11044 if (_json.containsKey("kind")) { |
| 11045 kind = _json["kind"]; |
| 11046 } |
| 11047 if (_json.containsKey("nextLink")) { |
| 11048 nextLink = _json["nextLink"]; |
| 11049 } |
| 11050 if (_json.containsKey("previousLink")) { |
| 11051 previousLink = _json["previousLink"]; |
| 11052 } |
| 11053 if (_json.containsKey("startIndex")) { |
| 11054 startIndex = _json["startIndex"]; |
| 11055 } |
| 11056 if (_json.containsKey("totalResults")) { |
| 11057 totalResults = _json["totalResults"]; |
| 11058 } |
| 11059 if (_json.containsKey("username")) { |
| 11060 username = _json["username"]; |
| 11061 } |
| 11062 } |
| 11063 |
| 11064 core.Map toJson() { |
| 11065 var _json = new core.Map(); |
| 11066 if (items != null) { |
| 11067 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 11068 } |
| 11069 if (itemsPerPage != null) { |
| 11070 _json["itemsPerPage"] = itemsPerPage; |
| 11071 } |
| 11072 if (kind != null) { |
| 11073 _json["kind"] = kind; |
| 11074 } |
| 11075 if (nextLink != null) { |
| 11076 _json["nextLink"] = nextLink; |
| 11077 } |
| 11078 if (previousLink != null) { |
| 11079 _json["previousLink"] = previousLink; |
| 11080 } |
| 11081 if (startIndex != null) { |
| 11082 _json["startIndex"] = startIndex; |
| 11083 } |
| 11084 if (totalResults != null) { |
| 11085 _json["totalResults"] = totalResults; |
| 11086 } |
| 11087 if (username != null) { |
| 11088 _json["username"] = username; |
| 11089 } |
| 11090 return _json; |
| 11091 } |
| 11092 } |
| 11093 |
| 10316 /** JSON template for an Analytics segment. */ | 11094 /** JSON template for an Analytics segment. */ |
| 10317 class Segment { | 11095 class Segment { |
| 10318 /** Time the segment was created. */ | 11096 /** Time the segment was created. */ |
| 10319 core.DateTime created; | 11097 core.DateTime created; |
| 10320 /** Segment definition. */ | 11098 /** Segment definition. */ |
| 10321 core.String definition; | 11099 core.String definition; |
| 10322 /** Segment ID. */ | 11100 /** Segment ID. */ |
| 10323 core.String id; | 11101 core.String id; |
| 10324 /** Resource type for Analytics segment. */ | 11102 /** Resource type for Analytics segment. */ |
| 10325 core.String kind; | 11103 core.String kind; |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11479 } | 12257 } |
| 11480 if (updated != null) { | 12258 if (updated != null) { |
| 11481 _json["updated"] = (updated).toIso8601String(); | 12259 _json["updated"] = (updated).toIso8601String(); |
| 11482 } | 12260 } |
| 11483 if (websiteUrl != null) { | 12261 if (websiteUrl != null) { |
| 11484 _json["websiteUrl"] = websiteUrl; | 12262 _json["websiteUrl"] = websiteUrl; |
| 11485 } | 12263 } |
| 11486 return _json; | 12264 return _json; |
| 11487 } | 12265 } |
| 11488 } | 12266 } |
| OLD | NEW |