| 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_beta.adexchangebuyer2.v2beta1; | 3 library googleapis_beta.adexchangebuyer2.v2beta1; |
| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 /** | 149 /** |
| 150 * Lists all the clients for the current sponsor buyer. | 150 * Lists all the clients for the current sponsor buyer. |
| 151 * | 151 * |
| 152 * Request parameters: | 152 * Request parameters: |
| 153 * | 153 * |
| 154 * [accountId] - Unique numerical account ID of the sponsor buyer to list the | 154 * [accountId] - Unique numerical account ID of the sponsor buyer to list the |
| 155 * clients for. | 155 * clients for. |
| 156 * | 156 * |
| 157 * [pageSize] - Requested page size. The server may return fewer clients than |
| 158 * requested. |
| 159 * If unspecified, the server will pick an appropriate default. |
| 160 * |
| 157 * [pageToken] - A token identifying a page of results the server should | 161 * [pageToken] - A token identifying a page of results the server should |
| 158 * return. | 162 * return. |
| 159 * Typically, this is the value of | 163 * Typically, this is the value of |
| 160 * ListClientsResponse.nextPageToken | 164 * ListClientsResponse.nextPageToken |
| 161 * returned from the previous call to the | 165 * returned from the previous call to the |
| 162 * accounts.clients.list method. | 166 * accounts.clients.list method. |
| 163 * | 167 * |
| 164 * [pageSize] - Requested page size. The server may return fewer clients than | |
| 165 * requested. | |
| 166 * If unspecified, the server will pick an appropriate default. | |
| 167 * | |
| 168 * Completes with a [ListClientsResponse]. | 168 * Completes with a [ListClientsResponse]. |
| 169 * | 169 * |
| 170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 171 * error. | 171 * error. |
| 172 * | 172 * |
| 173 * If the used [http.Client] completes with an error when making a REST call, | 173 * If the used [http.Client] completes with an error when making a REST call, |
| 174 * this method will complete with the same error. | 174 * this method will complete with the same error. |
| 175 */ | 175 */ |
| 176 async.Future<ListClientsResponse> list(core.String accountId, {core.String pag
eToken, core.int pageSize}) { | 176 async.Future<ListClientsResponse> list(core.String accountId, {core.int pageSi
ze, core.String pageToken}) { |
| 177 var _url = null; | 177 var _url = null; |
| 178 var _queryParams = new core.Map(); | 178 var _queryParams = new core.Map(); |
| 179 var _uploadMedia = null; | 179 var _uploadMedia = null; |
| 180 var _uploadOptions = null; | 180 var _uploadOptions = null; |
| 181 var _downloadOptions = commons.DownloadOptions.Metadata; | 181 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 182 var _body = null; | 182 var _body = null; |
| 183 | 183 |
| 184 if (accountId == null) { | 184 if (accountId == null) { |
| 185 throw new core.ArgumentError("Parameter accountId is required."); | 185 throw new core.ArgumentError("Parameter accountId is required."); |
| 186 } | 186 } |
| 187 if (pageSize != null) { |
| 188 _queryParams["pageSize"] = ["${pageSize}"]; |
| 189 } |
| 187 if (pageToken != null) { | 190 if (pageToken != null) { |
| 188 _queryParams["pageToken"] = [pageToken]; | 191 _queryParams["pageToken"] = [pageToken]; |
| 189 } | 192 } |
| 190 if (pageSize != null) { | |
| 191 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 192 } | |
| 193 | 193 |
| 194 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients'; | 194 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients'; |
| 195 | 195 |
| 196 var _response = _requester.request(_url, | 196 var _response = _requester.request(_url, |
| 197 "GET", | 197 "GET", |
| 198 body: _body, | 198 body: _body, |
| 199 queryParams: _queryParams, | 199 queryParams: _queryParams, |
| 200 uploadOptions: _uploadOptions, | 200 uploadOptions: _uploadOptions, |
| 201 uploadMedia: _uploadMedia, | 201 uploadMedia: _uploadMedia, |
| 202 downloadOptions: _downloadOptions); | 202 downloadOptions: _downloadOptions); |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 * list users for. | 509 * list users for. |
| 510 * (required) | 510 * (required) |
| 511 * | 511 * |
| 512 * [clientAccountId] - The account ID of the client buyer to list users for. | 512 * [clientAccountId] - The account ID of the client buyer to list users for. |
| 513 * (required) | 513 * (required) |
| 514 * You must specify either a string representation of a | 514 * You must specify either a string representation of a |
| 515 * numerical account identifier or the `-` character | 515 * numerical account identifier or the `-` character |
| 516 * to list all the client users for all the clients | 516 * to list all the client users for all the clients |
| 517 * of a given sponsor buyer. | 517 * of a given sponsor buyer. |
| 518 * | 518 * |
| 519 * [pageSize] - Requested page size. The server may return fewer clients than |
| 520 * requested. |
| 521 * If unspecified, the server will pick an appropriate default. |
| 522 * |
| 519 * [pageToken] - A token identifying a page of results the server should | 523 * [pageToken] - A token identifying a page of results the server should |
| 520 * return. | 524 * return. |
| 521 * Typically, this is the value of | 525 * Typically, this is the value of |
| 522 * ListClientUsersResponse.nextPageToken | 526 * ListClientUsersResponse.nextPageToken |
| 523 * returned from the previous call to the | 527 * returned from the previous call to the |
| 524 * accounts.clients.users.list method. | 528 * accounts.clients.users.list method. |
| 525 * | 529 * |
| 526 * [pageSize] - Requested page size. The server may return fewer clients than | |
| 527 * requested. | |
| 528 * If unspecified, the server will pick an appropriate default. | |
| 529 * | |
| 530 * Completes with a [ListClientUsersResponse]. | 530 * Completes with a [ListClientUsersResponse]. |
| 531 * | 531 * |
| 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 533 * error. | 533 * error. |
| 534 * | 534 * |
| 535 * If the used [http.Client] completes with an error when making a REST call, | 535 * If the used [http.Client] completes with an error when making a REST call, |
| 536 * this method will complete with the same error. | 536 * this method will complete with the same error. |
| 537 */ | 537 */ |
| 538 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.String pageToken, core.int pageSize}) { | 538 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.int pageSize, core.String pageToken}) { |
| 539 var _url = null; | 539 var _url = null; |
| 540 var _queryParams = new core.Map(); | 540 var _queryParams = new core.Map(); |
| 541 var _uploadMedia = null; | 541 var _uploadMedia = null; |
| 542 var _uploadOptions = null; | 542 var _uploadOptions = null; |
| 543 var _downloadOptions = commons.DownloadOptions.Metadata; | 543 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 544 var _body = null; | 544 var _body = null; |
| 545 | 545 |
| 546 if (accountId == null) { | 546 if (accountId == null) { |
| 547 throw new core.ArgumentError("Parameter accountId is required."); | 547 throw new core.ArgumentError("Parameter accountId is required."); |
| 548 } | 548 } |
| 549 if (clientAccountId == null) { | 549 if (clientAccountId == null) { |
| 550 throw new core.ArgumentError("Parameter clientAccountId is required."); | 550 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 551 } | 551 } |
| 552 if (pageSize != null) { |
| 553 _queryParams["pageSize"] = ["${pageSize}"]; |
| 554 } |
| 552 if (pageToken != null) { | 555 if (pageToken != null) { |
| 553 _queryParams["pageToken"] = [pageToken]; | 556 _queryParams["pageToken"] = [pageToken]; |
| 554 } | 557 } |
| 555 if (pageSize != null) { | |
| 556 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 557 } | |
| 558 | 558 |
| 559 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users'; | 559 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users'; |
| 560 | 560 |
| 561 var _response = _requester.request(_url, | 561 var _response = _requester.request(_url, |
| 562 "GET", | 562 "GET", |
| 563 body: _body, | 563 body: _body, |
| 564 queryParams: _queryParams, | 564 queryParams: _queryParams, |
| 565 uploadOptions: _uploadOptions, | 565 uploadOptions: _uploadOptions, |
| 566 uploadMedia: _uploadMedia, | 566 uploadMedia: _uploadMedia, |
| 567 downloadOptions: _downloadOptions); | 567 downloadOptions: _downloadOptions); |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 * List all creative-deal associations. | 1038 * List all creative-deal associations. |
| 1039 * | 1039 * |
| 1040 * Request parameters: | 1040 * Request parameters: |
| 1041 * | 1041 * |
| 1042 * [accountId] - The account to list the associations from. | 1042 * [accountId] - The account to list the associations from. |
| 1043 * Specify "-" to list all creatives the current user has access to. | 1043 * Specify "-" to list all creatives the current user has access to. |
| 1044 * | 1044 * |
| 1045 * [creativeId] - The creative ID to list the associations from. | 1045 * [creativeId] - The creative ID to list the associations from. |
| 1046 * Specify "-" to list all creatives under the above account. | 1046 * Specify "-" to list all creatives under the above account. |
| 1047 * | 1047 * |
| 1048 * [pageToken] - A token identifying a page of results the server should | |
| 1049 * return. | |
| 1050 * Typically, this is the value of | |
| 1051 * ListDealAssociationsResponse.next_page_token | |
| 1052 * returned from the previous call to 'ListDealAssociations' method. | |
| 1053 * | |
| 1054 * [pageSize] - Requested page size. Server may return fewer associations than | 1048 * [pageSize] - Requested page size. Server may return fewer associations than |
| 1055 * requested. | 1049 * requested. |
| 1056 * If unspecified, server will pick an appropriate default. | 1050 * If unspecified, server will pick an appropriate default. |
| 1057 * | 1051 * |
| 1058 * [query] - An optional query string to filter deal associations. If no | 1052 * [query] - An optional query string to filter deal associations. If no |
| 1059 * filter is | 1053 * filter is |
| 1060 * specified, all associations will be returned. | 1054 * specified, all associations will be returned. |
| 1061 * Supported queries are: | 1055 * Supported queries are: |
| 1062 * <ul> | 1056 * <ul> |
| 1063 * <li>accountId=<i>account_id_string</i> | 1057 * <li>accountId=<i>account_id_string</i> |
| 1064 * <li>creativeId=<i>creative_id_string</i> | 1058 * <li>creativeId=<i>creative_id_string</i> |
| 1065 * <li>dealsId=<i>deals_id_string</i> | 1059 * <li>dealsId=<i>deals_id_string</i> |
| 1066 * <li>dealsStatus:{approved, conditionally_approved, disapproved, | 1060 * <li>dealsStatus:{approved, conditionally_approved, disapproved, |
| 1067 * not_checked} | 1061 * not_checked} |
| 1068 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, | 1062 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, |
| 1069 * not_checked} | 1063 * not_checked} |
| 1070 * </ul> | 1064 * </ul> |
| 1071 * Example: 'dealsId=12345 AND dealsStatus:disapproved' | 1065 * Example: 'dealsId=12345 AND dealsStatus:disapproved' |
| 1072 * | 1066 * |
| 1067 * [pageToken] - A token identifying a page of results the server should |
| 1068 * return. |
| 1069 * Typically, this is the value of |
| 1070 * ListDealAssociationsResponse.next_page_token |
| 1071 * returned from the previous call to 'ListDealAssociations' method. |
| 1072 * |
| 1073 * Completes with a [ListDealAssociationsResponse]. | 1073 * Completes with a [ListDealAssociationsResponse]. |
| 1074 * | 1074 * |
| 1075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1076 * error. | 1076 * error. |
| 1077 * | 1077 * |
| 1078 * If the used [http.Client] completes with an error when making a REST call, | 1078 * If the used [http.Client] completes with an error when making a REST call, |
| 1079 * this method will complete with the same error. | 1079 * this method will complete with the same error. |
| 1080 */ | 1080 */ |
| 1081 async.Future<ListDealAssociationsResponse> list(core.String accountId, core.St
ring creativeId, {core.String pageToken, core.int pageSize, core.String query})
{ | 1081 async.Future<ListDealAssociationsResponse> list(core.String accountId, core.St
ring creativeId, {core.int pageSize, core.String query, core.String pageToken})
{ |
| 1082 var _url = null; | 1082 var _url = null; |
| 1083 var _queryParams = new core.Map(); | 1083 var _queryParams = new core.Map(); |
| 1084 var _uploadMedia = null; | 1084 var _uploadMedia = null; |
| 1085 var _uploadOptions = null; | 1085 var _uploadOptions = null; |
| 1086 var _downloadOptions = commons.DownloadOptions.Metadata; | 1086 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1087 var _body = null; | 1087 var _body = null; |
| 1088 | 1088 |
| 1089 if (accountId == null) { | 1089 if (accountId == null) { |
| 1090 throw new core.ArgumentError("Parameter accountId is required."); | 1090 throw new core.ArgumentError("Parameter accountId is required."); |
| 1091 } | 1091 } |
| 1092 if (creativeId == null) { | 1092 if (creativeId == null) { |
| 1093 throw new core.ArgumentError("Parameter creativeId is required."); | 1093 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1094 } | 1094 } |
| 1095 if (pageToken != null) { | |
| 1096 _queryParams["pageToken"] = [pageToken]; | |
| 1097 } | |
| 1098 if (pageSize != null) { | 1095 if (pageSize != null) { |
| 1099 _queryParams["pageSize"] = ["${pageSize}"]; | 1096 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1100 } | 1097 } |
| 1101 if (query != null) { | 1098 if (query != null) { |
| 1102 _queryParams["query"] = [query]; | 1099 _queryParams["query"] = [query]; |
| 1103 } | 1100 } |
| 1101 if (pageToken != null) { |
| 1102 _queryParams["pageToken"] = [pageToken]; |
| 1103 } |
| 1104 | 1104 |
| 1105 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
'; | 1105 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
'; |
| 1106 | 1106 |
| 1107 var _response = _requester.request(_url, | 1107 var _response = _requester.request(_url, |
| 1108 "GET", | 1108 "GET", |
| 1109 body: _body, | 1109 body: _body, |
| 1110 queryParams: _queryParams, | 1110 queryParams: _queryParams, |
| 1111 uploadOptions: _uploadOptions, | 1111 uploadOptions: _uploadOptions, |
| 1112 uploadMedia: _uploadMedia, | 1112 uploadMedia: _uploadMedia, |
| 1113 downloadOptions: _downloadOptions); | 1113 downloadOptions: _downloadOptions); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 | 1391 |
| 1392 /** | 1392 /** |
| 1393 * Lists all metrics that are measured in terms of number of bids. | 1393 * Lists all metrics that are measured in terms of number of bids. |
| 1394 * | 1394 * |
| 1395 * Request parameters: | 1395 * Request parameters: |
| 1396 * | 1396 * |
| 1397 * [accountId] - Account ID of the buyer. | 1397 * [accountId] - Account ID of the buyer. |
| 1398 * | 1398 * |
| 1399 * [filterSetId] - The ID of the filter set to apply. | 1399 * [filterSetId] - The ID of the filter set to apply. |
| 1400 * | 1400 * |
| 1401 * [pageSize] - Requested page size. The server may return fewer results than |
| 1402 * requested. |
| 1403 * If unspecified, the server will pick an appropriate default. |
| 1404 * |
| 1401 * [pageToken] - A token identifying a page of results the server should | 1405 * [pageToken] - A token identifying a page of results the server should |
| 1402 * return. | 1406 * return. |
| 1403 * Typically, this is the value of | 1407 * Typically, this is the value of |
| 1404 * ListBidMetricsResponse.nextPageToken | 1408 * ListBidMetricsResponse.nextPageToken |
| 1405 * returned from the previous call to the | 1409 * returned from the previous call to the |
| 1406 * accounts.filterSets.bidMetrics.list | 1410 * accounts.filterSets.bidMetrics.list |
| 1407 * method. | 1411 * method. |
| 1408 * | 1412 * |
| 1409 * [pageSize] - Requested page size. The server may return fewer results than | |
| 1410 * requested. | |
| 1411 * If unspecified, the server will pick an appropriate default. | |
| 1412 * | |
| 1413 * Completes with a [ListBidMetricsResponse]. | 1413 * Completes with a [ListBidMetricsResponse]. |
| 1414 * | 1414 * |
| 1415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1416 * error. | 1416 * error. |
| 1417 * | 1417 * |
| 1418 * If the used [http.Client] completes with an error when making a REST call, | 1418 * If the used [http.Client] completes with an error when making a REST call, |
| 1419 * this method will complete with the same error. | 1419 * this method will complete with the same error. |
| 1420 */ | 1420 */ |
| 1421 async.Future<ListBidMetricsResponse> list(core.String accountId, core.String f
ilterSetId, {core.String pageToken, core.int pageSize}) { | 1421 async.Future<ListBidMetricsResponse> list(core.String accountId, core.String f
ilterSetId, {core.int pageSize, core.String pageToken}) { |
| 1422 var _url = null; | 1422 var _url = null; |
| 1423 var _queryParams = new core.Map(); | 1423 var _queryParams = new core.Map(); |
| 1424 var _uploadMedia = null; | 1424 var _uploadMedia = null; |
| 1425 var _uploadOptions = null; | 1425 var _uploadOptions = null; |
| 1426 var _downloadOptions = commons.DownloadOptions.Metadata; | 1426 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1427 var _body = null; | 1427 var _body = null; |
| 1428 | 1428 |
| 1429 if (accountId == null) { | 1429 if (accountId == null) { |
| 1430 throw new core.ArgumentError("Parameter accountId is required."); | 1430 throw new core.ArgumentError("Parameter accountId is required."); |
| 1431 } | 1431 } |
| 1432 if (filterSetId == null) { | 1432 if (filterSetId == null) { |
| 1433 throw new core.ArgumentError("Parameter filterSetId is required."); | 1433 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1434 } | 1434 } |
| 1435 if (pageSize != null) { |
| 1436 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1437 } |
| 1435 if (pageToken != null) { | 1438 if (pageToken != null) { |
| 1436 _queryParams["pageToken"] = [pageToken]; | 1439 _queryParams["pageToken"] = [pageToken]; |
| 1437 } | 1440 } |
| 1438 if (pageSize != null) { | |
| 1439 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1440 } | |
| 1441 | 1441 |
| 1442 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidMetrics'; | 1442 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidMetrics'; |
| 1443 | 1443 |
| 1444 var _response = _requester.request(_url, | 1444 var _response = _requester.request(_url, |
| 1445 "GET", | 1445 "GET", |
| 1446 body: _body, | 1446 body: _body, |
| 1447 queryParams: _queryParams, | 1447 queryParams: _queryParams, |
| 1448 uploadOptions: _uploadOptions, | 1448 uploadOptions: _uploadOptions, |
| 1449 uploadMedia: _uploadMedia, | 1449 uploadMedia: _uploadMedia, |
| 1450 downloadOptions: _downloadOptions); | 1450 downloadOptions: _downloadOptions); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1463 /** | 1463 /** |
| 1464 * List all errors that occurred in bid responses, with the number of bid | 1464 * List all errors that occurred in bid responses, with the number of bid |
| 1465 * responses affected for each reason. | 1465 * responses affected for each reason. |
| 1466 * | 1466 * |
| 1467 * Request parameters: | 1467 * Request parameters: |
| 1468 * | 1468 * |
| 1469 * [accountId] - Account ID of the buyer. | 1469 * [accountId] - Account ID of the buyer. |
| 1470 * | 1470 * |
| 1471 * [filterSetId] - The ID of the filter set to apply. | 1471 * [filterSetId] - The ID of the filter set to apply. |
| 1472 * | 1472 * |
| 1473 * [pageSize] - Requested page size. The server may return fewer results than |
| 1474 * requested. |
| 1475 * If unspecified, the server will pick an appropriate default. |
| 1476 * |
| 1473 * [pageToken] - A token identifying a page of results the server should | 1477 * [pageToken] - A token identifying a page of results the server should |
| 1474 * return. | 1478 * return. |
| 1475 * Typically, this is the value of | 1479 * Typically, this is the value of |
| 1476 * ListBidResponseErrorsResponse.nextPageToken | 1480 * ListBidResponseErrorsResponse.nextPageToken |
| 1477 * returned from the previous call to the | 1481 * returned from the previous call to the |
| 1478 * accounts.filterSets.bidResponseErrors.list | 1482 * accounts.filterSets.bidResponseErrors.list |
| 1479 * method. | 1483 * method. |
| 1480 * | 1484 * |
| 1481 * [pageSize] - Requested page size. The server may return fewer results than | |
| 1482 * requested. | |
| 1483 * If unspecified, the server will pick an appropriate default. | |
| 1484 * | |
| 1485 * Completes with a [ListBidResponseErrorsResponse]. | 1485 * Completes with a [ListBidResponseErrorsResponse]. |
| 1486 * | 1486 * |
| 1487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1488 * error. | 1488 * error. |
| 1489 * | 1489 * |
| 1490 * If the used [http.Client] completes with an error when making a REST call, | 1490 * If the used [http.Client] completes with an error when making a REST call, |
| 1491 * this method will complete with the same error. | 1491 * this method will complete with the same error. |
| 1492 */ | 1492 */ |
| 1493 async.Future<ListBidResponseErrorsResponse> list(core.String accountId, core.S
tring filterSetId, {core.String pageToken, core.int pageSize}) { | 1493 async.Future<ListBidResponseErrorsResponse> list(core.String accountId, core.S
tring filterSetId, {core.int pageSize, core.String pageToken}) { |
| 1494 var _url = null; | 1494 var _url = null; |
| 1495 var _queryParams = new core.Map(); | 1495 var _queryParams = new core.Map(); |
| 1496 var _uploadMedia = null; | 1496 var _uploadMedia = null; |
| 1497 var _uploadOptions = null; | 1497 var _uploadOptions = null; |
| 1498 var _downloadOptions = commons.DownloadOptions.Metadata; | 1498 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1499 var _body = null; | 1499 var _body = null; |
| 1500 | 1500 |
| 1501 if (accountId == null) { | 1501 if (accountId == null) { |
| 1502 throw new core.ArgumentError("Parameter accountId is required."); | 1502 throw new core.ArgumentError("Parameter accountId is required."); |
| 1503 } | 1503 } |
| 1504 if (filterSetId == null) { | 1504 if (filterSetId == null) { |
| 1505 throw new core.ArgumentError("Parameter filterSetId is required."); | 1505 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1506 } | 1506 } |
| 1507 if (pageSize != null) { |
| 1508 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1509 } |
| 1507 if (pageToken != null) { | 1510 if (pageToken != null) { |
| 1508 _queryParams["pageToken"] = [pageToken]; | 1511 _queryParams["pageToken"] = [pageToken]; |
| 1509 } | 1512 } |
| 1510 if (pageSize != null) { | |
| 1511 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1512 } | |
| 1513 | 1513 |
| 1514 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponseErr
ors'; | 1514 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponseErr
ors'; |
| 1515 | 1515 |
| 1516 var _response = _requester.request(_url, | 1516 var _response = _requester.request(_url, |
| 1517 "GET", | 1517 "GET", |
| 1518 body: _body, | 1518 body: _body, |
| 1519 queryParams: _queryParams, | 1519 queryParams: _queryParams, |
| 1520 uploadOptions: _uploadOptions, | 1520 uploadOptions: _uploadOptions, |
| 1521 uploadMedia: _uploadMedia, | 1521 uploadMedia: _uploadMedia, |
| 1522 downloadOptions: _downloadOptions); | 1522 downloadOptions: _downloadOptions); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1607 /** | 1607 /** |
| 1608 * List all reasons that caused a bid request not to be sent for an | 1608 * List all reasons that caused a bid request not to be sent for an |
| 1609 * impression, with the number of bid requests not sent for each reason. | 1609 * impression, with the number of bid requests not sent for each reason. |
| 1610 * | 1610 * |
| 1611 * Request parameters: | 1611 * Request parameters: |
| 1612 * | 1612 * |
| 1613 * [accountId] - Account ID of the buyer. | 1613 * [accountId] - Account ID of the buyer. |
| 1614 * | 1614 * |
| 1615 * [filterSetId] - The ID of the filter set to apply. | 1615 * [filterSetId] - The ID of the filter set to apply. |
| 1616 * | 1616 * |
| 1617 * [pageSize] - Requested page size. The server may return fewer results than |
| 1618 * requested. |
| 1619 * If unspecified, the server will pick an appropriate default. |
| 1620 * |
| 1617 * [pageToken] - A token identifying a page of results the server should | 1621 * [pageToken] - A token identifying a page of results the server should |
| 1618 * return. | 1622 * return. |
| 1619 * Typically, this is the value of | 1623 * Typically, this is the value of |
| 1620 * ListFilteredBidRequestsResponse.nextPageToken | 1624 * ListFilteredBidRequestsResponse.nextPageToken |
| 1621 * returned from the previous call to the | 1625 * returned from the previous call to the |
| 1622 * accounts.filterSets.filteredBidRequests.list | 1626 * accounts.filterSets.filteredBidRequests.list |
| 1623 * method. | 1627 * method. |
| 1624 * | 1628 * |
| 1625 * [pageSize] - Requested page size. The server may return fewer results than | |
| 1626 * requested. | |
| 1627 * If unspecified, the server will pick an appropriate default. | |
| 1628 * | |
| 1629 * Completes with a [ListFilteredBidRequestsResponse]. | 1629 * Completes with a [ListFilteredBidRequestsResponse]. |
| 1630 * | 1630 * |
| 1631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1632 * error. | 1632 * error. |
| 1633 * | 1633 * |
| 1634 * If the used [http.Client] completes with an error when making a REST call, | 1634 * If the used [http.Client] completes with an error when making a REST call, |
| 1635 * this method will complete with the same error. | 1635 * this method will complete with the same error. |
| 1636 */ | 1636 */ |
| 1637 async.Future<ListFilteredBidRequestsResponse> list(core.String accountId, core
.String filterSetId, {core.String pageToken, core.int pageSize}) { | 1637 async.Future<ListFilteredBidRequestsResponse> list(core.String accountId, core
.String filterSetId, {core.int pageSize, core.String pageToken}) { |
| 1638 var _url = null; | 1638 var _url = null; |
| 1639 var _queryParams = new core.Map(); | 1639 var _queryParams = new core.Map(); |
| 1640 var _uploadMedia = null; | 1640 var _uploadMedia = null; |
| 1641 var _uploadOptions = null; | 1641 var _uploadOptions = null; |
| 1642 var _downloadOptions = commons.DownloadOptions.Metadata; | 1642 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1643 var _body = null; | 1643 var _body = null; |
| 1644 | 1644 |
| 1645 if (accountId == null) { | 1645 if (accountId == null) { |
| 1646 throw new core.ArgumentError("Parameter accountId is required."); | 1646 throw new core.ArgumentError("Parameter accountId is required."); |
| 1647 } | 1647 } |
| 1648 if (filterSetId == null) { | 1648 if (filterSetId == null) { |
| 1649 throw new core.ArgumentError("Parameter filterSetId is required."); | 1649 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1650 } | 1650 } |
| 1651 if (pageSize != null) { |
| 1652 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1653 } |
| 1651 if (pageToken != null) { | 1654 if (pageToken != null) { |
| 1652 _queryParams["pageToken"] = [pageToken]; | 1655 _queryParams["pageToken"] = [pageToken]; |
| 1653 } | 1656 } |
| 1654 if (pageSize != null) { | |
| 1655 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1656 } | |
| 1657 | 1657 |
| 1658 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBidReq
uests'; | 1658 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBidReq
uests'; |
| 1659 | 1659 |
| 1660 var _response = _requester.request(_url, | 1660 var _response = _requester.request(_url, |
| 1661 "GET", | 1661 "GET", |
| 1662 body: _body, | 1662 body: _body, |
| 1663 queryParams: _queryParams, | 1663 queryParams: _queryParams, |
| 1664 uploadOptions: _uploadOptions, | 1664 uploadOptions: _uploadOptions, |
| 1665 uploadMedia: _uploadMedia, | 1665 uploadMedia: _uploadMedia, |
| 1666 downloadOptions: _downloadOptions); | 1666 downloadOptions: _downloadOptions); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 * Request parameters: | 1839 * Request parameters: |
| 1840 * | 1840 * |
| 1841 * [accountId] - Account ID of the buyer. | 1841 * [accountId] - Account ID of the buyer. |
| 1842 * | 1842 * |
| 1843 * [filterSetId] - The ID of the filter set to apply. | 1843 * [filterSetId] - The ID of the filter set to apply. |
| 1844 * | 1844 * |
| 1845 * [creativeStatusId] - The ID of the creative status for which to retrieve a | 1845 * [creativeStatusId] - The ID of the creative status for which to retrieve a |
| 1846 * breakdown by detail. | 1846 * breakdown by detail. |
| 1847 * See | 1847 * See |
| 1848 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1848 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1849 * Details are only available for statuses 14, 15, 17, 18, 19, 86, and 87. | 1849 * Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87. |
| 1850 * | 1850 * |
| 1851 * [pageToken] - A token identifying a page of results the server should | 1851 * [pageToken] - A token identifying a page of results the server should |
| 1852 * return. | 1852 * return. |
| 1853 * Typically, this is the value of | 1853 * Typically, this is the value of |
| 1854 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken | 1854 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken |
| 1855 * returned from the previous call to the | 1855 * returned from the previous call to the |
| 1856 * accounts.filterSets.filteredBids.details.list | 1856 * accounts.filterSets.filteredBids.details.list |
| 1857 * method. | 1857 * method. |
| 1858 * | 1858 * |
| 1859 * [pageSize] - Requested page size. The server may return fewer results than | 1859 * [pageSize] - Requested page size. The server may return fewer results than |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 /** | 1987 /** |
| 1988 * List all reasons for which bids lost in the auction, with the number of | 1988 * List all reasons for which bids lost in the auction, with the number of |
| 1989 * bids that lost for each reason. | 1989 * bids that lost for each reason. |
| 1990 * | 1990 * |
| 1991 * Request parameters: | 1991 * Request parameters: |
| 1992 * | 1992 * |
| 1993 * [accountId] - Account ID of the buyer. | 1993 * [accountId] - Account ID of the buyer. |
| 1994 * | 1994 * |
| 1995 * [filterSetId] - The ID of the filter set to apply. | 1995 * [filterSetId] - The ID of the filter set to apply. |
| 1996 * | 1996 * |
| 1997 * [pageSize] - Requested page size. The server may return fewer results than |
| 1998 * requested. |
| 1999 * If unspecified, the server will pick an appropriate default. |
| 2000 * |
| 1997 * [pageToken] - A token identifying a page of results the server should | 2001 * [pageToken] - A token identifying a page of results the server should |
| 1998 * return. | 2002 * return. |
| 1999 * Typically, this is the value of | 2003 * Typically, this is the value of |
| 2000 * ListLosingBidsResponse.nextPageToken | 2004 * ListLosingBidsResponse.nextPageToken |
| 2001 * returned from the previous call to the | 2005 * returned from the previous call to the |
| 2002 * accounts.filterSets.losingBids.list | 2006 * accounts.filterSets.losingBids.list |
| 2003 * method. | 2007 * method. |
| 2004 * | 2008 * |
| 2005 * [pageSize] - Requested page size. The server may return fewer results than | |
| 2006 * requested. | |
| 2007 * If unspecified, the server will pick an appropriate default. | |
| 2008 * | |
| 2009 * Completes with a [ListLosingBidsResponse]. | 2009 * Completes with a [ListLosingBidsResponse]. |
| 2010 * | 2010 * |
| 2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2012 * error. | 2012 * error. |
| 2013 * | 2013 * |
| 2014 * If the used [http.Client] completes with an error when making a REST call, | 2014 * If the used [http.Client] completes with an error when making a REST call, |
| 2015 * this method will complete with the same error. | 2015 * this method will complete with the same error. |
| 2016 */ | 2016 */ |
| 2017 async.Future<ListLosingBidsResponse> list(core.String accountId, core.String f
ilterSetId, {core.String pageToken, core.int pageSize}) { | 2017 async.Future<ListLosingBidsResponse> list(core.String accountId, core.String f
ilterSetId, {core.int pageSize, core.String pageToken}) { |
| 2018 var _url = null; | 2018 var _url = null; |
| 2019 var _queryParams = new core.Map(); | 2019 var _queryParams = new core.Map(); |
| 2020 var _uploadMedia = null; | 2020 var _uploadMedia = null; |
| 2021 var _uploadOptions = null; | 2021 var _uploadOptions = null; |
| 2022 var _downloadOptions = commons.DownloadOptions.Metadata; | 2022 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2023 var _body = null; | 2023 var _body = null; |
| 2024 | 2024 |
| 2025 if (accountId == null) { | 2025 if (accountId == null) { |
| 2026 throw new core.ArgumentError("Parameter accountId is required."); | 2026 throw new core.ArgumentError("Parameter accountId is required."); |
| 2027 } | 2027 } |
| 2028 if (filterSetId == null) { | 2028 if (filterSetId == null) { |
| 2029 throw new core.ArgumentError("Parameter filterSetId is required."); | 2029 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2030 } | 2030 } |
| 2031 if (pageSize != null) { |
| 2032 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2033 } |
| 2031 if (pageToken != null) { | 2034 if (pageToken != null) { |
| 2032 _queryParams["pageToken"] = [pageToken]; | 2035 _queryParams["pageToken"] = [pageToken]; |
| 2033 } | 2036 } |
| 2034 if (pageSize != null) { | |
| 2035 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 2036 } | |
| 2037 | 2037 |
| 2038 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; | 2038 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; |
| 2039 | 2039 |
| 2040 var _response = _requester.request(_url, | 2040 var _response = _requester.request(_url, |
| 2041 "GET", | 2041 "GET", |
| 2042 body: _body, | 2042 body: _body, |
| 2043 queryParams: _queryParams, | 2043 queryParams: _queryParams, |
| 2044 uploadOptions: _uploadOptions, | 2044 uploadOptions: _uploadOptions, |
| 2045 uploadMedia: _uploadMedia, | 2045 uploadMedia: _uploadMedia, |
| 2046 downloadOptions: _downloadOptions); | 2046 downloadOptions: _downloadOptions); |
| (...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4170 * attribute; see | 4170 * attribute; see |
| 4171 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). | 4171 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). |
| 4172 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see | 4172 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see |
| 4173 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). | 4173 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). |
| 4174 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive | 4174 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive |
| 4175 * category; see | 4175 * category; see |
| 4176 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). | 4176 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). |
| 4177 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product | 4177 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product |
| 4178 * category; see | 4178 * category; see |
| 4179 * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downl
oads/ad-product-categories). | 4179 * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downl
oads/ad-product-categories). |
| 4180 * - "DISAPPROVAL_REASON" : Indicates that the detail ID refers to a |
| 4181 * disapproval reason; see |
| 4182 * DisapprovalReason enum in |
| 4183 * [snippet-status-report-proto](https://developers.google.com/ad-exchange/rtb
/downloads/snippet-status-report-proto). |
| 4180 */ | 4184 */ |
| 4181 core.String detailType; | 4185 core.String detailType; |
| 4182 /** | 4186 /** |
| 4183 * List of rows, with counts of bids with a given creative status aggregated | 4187 * List of rows, with counts of bids with a given creative status aggregated |
| 4184 * by detail. | 4188 * by detail. |
| 4185 */ | 4189 */ |
| 4186 core.List<FilteredBidDetailRow> filteredBidDetailRows; | 4190 core.List<FilteredBidDetailRow> filteredBidDetailRows; |
| 4187 /** | 4191 /** |
| 4188 * A token to retrieve the next page of results. | 4192 * A token to retrieve the next page of results. |
| 4189 * Pass this value in the | 4193 * Pass this value in the |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5206 } | 5210 } |
| 5207 | 5211 |
| 5208 core.Map<core.String, core.Object> toJson() { | 5212 core.Map<core.String, core.Object> toJson() { |
| 5209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5213 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5210 if (topic != null) { | 5214 if (topic != null) { |
| 5211 _json["topic"] = topic; | 5215 _json["topic"] = topic; |
| 5212 } | 5216 } |
| 5213 return _json; | 5217 return _json; |
| 5214 } | 5218 } |
| 5215 } | 5219 } |
| OLD | NEW |