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 3267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3278 } | 3278 } |
3279 | 3279 |
3280 | 3280 |
3281 class ManagementRemarketingAudienceResourceApi { | 3281 class ManagementRemarketingAudienceResourceApi { |
3282 final commons.ApiRequester _requester; | 3282 final commons.ApiRequester _requester; |
3283 | 3283 |
3284 ManagementRemarketingAudienceResourceApi(commons.ApiRequester client) : | 3284 ManagementRemarketingAudienceResourceApi(commons.ApiRequester client) : |
3285 _requester = client; | 3285 _requester = client; |
3286 | 3286 |
3287 /** | 3287 /** |
3288 * Gets remarketing audiences to which the user has access. | 3288 * Gets a remarketing audience to which the user has access. |
3289 * | 3289 * |
3290 * Request parameters: | 3290 * Request parameters: |
3291 * | 3291 * |
3292 * [accountId] - Account ID for the remarketing audience to retrieve. | 3292 * [accountId] - The account ID of the remarketing audience to retrieve. |
3293 * | 3293 * |
3294 * [webPropertyId] - Web property ID for the remarketing audience to retrieve. | 3294 * [webPropertyId] - The web property ID of the remarketing audience to |
| 3295 * retrieve. |
3295 * | 3296 * |
3296 * [remarketingAudienceId] - The ID to retrieve the Remarketing Audience for. | 3297 * [remarketingAudienceId] - The ID of the remarketing audience to retrieve. |
3297 * | 3298 * |
3298 * Completes with a [RemarketingAudience]. | 3299 * Completes with a [RemarketingAudience]. |
3299 * | 3300 * |
3300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3301 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3301 * error. | 3302 * error. |
3302 * | 3303 * |
3303 * If the used [http.Client] completes with an error when making a REST call, | 3304 * If the used [http.Client] completes with an error when making a REST call, |
3304 * this method will complete with the same error. | 3305 * this method will complete with the same error. |
3305 */ | 3306 */ |
3306 async.Future<RemarketingAudience> get(core.String accountId, core.String webPr
opertyId, core.String remarketingAudienceId) { | 3307 async.Future<RemarketingAudience> get(core.String accountId, core.String webPr
opertyId, core.String remarketingAudienceId) { |
(...skipping 20 matching lines...) Expand all Loading... |
3327 "GET", | 3328 "GET", |
3328 body: _body, | 3329 body: _body, |
3329 queryParams: _queryParams, | 3330 queryParams: _queryParams, |
3330 uploadOptions: _uploadOptions, | 3331 uploadOptions: _uploadOptions, |
3331 uploadMedia: _uploadMedia, | 3332 uploadMedia: _uploadMedia, |
3332 downloadOptions: _downloadOptions); | 3333 downloadOptions: _downloadOptions); |
3333 return _response.then((data) => new RemarketingAudience.fromJson(data)); | 3334 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
3334 } | 3335 } |
3335 | 3336 |
3336 /** | 3337 /** |
3337 * Creates a new remarketing audiences. | 3338 * Creates a new remarketing audience. |
3338 * | 3339 * |
3339 * [request] - The metadata request object. | 3340 * [request] - The metadata request object. |
3340 * | 3341 * |
3341 * Request parameters: | 3342 * Request parameters: |
3342 * | 3343 * |
3343 * [accountId] - Account ID to create the remarketing audience for. | 3344 * [accountId] - The account ID for which to create the remarketing audience. |
3344 * | 3345 * |
3345 * [webPropertyId] - Web property ID to create the remarketing audience for. | 3346 * [webPropertyId] - Web property ID for which to create the remarketing |
| 3347 * audience. |
3346 * | 3348 * |
3347 * Completes with a [RemarketingAudience]. | 3349 * Completes with a [RemarketingAudience]. |
3348 * | 3350 * |
3349 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3350 * error. | 3352 * error. |
3351 * | 3353 * |
3352 * If the used [http.Client] completes with an error when making a REST call, | 3354 * If the used [http.Client] completes with an error when making a REST call, |
3353 * this method will complete with the same error. | 3355 * this method will complete with the same error. |
3354 */ | 3356 */ |
3355 async.Future<RemarketingAudience> insert(RemarketingAudience request, core.Str
ing accountId, core.String webPropertyId) { | 3357 async.Future<RemarketingAudience> insert(RemarketingAudience request, core.Str
ing accountId, core.String webPropertyId) { |
(...skipping 24 matching lines...) Expand all Loading... |
3380 uploadMedia: _uploadMedia, | 3382 uploadMedia: _uploadMedia, |
3381 downloadOptions: _downloadOptions); | 3383 downloadOptions: _downloadOptions); |
3382 return _response.then((data) => new RemarketingAudience.fromJson(data)); | 3384 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
3383 } | 3385 } |
3384 | 3386 |
3385 /** | 3387 /** |
3386 * Lists remarketing audiences to which the user has access. | 3388 * Lists remarketing audiences to which the user has access. |
3387 * | 3389 * |
3388 * Request parameters: | 3390 * Request parameters: |
3389 * | 3391 * |
3390 * [accountId] - Account ID for the remarketing audience to retrieve. | 3392 * [accountId] - The account ID of the remarketing audiences to retrieve. |
3391 * | 3393 * |
3392 * [webPropertyId] - Web property ID for the remarketing audience to retrieve. | 3394 * [webPropertyId] - The web property ID of the remarketing audiences to |
| 3395 * retrieve. |
3393 * | 3396 * |
3394 * [max_results] - The maximum number of remarketing audiences to include in | 3397 * [max_results] - The maximum number of remarketing audiences to include in |
3395 * this response. | 3398 * this response. |
3396 * | 3399 * |
3397 * [start_index] - An index of the first entity to retrieve. Use this | 3400 * [start_index] - An index of the first entity to retrieve. Use this |
3398 * parameter as a pagination mechanism along with the max-results parameter. | 3401 * parameter as a pagination mechanism along with the max-results parameter. |
3399 * | 3402 * |
3400 * [type] - null | 3403 * [type] - null |
3401 * | 3404 * |
3402 * Completes with a [RemarketingAudiences]. | 3405 * Completes with a [RemarketingAudiences]. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3437 "GET", | 3440 "GET", |
3438 body: _body, | 3441 body: _body, |
3439 queryParams: _queryParams, | 3442 queryParams: _queryParams, |
3440 uploadOptions: _uploadOptions, | 3443 uploadOptions: _uploadOptions, |
3441 uploadMedia: _uploadMedia, | 3444 uploadMedia: _uploadMedia, |
3442 downloadOptions: _downloadOptions); | 3445 downloadOptions: _downloadOptions); |
3443 return _response.then((data) => new RemarketingAudiences.fromJson(data)); | 3446 return _response.then((data) => new RemarketingAudiences.fromJson(data)); |
3444 } | 3447 } |
3445 | 3448 |
3446 /** | 3449 /** |
3447 * Updates an existing remarketing audiences. This method supports patch | 3450 * Updates an existing remarketing audience. This method supports patch |
3448 * semantics. | 3451 * semantics. |
3449 * | 3452 * |
3450 * [request] - The metadata request object. | 3453 * [request] - The metadata request object. |
3451 * | 3454 * |
3452 * Request parameters: | 3455 * Request parameters: |
3453 * | 3456 * |
3454 * [accountId] - Account ID for the remarketing audience to update. | 3457 * [accountId] - The account ID of the remarketing audience to update. |
3455 * | 3458 * |
3456 * [webPropertyId] - Web property ID for the remarketing audience to update. | 3459 * [webPropertyId] - The web property ID of the remarketing audience to |
| 3460 * update. |
3457 * | 3461 * |
3458 * [remarketingAudienceId] - Remarketing audience ID of the remarketing | 3462 * [remarketingAudienceId] - The ID of the remarketing audience to update. |
3459 * audience to update. | |
3460 * | 3463 * |
3461 * Completes with a [RemarketingAudience]. | 3464 * Completes with a [RemarketingAudience]. |
3462 * | 3465 * |
3463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3466 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3464 * error. | 3467 * error. |
3465 * | 3468 * |
3466 * If the used [http.Client] completes with an error when making a REST call, | 3469 * If the used [http.Client] completes with an error when making a REST call, |
3467 * this method will complete with the same error. | 3470 * this method will complete with the same error. |
3468 */ | 3471 */ |
3469 async.Future<RemarketingAudience> patch(RemarketingAudience request, core.Stri
ng accountId, core.String webPropertyId, core.String remarketingAudienceId) { | 3472 async.Future<RemarketingAudience> patch(RemarketingAudience request, core.Stri
ng accountId, core.String webPropertyId, core.String remarketingAudienceId) { |
(...skipping 23 matching lines...) Expand all Loading... |
3493 "PATCH", | 3496 "PATCH", |
3494 body: _body, | 3497 body: _body, |
3495 queryParams: _queryParams, | 3498 queryParams: _queryParams, |
3496 uploadOptions: _uploadOptions, | 3499 uploadOptions: _uploadOptions, |
3497 uploadMedia: _uploadMedia, | 3500 uploadMedia: _uploadMedia, |
3498 downloadOptions: _downloadOptions); | 3501 downloadOptions: _downloadOptions); |
3499 return _response.then((data) => new RemarketingAudience.fromJson(data)); | 3502 return _response.then((data) => new RemarketingAudience.fromJson(data)); |
3500 } | 3503 } |
3501 | 3504 |
3502 /** | 3505 /** |
3503 * Updates an existing remarketing audiences. | 3506 * Updates an existing remarketing audience. |
3504 * | 3507 * |
3505 * [request] - The metadata request object. | 3508 * [request] - The metadata request object. |
3506 * | 3509 * |
3507 * Request parameters: | 3510 * Request parameters: |
3508 * | 3511 * |
3509 * [accountId] - Account ID for the remarketing audience to update. | 3512 * [accountId] - The account ID of the remarketing audience to update. |
3510 * | 3513 * |
3511 * [webPropertyId] - Web property ID for the remarketing audience to update. | 3514 * [webPropertyId] - The web property ID of the remarketing audience to |
| 3515 * update. |
3512 * | 3516 * |
3513 * [remarketingAudienceId] - Remarketing audience ID of the remarketing | 3517 * [remarketingAudienceId] - The ID of the remarketing audience to update. |
3514 * audience to update. | |
3515 * | 3518 * |
3516 * Completes with a [RemarketingAudience]. | 3519 * Completes with a [RemarketingAudience]. |
3517 * | 3520 * |
3518 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3521 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3519 * error. | 3522 * error. |
3520 * | 3523 * |
3521 * If the used [http.Client] completes with an error when making a REST call, | 3524 * If the used [http.Client] completes with an error when making a REST call, |
3522 * this method will complete with the same error. | 3525 * this method will complete with the same error. |
3523 */ | 3526 */ |
3524 async.Future<RemarketingAudience> update(RemarketingAudience request, core.Str
ing accountId, core.String webPropertyId, core.String remarketingAudienceId) { | 3527 async.Future<RemarketingAudience> update(RemarketingAudience request, core.Str
ing accountId, core.String webPropertyId, core.String remarketingAudienceId) { |
(...skipping 4925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8450 | 8453 |
8451 /** Analytics data for a given view (profile). */ | 8454 /** Analytics data for a given view (profile). */ |
8452 class GaData { | 8455 class GaData { |
8453 /** | 8456 /** |
8454 * Column headers that list dimension names followed by the metric names. The | 8457 * Column headers that list dimension names followed by the metric names. The |
8455 * order of dimensions and metrics is same as specified in the request. | 8458 * order of dimensions and metrics is same as specified in the request. |
8456 */ | 8459 */ |
8457 core.List<GaDataColumnHeaders> columnHeaders; | 8460 core.List<GaDataColumnHeaders> columnHeaders; |
8458 /** Determines if Analytics data contains samples. */ | 8461 /** Determines if Analytics data contains samples. */ |
8459 core.bool containsSampledData; | 8462 core.bool containsSampledData; |
| 8463 /** The last refreshed time in seconds for Analytics data. */ |
| 8464 core.String dataLastRefreshed; |
8460 GaDataDataTable dataTable; | 8465 GaDataDataTable dataTable; |
8461 /** Unique ID for this data response. */ | 8466 /** Unique ID for this data response. */ |
8462 core.String id; | 8467 core.String id; |
8463 /** | 8468 /** |
8464 * The maximum number of rows the response can contain, regardless of the | 8469 * The maximum number of rows the response can contain, regardless of the |
8465 * actual number of rows returned. Its value ranges from 1 to 10,000 with a | 8470 * actual number of rows returned. Its value ranges from 1 to 10,000 with a |
8466 * value of 1000 by default, or otherwise specified by the max-results query | 8471 * value of 1000 by default, or otherwise specified by the max-results query |
8467 * parameter. | 8472 * parameter. |
8468 */ | 8473 */ |
8469 core.int itemsPerPage; | 8474 core.int itemsPerPage; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8506 | 8511 |
8507 GaData(); | 8512 GaData(); |
8508 | 8513 |
8509 GaData.fromJson(core.Map _json) { | 8514 GaData.fromJson(core.Map _json) { |
8510 if (_json.containsKey("columnHeaders")) { | 8515 if (_json.containsKey("columnHeaders")) { |
8511 columnHeaders = _json["columnHeaders"].map((value) => new GaDataColumnHead
ers.fromJson(value)).toList(); | 8516 columnHeaders = _json["columnHeaders"].map((value) => new GaDataColumnHead
ers.fromJson(value)).toList(); |
8512 } | 8517 } |
8513 if (_json.containsKey("containsSampledData")) { | 8518 if (_json.containsKey("containsSampledData")) { |
8514 containsSampledData = _json["containsSampledData"]; | 8519 containsSampledData = _json["containsSampledData"]; |
8515 } | 8520 } |
| 8521 if (_json.containsKey("dataLastRefreshed")) { |
| 8522 dataLastRefreshed = _json["dataLastRefreshed"]; |
| 8523 } |
8516 if (_json.containsKey("dataTable")) { | 8524 if (_json.containsKey("dataTable")) { |
8517 dataTable = new GaDataDataTable.fromJson(_json["dataTable"]); | 8525 dataTable = new GaDataDataTable.fromJson(_json["dataTable"]); |
8518 } | 8526 } |
8519 if (_json.containsKey("id")) { | 8527 if (_json.containsKey("id")) { |
8520 id = _json["id"]; | 8528 id = _json["id"]; |
8521 } | 8529 } |
8522 if (_json.containsKey("itemsPerPage")) { | 8530 if (_json.containsKey("itemsPerPage")) { |
8523 itemsPerPage = _json["itemsPerPage"]; | 8531 itemsPerPage = _json["itemsPerPage"]; |
8524 } | 8532 } |
8525 if (_json.containsKey("kind")) { | 8533 if (_json.containsKey("kind")) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8558 } | 8566 } |
8559 | 8567 |
8560 core.Map toJson() { | 8568 core.Map toJson() { |
8561 var _json = new core.Map(); | 8569 var _json = new core.Map(); |
8562 if (columnHeaders != null) { | 8570 if (columnHeaders != null) { |
8563 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to
List(); | 8571 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to
List(); |
8564 } | 8572 } |
8565 if (containsSampledData != null) { | 8573 if (containsSampledData != null) { |
8566 _json["containsSampledData"] = containsSampledData; | 8574 _json["containsSampledData"] = containsSampledData; |
8567 } | 8575 } |
| 8576 if (dataLastRefreshed != null) { |
| 8577 _json["dataLastRefreshed"] = dataLastRefreshed; |
| 8578 } |
8568 if (dataTable != null) { | 8579 if (dataTable != null) { |
8569 _json["dataTable"] = (dataTable).toJson(); | 8580 _json["dataTable"] = (dataTable).toJson(); |
8570 } | 8581 } |
8571 if (id != null) { | 8582 if (id != null) { |
8572 _json["id"] = id; | 8583 _json["id"] = id; |
8573 } | 8584 } |
8574 if (itemsPerPage != null) { | 8585 if (itemsPerPage != null) { |
8575 _json["itemsPerPage"] = itemsPerPage; | 8586 _json["itemsPerPage"] = itemsPerPage; |
8576 } | 8587 } |
8577 if (kind != null) { | 8588 if (kind != null) { |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9166 * added to the audience. | 9177 * added to the audience. |
9167 */ | 9178 */ |
9168 core.int daysToLookBack; | 9179 core.int daysToLookBack; |
9169 /** | 9180 /** |
9170 * Boolean indicating whether this segment is a smart list. | 9181 * Boolean indicating whether this segment is a smart list. |
9171 * https://support.google.com/analytics/answer/4628577 | 9182 * https://support.google.com/analytics/answer/4628577 |
9172 */ | 9183 */ |
9173 core.bool isSmartList; | 9184 core.bool isSmartList; |
9174 /** Resource type for include conditions. */ | 9185 /** Resource type for include conditions. */ |
9175 core.String kind; | 9186 core.String kind; |
9176 /** | 9187 /** Number of days (in the range 1 to 540) a user remains in the audience. */ |
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; | 9188 core.int membershipDurationDays; |
9182 /** | 9189 /** |
9183 * The segment condition that will cause a user to be added to an audience. | 9190 * The segment condition that will cause a user to be added to an audience. |
9184 */ | 9191 */ |
9185 core.String segment; | 9192 core.String segment; |
9186 | 9193 |
9187 IncludeConditions(); | 9194 IncludeConditions(); |
9188 | 9195 |
9189 IncludeConditions.fromJson(core.Map _json) { | 9196 IncludeConditions.fromJson(core.Map _json) { |
9190 if (_json.containsKey("daysToLookBack")) { | 9197 if (_json.containsKey("daysToLookBack")) { |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9862 /** | 9869 /** |
9863 * Child link for this view (profile). Points to the list of goals for this | 9870 * Child link for this view (profile). Points to the list of goals for this |
9864 * view (profile). | 9871 * view (profile). |
9865 */ | 9872 */ |
9866 ProfileChildLink childLink; | 9873 ProfileChildLink childLink; |
9867 /** Time this view (profile) was created. */ | 9874 /** Time this view (profile) was created. */ |
9868 core.DateTime created; | 9875 core.DateTime created; |
9869 /** | 9876 /** |
9870 * The currency type associated with this view (profile), defaults to USD. The | 9877 * The currency type associated with this view (profile), defaults to USD. The |
9871 * supported values are: | 9878 * supported values are: |
9872 * ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, | 9879 * USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, |
9873 * JPY, KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, | 9880 * HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, |
9874 * ZAR | 9881 * ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, |
| 9882 * SAR, SGD, VEF, LVL |
9875 */ | 9883 */ |
9876 core.String currency; | 9884 core.String currency; |
9877 /** Default page for this view (profile). */ | 9885 /** Default page for this view (profile). */ |
9878 core.String defaultPage; | 9886 core.String defaultPage; |
9879 /** | 9887 /** |
9880 * Indicates whether ecommerce tracking is enabled for this view (profile). | 9888 * Indicates whether ecommerce tracking is enabled for this view (profile). |
9881 */ | 9889 */ |
9882 core.bool eCommerceTracking; | 9890 core.bool eCommerceTracking; |
9883 /** | 9891 /** |
9884 * Indicates whether enhanced ecommerce tracking is enabled for this view | 9892 * Indicates whether enhanced ecommerce tracking is enabled for this view |
(...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12257 } | 12265 } |
12258 if (updated != null) { | 12266 if (updated != null) { |
12259 _json["updated"] = (updated).toIso8601String(); | 12267 _json["updated"] = (updated).toIso8601String(); |
12260 } | 12268 } |
12261 if (websiteUrl != null) { | 12269 if (websiteUrl != null) { |
12262 _json["websiteUrl"] = websiteUrl; | 12270 _json["websiteUrl"] = websiteUrl; |
12263 } | 12271 } |
12264 return _json; | 12272 return _json; |
12265 } | 12273 } |
12266 } | 12274 } |
OLD | NEW |