| 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 835 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 | |
| 1055 * requested. | |
| 1056 * If unspecified, server will pick an appropriate default. | |
| 1057 * | |
| 1058 * [query] - An optional query string to filter deal associations. If no | 1048 * [query] - An optional query string to filter deal associations. If no |
| 1059 * filter is | 1049 * filter is |
| 1060 * specified, all associations will be returned. | 1050 * specified, all associations will be returned. |
| 1061 * Supported queries are: | 1051 * Supported queries are: |
| 1062 * <ul> | 1052 * <ul> |
| 1063 * <li>accountId=<i>account_id_string</i> | 1053 * <li>accountId=<i>account_id_string</i> |
| 1064 * <li>creativeId=<i>creative_id_string</i> | 1054 * <li>creativeId=<i>creative_id_string</i> |
| 1065 * <li>dealsId=<i>deals_id_string</i> | 1055 * <li>dealsId=<i>deals_id_string</i> |
| 1066 * <li>dealsStatus:{approved, conditionally_approved, disapproved, | 1056 * <li>dealsStatus:{approved, conditionally_approved, disapproved, |
| 1067 * not_checked} | 1057 * not_checked} |
| 1068 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, | 1058 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, |
| 1069 * not_checked} | 1059 * not_checked} |
| 1070 * </ul> | 1060 * </ul> |
| 1071 * Example: 'dealsId=12345 AND dealsStatus:disapproved' | 1061 * Example: 'dealsId=12345 AND dealsStatus:disapproved' |
| 1072 * | 1062 * |
| 1063 * [pageToken] - A token identifying a page of results the server should |
| 1064 * return. |
| 1065 * Typically, this is the value of |
| 1066 * ListDealAssociationsResponse.next_page_token |
| 1067 * returned from the previous call to 'ListDealAssociations' method. |
| 1068 * |
| 1069 * [pageSize] - Requested page size. Server may return fewer associations than |
| 1070 * requested. |
| 1071 * If unspecified, server will pick an appropriate default. |
| 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.String query, core.String pageToken, core.int pageSize})
{ |
| 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 (query != null) { |
| 1096 _queryParams["query"] = [query]; |
| 1097 } |
| 1095 if (pageToken != null) { | 1098 if (pageToken != null) { |
| 1096 _queryParams["pageToken"] = [pageToken]; | 1099 _queryParams["pageToken"] = [pageToken]; |
| 1097 } | 1100 } |
| 1098 if (pageSize != null) { | 1101 if (pageSize != null) { |
| 1099 _queryParams["pageSize"] = ["${pageSize}"]; | 1102 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1100 } | 1103 } |
| 1101 if (query != null) { | |
| 1102 _queryParams["query"] = [query]; | |
| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 | 1167 |
| 1168 | 1168 |
| 1169 class AccountsFilterSetsResourceApi { | 1169 class AccountsFilterSetsResourceApi { |
| 1170 final commons.ApiRequester _requester; | 1170 final commons.ApiRequester _requester; |
| 1171 | 1171 |
| 1172 AccountsFilterSetsBidMetricsResourceApi get bidMetrics => new AccountsFilterSe
tsBidMetricsResourceApi(_requester); | 1172 AccountsFilterSetsBidMetricsResourceApi get bidMetrics => new AccountsFilterSe
tsBidMetricsResourceApi(_requester); |
| 1173 AccountsFilterSetsBidResponseErrorsResourceApi get bidResponseErrors => new Ac
countsFilterSetsBidResponseErrorsResourceApi(_requester); | 1173 AccountsFilterSetsBidResponseErrorsResourceApi get bidResponseErrors => new Ac
countsFilterSetsBidResponseErrorsResourceApi(_requester); |
| 1174 AccountsFilterSetsBidResponsesWithoutBidsResourceApi get bidResponsesWithoutBi
ds => new AccountsFilterSetsBidResponsesWithoutBidsResourceApi(_requester); | 1174 AccountsFilterSetsBidResponsesWithoutBidsResourceApi get bidResponsesWithoutBi
ds => new AccountsFilterSetsBidResponsesWithoutBidsResourceApi(_requester); |
| 1175 AccountsFilterSetsFilteredBidRequestsResourceApi get filteredBidRequests => ne
w AccountsFilterSetsFilteredBidRequestsResourceApi(_requester); | 1175 AccountsFilterSetsFilteredBidRequestsResourceApi get filteredBidRequests => ne
w AccountsFilterSetsFilteredBidRequestsResourceApi(_requester); |
| 1176 AccountsFilterSetsFilteredBidsResourceApi get filteredBids => new AccountsFilt
erSetsFilteredBidsResourceApi(_requester); | 1176 AccountsFilterSetsFilteredBidsResourceApi get filteredBids => new AccountsFilt
erSetsFilteredBidsResourceApi(_requester); |
| 1177 AccountsFilterSetsFilteredImpressionsResourceApi get filteredImpressions => ne
w AccountsFilterSetsFilteredImpressionsResourceApi(_requester); | |
| 1178 AccountsFilterSetsImpressionMetricsResourceApi get impressionMetrics => new Ac
countsFilterSetsImpressionMetricsResourceApi(_requester); | 1177 AccountsFilterSetsImpressionMetricsResourceApi get impressionMetrics => new Ac
countsFilterSetsImpressionMetricsResourceApi(_requester); |
| 1179 AccountsFilterSetsLosingBidsResourceApi get losingBids => new AccountsFilterSe
tsLosingBidsResourceApi(_requester); | 1178 AccountsFilterSetsLosingBidsResourceApi get losingBids => new AccountsFilterSe
tsLosingBidsResourceApi(_requester); |
| 1179 AccountsFilterSetsNonBillableWinningBidsResourceApi get nonBillableWinningBids
=> new AccountsFilterSetsNonBillableWinningBidsResourceApi(_requester); |
| 1180 | 1180 |
| 1181 AccountsFilterSetsResourceApi(commons.ApiRequester client) : | 1181 AccountsFilterSetsResourceApi(commons.ApiRequester client) : |
| 1182 _requester = client; | 1182 _requester = client; |
| 1183 | 1183 |
| 1184 /** | 1184 /** |
| 1185 * Creates the specified filter set for the account with the given account ID. | 1185 * Creates the specified filter set for the account with the given account ID. |
| 1186 * | 1186 * |
| 1187 * [request] - The metadata request object. | 1187 * [request] - The metadata request object. |
| 1188 * | 1188 * |
| 1189 * Request parameters: | 1189 * Request parameters: |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 * | 1328 * |
| 1329 * Request parameters: | 1329 * Request parameters: |
| 1330 * | 1330 * |
| 1331 * [accountId] - Account ID of the buyer. | 1331 * [accountId] - Account ID of the buyer. |
| 1332 * | 1332 * |
| 1333 * [pageToken] - A token identifying a page of results the server should | 1333 * [pageToken] - A token identifying a page of results the server should |
| 1334 * return. | 1334 * return. |
| 1335 * Typically, this is the value of | 1335 * Typically, this is the value of |
| 1336 * ListFilterSetsResponse.nextPageToken | 1336 * ListFilterSetsResponse.nextPageToken |
| 1337 * returned from the previous call to the | 1337 * returned from the previous call to the |
| 1338 * accounts.rtbBreakout.filterSets.list | 1338 * accounts.filterSets.list |
| 1339 * method. | 1339 * method. |
| 1340 * | 1340 * |
| 1341 * [pageSize] - Requested page size. The server may return fewer than | 1341 * [pageSize] - Requested page size. The server may return fewer results than |
| 1342 * requested. | 1342 * requested. |
| 1343 * If unspecified, the server will pick an appropriate default. | 1343 * If unspecified, the server will pick an appropriate default. |
| 1344 * | 1344 * |
| 1345 * Completes with a [ListFilterSetsResponse]. | 1345 * Completes with a [ListFilterSetsResponse]. |
| 1346 * | 1346 * |
| 1347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1348 * error. | 1348 * error. |
| 1349 * | 1349 * |
| 1350 * If the used [http.Client] completes with an error when making a REST call, | 1350 * If the used [http.Client] completes with an error when making a REST call, |
| 1351 * this method will complete with the same error. | 1351 * this method will complete with the same error. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1399 * [filterSetId] - The ID of the filter set to apply. | 1399 * [filterSetId] - The ID of the filter set to apply. |
| 1400 * | 1400 * |
| 1401 * [pageToken] - A token identifying a page of results the server should | 1401 * [pageToken] - A token identifying a page of results the server should |
| 1402 * return. | 1402 * return. |
| 1403 * Typically, this is the value of | 1403 * Typically, this is the value of |
| 1404 * ListBidMetricsResponse.nextPageToken | 1404 * ListBidMetricsResponse.nextPageToken |
| 1405 * returned from the previous call to the | 1405 * returned from the previous call to the |
| 1406 * accounts.filterSets.bidMetrics.list | 1406 * accounts.filterSets.bidMetrics.list |
| 1407 * method. | 1407 * method. |
| 1408 * | 1408 * |
| 1409 * [pageSize] - Requested page size. The server may return fewer than | 1409 * [pageSize] - Requested page size. The server may return fewer results than |
| 1410 * requested. | 1410 * requested. |
| 1411 * If unspecified, the server will pick an appropriate default. | 1411 * If unspecified, the server will pick an appropriate default. |
| 1412 * | 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. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 * [filterSetId] - The ID of the filter set to apply. | 1471 * [filterSetId] - The ID of the filter set to apply. |
| 1472 * | 1472 * |
| 1473 * [pageToken] - A token identifying a page of results the server should | 1473 * [pageToken] - A token identifying a page of results the server should |
| 1474 * return. | 1474 * return. |
| 1475 * Typically, this is the value of | 1475 * Typically, this is the value of |
| 1476 * ListBidResponseErrorsResponse.nextPageToken | 1476 * ListBidResponseErrorsResponse.nextPageToken |
| 1477 * returned from the previous call to the | 1477 * returned from the previous call to the |
| 1478 * accounts.filterSets.bidResponseErrors.list | 1478 * accounts.filterSets.bidResponseErrors.list |
| 1479 * method. | 1479 * method. |
| 1480 * | 1480 * |
| 1481 * [pageSize] - Requested page size. The server may return fewer than | 1481 * [pageSize] - Requested page size. The server may return fewer results than |
| 1482 * requested. | 1482 * requested. |
| 1483 * If unspecified, the server will pick an appropriate default. | 1483 * If unspecified, the server will pick an appropriate default. |
| 1484 * | 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. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 * [filterSetId] - The ID of the filter set to apply. | 1543 * [filterSetId] - The ID of the filter set to apply. |
| 1544 * | 1544 * |
| 1545 * [pageToken] - A token identifying a page of results the server should | 1545 * [pageToken] - A token identifying a page of results the server should |
| 1546 * return. | 1546 * return. |
| 1547 * Typically, this is the value of | 1547 * Typically, this is the value of |
| 1548 * ListBidResponsesWithoutBidsResponse.nextPageToken | 1548 * ListBidResponsesWithoutBidsResponse.nextPageToken |
| 1549 * returned from the previous call to the | 1549 * returned from the previous call to the |
| 1550 * accounts.filterSets.bidResponsesWithoutBids.list | 1550 * accounts.filterSets.bidResponsesWithoutBids.list |
| 1551 * method. | 1551 * method. |
| 1552 * | 1552 * |
| 1553 * [pageSize] - Requested page size. The server may return fewer than | 1553 * [pageSize] - Requested page size. The server may return fewer results than |
| 1554 * requested. | 1554 * requested. |
| 1555 * If unspecified, the server will pick an appropriate default. | 1555 * If unspecified, the server will pick an appropriate default. |
| 1556 * | 1556 * |
| 1557 * Completes with a [ListBidResponsesWithoutBidsResponse]. | 1557 * Completes with a [ListBidResponsesWithoutBidsResponse]. |
| 1558 * | 1558 * |
| 1559 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1559 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1560 * error. | 1560 * error. |
| 1561 * | 1561 * |
| 1562 * If the used [http.Client] completes with an error when making a REST call, | 1562 * If the used [http.Client] completes with an error when making a REST call, |
| 1563 * this method will complete with the same error. | 1563 * this method will complete with the same error. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 * [filterSetId] - The ID of the filter set to apply. | 1615 * [filterSetId] - The ID of the filter set to apply. |
| 1616 * | 1616 * |
| 1617 * [pageToken] - A token identifying a page of results the server should | 1617 * [pageToken] - A token identifying a page of results the server should |
| 1618 * return. | 1618 * return. |
| 1619 * Typically, this is the value of | 1619 * Typically, this is the value of |
| 1620 * ListFilteredBidRequestsResponse.nextPageToken | 1620 * ListFilteredBidRequestsResponse.nextPageToken |
| 1621 * returned from the previous call to the | 1621 * returned from the previous call to the |
| 1622 * accounts.filterSets.filteredBidRequests.list | 1622 * accounts.filterSets.filteredBidRequests.list |
| 1623 * method. | 1623 * method. |
| 1624 * | 1624 * |
| 1625 * [pageSize] - Requested page size. The server may return fewer than | 1625 * [pageSize] - Requested page size. The server may return fewer results than |
| 1626 * requested. | 1626 * requested. |
| 1627 * If unspecified, the server will pick an appropriate default. | 1627 * If unspecified, the server will pick an appropriate default. |
| 1628 * | 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. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 /** | 1682 /** |
| 1683 * List all reasons for which bids were filtered, with the number of bids | 1683 * List all reasons for which bids were filtered, with the number of bids |
| 1684 * filtered for each reason. | 1684 * filtered for each reason. |
| 1685 * | 1685 * |
| 1686 * Request parameters: | 1686 * Request parameters: |
| 1687 * | 1687 * |
| 1688 * [accountId] - Account ID of the buyer. | 1688 * [accountId] - Account ID of the buyer. |
| 1689 * | 1689 * |
| 1690 * [filterSetId] - The ID of the filter set to apply. | 1690 * [filterSetId] - The ID of the filter set to apply. |
| 1691 * | 1691 * |
| 1692 * [pageSize] - Requested page size. The server may return fewer results than |
| 1693 * requested. |
| 1694 * If unspecified, the server will pick an appropriate default. |
| 1695 * |
| 1692 * [pageToken] - A token identifying a page of results the server should | 1696 * [pageToken] - A token identifying a page of results the server should |
| 1693 * return. | 1697 * return. |
| 1694 * Typically, this is the value of | 1698 * Typically, this is the value of |
| 1695 * ListFilteredBidsResponse.nextPageToken | 1699 * ListFilteredBidsResponse.nextPageToken |
| 1696 * returned from the previous call to the | 1700 * returned from the previous call to the |
| 1697 * accounts.filterSets.filteredBids.list | 1701 * accounts.filterSets.filteredBids.list |
| 1698 * method. | 1702 * method. |
| 1699 * | 1703 * |
| 1700 * [pageSize] - Requested page size. The server may return fewer than | |
| 1701 * requested. | |
| 1702 * If unspecified, the server will pick an appropriate default. | |
| 1703 * | |
| 1704 * Completes with a [ListFilteredBidsResponse]. | 1704 * Completes with a [ListFilteredBidsResponse]. |
| 1705 * | 1705 * |
| 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1707 * error. | 1707 * error. |
| 1708 * | 1708 * |
| 1709 * If the used [http.Client] completes with an error when making a REST call, | 1709 * If the used [http.Client] completes with an error when making a REST call, |
| 1710 * this method will complete with the same error. | 1710 * this method will complete with the same error. |
| 1711 */ | 1711 */ |
| 1712 async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String
filterSetId, {core.String pageToken, core.int pageSize}) { | 1712 async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String
filterSetId, {core.int pageSize, core.String pageToken}) { |
| 1713 var _url = null; | 1713 var _url = null; |
| 1714 var _queryParams = new core.Map(); | 1714 var _queryParams = new core.Map(); |
| 1715 var _uploadMedia = null; | 1715 var _uploadMedia = null; |
| 1716 var _uploadOptions = null; | 1716 var _uploadOptions = null; |
| 1717 var _downloadOptions = commons.DownloadOptions.Metadata; | 1717 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1718 var _body = null; | 1718 var _body = null; |
| 1719 | 1719 |
| 1720 if (accountId == null) { | 1720 if (accountId == null) { |
| 1721 throw new core.ArgumentError("Parameter accountId is required."); | 1721 throw new core.ArgumentError("Parameter accountId is required."); |
| 1722 } | 1722 } |
| 1723 if (filterSetId == null) { | 1723 if (filterSetId == null) { |
| 1724 throw new core.ArgumentError("Parameter filterSetId is required."); | 1724 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1725 } | 1725 } |
| 1726 if (pageSize != null) { |
| 1727 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1728 } |
| 1726 if (pageToken != null) { | 1729 if (pageToken != null) { |
| 1727 _queryParams["pageToken"] = [pageToken]; | 1730 _queryParams["pageToken"] = [pageToken]; |
| 1728 } | 1731 } |
| 1729 if (pageSize != null) { | |
| 1730 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1731 } | |
| 1732 | 1732 |
| 1733 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; | 1733 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; |
| 1734 | 1734 |
| 1735 var _response = _requester.request(_url, | 1735 var _response = _requester.request(_url, |
| 1736 "GET", | 1736 "GET", |
| 1737 body: _body, | 1737 body: _body, |
| 1738 queryParams: _queryParams, | 1738 queryParams: _queryParams, |
| 1739 uploadOptions: _uploadOptions, | 1739 uploadOptions: _uploadOptions, |
| 1740 uploadMedia: _uploadMedia, | 1740 uploadMedia: _uploadMedia, |
| 1741 downloadOptions: _downloadOptions); | 1741 downloadOptions: _downloadOptions); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1770 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1770 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1771 * | 1771 * |
| 1772 * [pageToken] - A token identifying a page of results the server should | 1772 * [pageToken] - A token identifying a page of results the server should |
| 1773 * return. | 1773 * return. |
| 1774 * Typically, this is the value of | 1774 * Typically, this is the value of |
| 1775 * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken | 1775 * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken |
| 1776 * returned from the previous call to the | 1776 * returned from the previous call to the |
| 1777 * accounts.filterSets.filteredBids.creatives.list | 1777 * accounts.filterSets.filteredBids.creatives.list |
| 1778 * method. | 1778 * method. |
| 1779 * | 1779 * |
| 1780 * [pageSize] - Requested page size. The server may return fewer than | 1780 * [pageSize] - Requested page size. The server may return fewer results than |
| 1781 * requested. | 1781 * requested. |
| 1782 * If unspecified, the server will pick an appropriate default. | 1782 * If unspecified, the server will pick an appropriate default. |
| 1783 * | 1783 * |
| 1784 * Completes with a [ListCreativeStatusBreakdownByCreativeResponse]. | 1784 * Completes with a [ListCreativeStatusBreakdownByCreativeResponse]. |
| 1785 * | 1785 * |
| 1786 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1786 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1787 * error. | 1787 * error. |
| 1788 * | 1788 * |
| 1789 * If the used [http.Client] completes with an error when making a REST call, | 1789 * If the used [http.Client] completes with an error when making a REST call, |
| 1790 * this method will complete with the same error. | 1790 * this method will complete with the same error. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1845 * | 1845 * |
| 1846 * [filterSetId] - The ID of the filter set to apply. | 1846 * [filterSetId] - The ID of the filter set to apply. |
| 1847 * | 1847 * |
| 1848 * [creativeStatusId] - The ID of the creative status for which to retrieve a | 1848 * [creativeStatusId] - The ID of the creative status for which to retrieve a |
| 1849 * breakdown by detail. | 1849 * breakdown by detail. |
| 1850 * See | 1850 * See |
| 1851 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1851 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1852 * | 1852 * |
| 1853 * [creativeId] - The creative ID for which to retrieve a breakdown by detail. | 1853 * [creativeId] - The creative ID for which to retrieve a breakdown by detail. |
| 1854 * | 1854 * |
| 1855 * [pageSize] - Requested page size. The server may return fewer than | |
| 1856 * requested. | |
| 1857 * If unspecified, the server will pick an appropriate default. | |
| 1858 * | |
| 1859 * [pageToken] - A token identifying a page of results the server should | 1855 * [pageToken] - A token identifying a page of results the server should |
| 1860 * return. | 1856 * return. |
| 1861 * Typically, this is the value of | 1857 * Typically, this is the value of |
| 1862 * ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken | 1858 * ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken |
| 1863 * returned from the previous call to the | 1859 * returned from the previous call to the |
| 1864 * accounts.filterSets.filteredBids.creatives.details.list | 1860 * accounts.filterSets.filteredBids.creatives.details.list |
| 1865 * method. | 1861 * method. |
| 1866 * | 1862 * |
| 1863 * [pageSize] - Requested page size. The server may return fewer results than |
| 1864 * requested. |
| 1865 * If unspecified, the server will pick an appropriate default. |
| 1866 * |
| 1867 * Completes with a [ListCreativeStatusAndCreativeBreakdownByDetailResponse]. | 1867 * Completes with a [ListCreativeStatusAndCreativeBreakdownByDetailResponse]. |
| 1868 * | 1868 * |
| 1869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1870 * error. | 1870 * error. |
| 1871 * | 1871 * |
| 1872 * If the used [http.Client] completes with an error when making a REST call, | 1872 * If the used [http.Client] completes with an error when making a REST call, |
| 1873 * this method will complete with the same error. | 1873 * this method will complete with the same error. |
| 1874 */ | 1874 */ |
| 1875 async.Future<ListCreativeStatusAndCreativeBreakdownByDetailResponse> list(core
.String accountId, core.String filterSetId, core.int creativeStatusId, core.Stri
ng creativeId, {core.int pageSize, core.String pageToken}) { | 1875 async.Future<ListCreativeStatusAndCreativeBreakdownByDetailResponse> list(core
.String accountId, core.String filterSetId, core.int creativeStatusId, core.Stri
ng creativeId, {core.String pageToken, core.int pageSize}) { |
| 1876 var _url = null; | 1876 var _url = null; |
| 1877 var _queryParams = new core.Map(); | 1877 var _queryParams = new core.Map(); |
| 1878 var _uploadMedia = null; | 1878 var _uploadMedia = null; |
| 1879 var _uploadOptions = null; | 1879 var _uploadOptions = null; |
| 1880 var _downloadOptions = commons.DownloadOptions.Metadata; | 1880 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1881 var _body = null; | 1881 var _body = null; |
| 1882 | 1882 |
| 1883 if (accountId == null) { | 1883 if (accountId == null) { |
| 1884 throw new core.ArgumentError("Parameter accountId is required."); | 1884 throw new core.ArgumentError("Parameter accountId is required."); |
| 1885 } | 1885 } |
| 1886 if (filterSetId == null) { | 1886 if (filterSetId == null) { |
| 1887 throw new core.ArgumentError("Parameter filterSetId is required."); | 1887 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1888 } | 1888 } |
| 1889 if (creativeStatusId == null) { | 1889 if (creativeStatusId == null) { |
| 1890 throw new core.ArgumentError("Parameter creativeStatusId is required."); | 1890 throw new core.ArgumentError("Parameter creativeStatusId is required."); |
| 1891 } | 1891 } |
| 1892 if (creativeId == null) { | 1892 if (creativeId == null) { |
| 1893 throw new core.ArgumentError("Parameter creativeId is required."); | 1893 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1894 } | 1894 } |
| 1895 if (pageToken != null) { |
| 1896 _queryParams["pageToken"] = [pageToken]; |
| 1897 } |
| 1895 if (pageSize != null) { | 1898 if (pageSize != null) { |
| 1896 _queryParams["pageSize"] = ["${pageSize}"]; | 1899 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1897 } | 1900 } |
| 1898 if (pageToken != null) { | |
| 1899 _queryParams["pageToken"] = [pageToken]; | |
| 1900 } | |
| 1901 | 1901 |
| 1902 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives/' + commons.
Escaper.ecapeVariable('$creativeId') + '/details'; | 1902 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives/' + commons.
Escaper.ecapeVariable('$creativeId') + '/details'; |
| 1903 | 1903 |
| 1904 var _response = _requester.request(_url, | 1904 var _response = _requester.request(_url, |
| 1905 "GET", | 1905 "GET", |
| 1906 body: _body, | 1906 body: _body, |
| 1907 queryParams: _queryParams, | 1907 queryParams: _queryParams, |
| 1908 uploadOptions: _uploadOptions, | 1908 uploadOptions: _uploadOptions, |
| 1909 uploadMedia: _uploadMedia, | 1909 uploadMedia: _uploadMedia, |
| 1910 downloadOptions: _downloadOptions); | 1910 downloadOptions: _downloadOptions); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1936 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1936 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1937 * | 1937 * |
| 1938 * [pageToken] - A token identifying a page of results the server should | 1938 * [pageToken] - A token identifying a page of results the server should |
| 1939 * return. | 1939 * return. |
| 1940 * Typically, this is the value of | 1940 * Typically, this is the value of |
| 1941 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken | 1941 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken |
| 1942 * returned from the previous call to the | 1942 * returned from the previous call to the |
| 1943 * accounts.filterSets.filteredBids.details.list | 1943 * accounts.filterSets.filteredBids.details.list |
| 1944 * method. | 1944 * method. |
| 1945 * | 1945 * |
| 1946 * [pageSize] - Requested page size. The server may return fewer than | 1946 * [pageSize] - Requested page size. The server may return fewer results than |
| 1947 * requested. | 1947 * requested. |
| 1948 * If unspecified, the server will pick an appropriate default. | 1948 * If unspecified, the server will pick an appropriate default. |
| 1949 * | 1949 * |
| 1950 * Completes with a [ListCreativeStatusBreakdownByDetailResponse]. | 1950 * Completes with a [ListCreativeStatusBreakdownByDetailResponse]. |
| 1951 * | 1951 * |
| 1952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1953 * error. | 1953 * error. |
| 1954 * | 1954 * |
| 1955 * If the used [http.Client] completes with an error when making a REST call, | 1955 * If the used [http.Client] completes with an error when making a REST call, |
| 1956 * this method will complete with the same error. | 1956 * this method will complete with the same error. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1987 queryParams: _queryParams, | 1987 queryParams: _queryParams, |
| 1988 uploadOptions: _uploadOptions, | 1988 uploadOptions: _uploadOptions, |
| 1989 uploadMedia: _uploadMedia, | 1989 uploadMedia: _uploadMedia, |
| 1990 downloadOptions: _downloadOptions); | 1990 downloadOptions: _downloadOptions); |
| 1991 return _response.then((data) => new ListCreativeStatusBreakdownByDetailRespo
nse.fromJson(data)); | 1991 return _response.then((data) => new ListCreativeStatusBreakdownByDetailRespo
nse.fromJson(data)); |
| 1992 } | 1992 } |
| 1993 | 1993 |
| 1994 } | 1994 } |
| 1995 | 1995 |
| 1996 | 1996 |
| 1997 class AccountsFilterSetsFilteredImpressionsResourceApi { | 1997 class AccountsFilterSetsImpressionMetricsResourceApi { |
| 1998 final commons.ApiRequester _requester; | 1998 final commons.ApiRequester _requester; |
| 1999 | 1999 |
| 2000 AccountsFilterSetsFilteredImpressionsResourceApi(commons.ApiRequester client)
: | 2000 AccountsFilterSetsImpressionMetricsResourceApi(commons.ApiRequester client) : |
| 2001 _requester = client; | 2001 _requester = client; |
| 2002 | 2002 |
| 2003 /** | 2003 /** |
| 2004 * List all reasons that caused an impression to be filtered (i.e. not | 2004 * Lists all metrics that are measured in terms of number of impressions. |
| 2005 * considered as an inventory match), with the number of impressions that were | |
| 2006 * filtered for each reason. | |
| 2007 * | 2005 * |
| 2008 * Request parameters: | 2006 * Request parameters: |
| 2009 * | 2007 * |
| 2010 * [accountId] - Account ID of the buyer. | 2008 * [accountId] - Account ID of the buyer. |
| 2011 * | 2009 * |
| 2012 * [filterSetId] - The ID of the filter set to apply. | 2010 * [filterSetId] - The ID of the filter set to apply. |
| 2013 * | 2011 * |
| 2014 * [pageToken] - A token identifying a page of results the server should | 2012 * [pageToken] - A token identifying a page of results the server should |
| 2015 * return. | 2013 * return. |
| 2016 * Typically, this is the value of | 2014 * Typically, this is the value of |
| 2017 * ListFilteredImpressionsResponse.nextPageToken | 2015 * ListImpressionMetricsResponse.nextPageToken |
| 2018 * returned from the previous call to the | 2016 * returned from the previous call to the |
| 2019 * accounts.filterSets.filteredImpressions.list | 2017 * accounts.filterSets.impressionMetrics.list |
| 2020 * method. | 2018 * method. |
| 2021 * | 2019 * |
| 2022 * [pageSize] - Requested page size. The server may return fewer than | 2020 * [pageSize] - Requested page size. The server may return fewer results than |
| 2023 * requested. | 2021 * requested. |
| 2024 * If unspecified, the server will pick an appropriate default. | 2022 * If unspecified, the server will pick an appropriate default. |
| 2025 * | 2023 * |
| 2026 * Completes with a [ListFilteredImpressionsResponse]. | 2024 * Completes with a [ListImpressionMetricsResponse]. |
| 2027 * | 2025 * |
| 2028 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2026 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2029 * error. | 2027 * error. |
| 2030 * | 2028 * |
| 2031 * If the used [http.Client] completes with an error when making a REST call, | 2029 * If the used [http.Client] completes with an error when making a REST call, |
| 2032 * this method will complete with the same error. | 2030 * this method will complete with the same error. |
| 2033 */ | 2031 */ |
| 2034 async.Future<ListFilteredImpressionsResponse> list(core.String accountId, core
.String filterSetId, {core.String pageToken, core.int pageSize}) { | 2032 async.Future<ListImpressionMetricsResponse> list(core.String accountId, core.S
tring filterSetId, {core.String pageToken, core.int pageSize}) { |
| 2035 var _url = null; | 2033 var _url = null; |
| 2036 var _queryParams = new core.Map(); | 2034 var _queryParams = new core.Map(); |
| 2037 var _uploadMedia = null; | 2035 var _uploadMedia = null; |
| 2038 var _uploadOptions = null; | 2036 var _uploadOptions = null; |
| 2039 var _downloadOptions = commons.DownloadOptions.Metadata; | 2037 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2040 var _body = null; | 2038 var _body = null; |
| 2041 | 2039 |
| 2042 if (accountId == null) { | 2040 if (accountId == null) { |
| 2043 throw new core.ArgumentError("Parameter accountId is required."); | 2041 throw new core.ArgumentError("Parameter accountId is required."); |
| 2044 } | 2042 } |
| 2045 if (filterSetId == null) { | 2043 if (filterSetId == null) { |
| 2046 throw new core.ArgumentError("Parameter filterSetId is required."); | 2044 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2047 } | 2045 } |
| 2048 if (pageToken != null) { | 2046 if (pageToken != null) { |
| 2049 _queryParams["pageToken"] = [pageToken]; | 2047 _queryParams["pageToken"] = [pageToken]; |
| 2050 } | 2048 } |
| 2051 if (pageSize != null) { | 2049 if (pageSize != null) { |
| 2052 _queryParams["pageSize"] = ["${pageSize}"]; | 2050 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2053 } | 2051 } |
| 2054 | 2052 |
| 2055 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredImpres
sions'; | 2053 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/impressionMetr
ics'; |
| 2056 | 2054 |
| 2057 var _response = _requester.request(_url, | 2055 var _response = _requester.request(_url, |
| 2058 "GET", | 2056 "GET", |
| 2059 body: _body, | 2057 body: _body, |
| 2060 queryParams: _queryParams, | 2058 queryParams: _queryParams, |
| 2061 uploadOptions: _uploadOptions, | 2059 uploadOptions: _uploadOptions, |
| 2062 uploadMedia: _uploadMedia, | 2060 uploadMedia: _uploadMedia, |
| 2063 downloadOptions: _downloadOptions); | 2061 downloadOptions: _downloadOptions); |
| 2064 return _response.then((data) => new ListFilteredImpressionsResponse.fromJson
(data)); | 2062 return _response.then((data) => new ListImpressionMetricsResponse.fromJson(d
ata)); |
| 2065 } | 2063 } |
| 2066 | 2064 |
| 2067 } | 2065 } |
| 2068 | 2066 |
| 2069 | 2067 |
| 2070 class AccountsFilterSetsImpressionMetricsResourceApi { | 2068 class AccountsFilterSetsLosingBidsResourceApi { |
| 2071 final commons.ApiRequester _requester; | 2069 final commons.ApiRequester _requester; |
| 2072 | 2070 |
| 2073 AccountsFilterSetsImpressionMetricsResourceApi(commons.ApiRequester client) : | 2071 AccountsFilterSetsLosingBidsResourceApi(commons.ApiRequester client) : |
| 2074 _requester = client; | 2072 _requester = client; |
| 2075 | 2073 |
| 2076 /** | 2074 /** |
| 2077 * Lists all metrics that are measured in terms of number of impressions. | 2075 * List all reasons for which bids lost in the auction, with the number of |
| 2076 * bids that lost for each reason. |
| 2078 * | 2077 * |
| 2079 * Request parameters: | 2078 * Request parameters: |
| 2080 * | 2079 * |
| 2081 * [accountId] - Account ID of the buyer. | 2080 * [accountId] - Account ID of the buyer. |
| 2082 * | 2081 * |
| 2083 * [filterSetId] - The ID of the filter set to apply. | 2082 * [filterSetId] - The ID of the filter set to apply. |
| 2084 * | 2083 * |
| 2085 * [pageToken] - A token identifying a page of results the server should | 2084 * [pageToken] - A token identifying a page of results the server should |
| 2086 * return. | 2085 * return. |
| 2087 * Typically, this is the value of | 2086 * Typically, this is the value of |
| 2088 * ListImpressionMetricsResponse.nextPageToken | 2087 * ListLosingBidsResponse.nextPageToken |
| 2089 * returned from the previous call to the | 2088 * returned from the previous call to the |
| 2090 * accounts.filterSets.impressionMetrics.list | 2089 * accounts.filterSets.losingBids.list |
| 2091 * method. | 2090 * method. |
| 2092 * | 2091 * |
| 2093 * [pageSize] - Requested page size. The server may return fewer than | 2092 * [pageSize] - Requested page size. The server may return fewer results than |
| 2094 * requested. | 2093 * requested. |
| 2095 * If unspecified, the server will pick an appropriate default. | 2094 * If unspecified, the server will pick an appropriate default. |
| 2096 * | 2095 * |
| 2097 * Completes with a [ListImpressionMetricsResponse]. | 2096 * Completes with a [ListLosingBidsResponse]. |
| 2098 * | 2097 * |
| 2099 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2098 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2100 * error. | 2099 * error. |
| 2101 * | 2100 * |
| 2102 * If the used [http.Client] completes with an error when making a REST call, | 2101 * If the used [http.Client] completes with an error when making a REST call, |
| 2103 * this method will complete with the same error. | 2102 * this method will complete with the same error. |
| 2104 */ | 2103 */ |
| 2105 async.Future<ListImpressionMetricsResponse> list(core.String accountId, core.S
tring filterSetId, {core.String pageToken, core.int pageSize}) { | 2104 async.Future<ListLosingBidsResponse> list(core.String accountId, core.String f
ilterSetId, {core.String pageToken, core.int pageSize}) { |
| 2106 var _url = null; | 2105 var _url = null; |
| 2107 var _queryParams = new core.Map(); | 2106 var _queryParams = new core.Map(); |
| 2108 var _uploadMedia = null; | 2107 var _uploadMedia = null; |
| 2109 var _uploadOptions = null; | 2108 var _uploadOptions = null; |
| 2110 var _downloadOptions = commons.DownloadOptions.Metadata; | 2109 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2111 var _body = null; | 2110 var _body = null; |
| 2112 | 2111 |
| 2113 if (accountId == null) { | 2112 if (accountId == null) { |
| 2114 throw new core.ArgumentError("Parameter accountId is required."); | 2113 throw new core.ArgumentError("Parameter accountId is required."); |
| 2115 } | 2114 } |
| 2116 if (filterSetId == null) { | 2115 if (filterSetId == null) { |
| 2117 throw new core.ArgumentError("Parameter filterSetId is required."); | 2116 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2118 } | 2117 } |
| 2119 if (pageToken != null) { | 2118 if (pageToken != null) { |
| 2120 _queryParams["pageToken"] = [pageToken]; | 2119 _queryParams["pageToken"] = [pageToken]; |
| 2121 } | 2120 } |
| 2122 if (pageSize != null) { | 2121 if (pageSize != null) { |
| 2123 _queryParams["pageSize"] = ["${pageSize}"]; | 2122 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2124 } | 2123 } |
| 2125 | 2124 |
| 2126 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/impressionMetr
ics'; | 2125 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; |
| 2127 | 2126 |
| 2128 var _response = _requester.request(_url, | 2127 var _response = _requester.request(_url, |
| 2129 "GET", | 2128 "GET", |
| 2130 body: _body, | 2129 body: _body, |
| 2131 queryParams: _queryParams, | 2130 queryParams: _queryParams, |
| 2132 uploadOptions: _uploadOptions, | 2131 uploadOptions: _uploadOptions, |
| 2133 uploadMedia: _uploadMedia, | 2132 uploadMedia: _uploadMedia, |
| 2134 downloadOptions: _downloadOptions); | 2133 downloadOptions: _downloadOptions); |
| 2135 return _response.then((data) => new ListImpressionMetricsResponse.fromJson(d
ata)); | 2134 return _response.then((data) => new ListLosingBidsResponse.fromJson(data)); |
| 2136 } | 2135 } |
| 2137 | 2136 |
| 2138 } | 2137 } |
| 2139 | 2138 |
| 2140 | 2139 |
| 2141 class AccountsFilterSetsLosingBidsResourceApi { | 2140 class AccountsFilterSetsNonBillableWinningBidsResourceApi { |
| 2142 final commons.ApiRequester _requester; | 2141 final commons.ApiRequester _requester; |
| 2143 | 2142 |
| 2144 AccountsFilterSetsLosingBidsResourceApi(commons.ApiRequester client) : | 2143 AccountsFilterSetsNonBillableWinningBidsResourceApi(commons.ApiRequester clien
t) : |
| 2145 _requester = client; | 2144 _requester = client; |
| 2146 | 2145 |
| 2147 /** | 2146 /** |
| 2148 * List all reasons for which bids lost in the auction, with the number of | 2147 * List all reasons for which winning bids were not billable, with the number |
| 2149 * bids that lost for each reason. | 2148 * of bids not billed for each reason. |
| 2150 * | 2149 * |
| 2151 * Request parameters: | 2150 * Request parameters: |
| 2152 * | 2151 * |
| 2153 * [accountId] - Account ID of the buyer. | 2152 * [accountId] - Account ID of the buyer. |
| 2154 * | 2153 * |
| 2155 * [filterSetId] - The ID of the filter set to apply. | 2154 * [filterSetId] - The ID of the filter set to apply. |
| 2156 * | 2155 * |
| 2157 * [pageToken] - A token identifying a page of results the server should | 2156 * [pageToken] - A token identifying a page of results the server should |
| 2158 * return. | 2157 * return. |
| 2159 * Typically, this is the value of | 2158 * Typically, this is the value of |
| 2160 * ListLosingBidsResponse.nextPageToken | 2159 * ListNonBillableWinningBidsResponse.nextPageToken |
| 2161 * returned from the previous call to the | 2160 * returned from the previous call to the |
| 2162 * accounts.filterSets.losingBids.list | 2161 * accounts.filterSets.nonBillableWinningBids.list |
| 2163 * method. | 2162 * method. |
| 2164 * | 2163 * |
| 2165 * [pageSize] - Requested page size. The server may return fewer than | 2164 * [pageSize] - Requested page size. The server may return fewer results than |
| 2166 * requested. | 2165 * requested. |
| 2167 * If unspecified, the server will pick an appropriate default. | 2166 * If unspecified, the server will pick an appropriate default. |
| 2168 * | 2167 * |
| 2169 * Completes with a [ListLosingBidsResponse]. | 2168 * Completes with a [ListNonBillableWinningBidsResponse]. |
| 2170 * | 2169 * |
| 2171 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2172 * error. | 2171 * error. |
| 2173 * | 2172 * |
| 2174 * If the used [http.Client] completes with an error when making a REST call, | 2173 * If the used [http.Client] completes with an error when making a REST call, |
| 2175 * this method will complete with the same error. | 2174 * this method will complete with the same error. |
| 2176 */ | 2175 */ |
| 2177 async.Future<ListLosingBidsResponse> list(core.String accountId, core.String f
ilterSetId, {core.String pageToken, core.int pageSize}) { | 2176 async.Future<ListNonBillableWinningBidsResponse> list(core.String accountId, c
ore.String filterSetId, {core.String pageToken, core.int pageSize}) { |
| 2178 var _url = null; | 2177 var _url = null; |
| 2179 var _queryParams = new core.Map(); | 2178 var _queryParams = new core.Map(); |
| 2180 var _uploadMedia = null; | 2179 var _uploadMedia = null; |
| 2181 var _uploadOptions = null; | 2180 var _uploadOptions = null; |
| 2182 var _downloadOptions = commons.DownloadOptions.Metadata; | 2181 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2183 var _body = null; | 2182 var _body = null; |
| 2184 | 2183 |
| 2185 if (accountId == null) { | 2184 if (accountId == null) { |
| 2186 throw new core.ArgumentError("Parameter accountId is required."); | 2185 throw new core.ArgumentError("Parameter accountId is required."); |
| 2187 } | 2186 } |
| 2188 if (filterSetId == null) { | 2187 if (filterSetId == null) { |
| 2189 throw new core.ArgumentError("Parameter filterSetId is required."); | 2188 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2190 } | 2189 } |
| 2191 if (pageToken != null) { | 2190 if (pageToken != null) { |
| 2192 _queryParams["pageToken"] = [pageToken]; | 2191 _queryParams["pageToken"] = [pageToken]; |
| 2193 } | 2192 } |
| 2194 if (pageSize != null) { | 2193 if (pageSize != null) { |
| 2195 _queryParams["pageSize"] = ["${pageSize}"]; | 2194 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2196 } | 2195 } |
| 2197 | 2196 |
| 2198 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; | 2197 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/nonBillableWin
ningBids'; |
| 2199 | 2198 |
| 2200 var _response = _requester.request(_url, | 2199 var _response = _requester.request(_url, |
| 2201 "GET", | 2200 "GET", |
| 2202 body: _body, | 2201 body: _body, |
| 2203 queryParams: _queryParams, | 2202 queryParams: _queryParams, |
| 2204 uploadOptions: _uploadOptions, | 2203 uploadOptions: _uploadOptions, |
| 2205 uploadMedia: _uploadMedia, | 2204 uploadMedia: _uploadMedia, |
| 2206 downloadOptions: _downloadOptions); | 2205 downloadOptions: _downloadOptions); |
| 2207 return _response.then((data) => new ListLosingBidsResponse.fromJson(data)); | 2206 return _response.then((data) => new ListNonBillableWinningBidsResponse.fromJ
son(data)); |
| 2208 } | 2207 } |
| 2209 | 2208 |
| 2210 } | 2209 } |
| 2211 | 2210 |
| 2212 | 2211 |
| 2213 | 2212 |
| 2214 /** | 2213 /** |
| 2215 * An absolute date range, specified by its start date and end date. | 2214 * An absolute date range, specified by its start date and end date. |
| 2216 * The supported range of dates begins 30 days before today and ends today. | 2215 * The supported range of dates begins 30 days before today and ends today. |
| 2217 * Validity checked upon filter set creation. If a filter set with an absolute | 2216 * Validity checked upon filter set creation. If a filter set with an absolute |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2329 class BidMetricsRow { | 2328 class BidMetricsRow { |
| 2330 /** The number of bids that Ad Exchange received from the buyer. */ | 2329 /** The number of bids that Ad Exchange received from the buyer. */ |
| 2331 MetricValue bids; | 2330 MetricValue bids; |
| 2332 /** The number of bids that were permitted to compete in the auction. */ | 2331 /** The number of bids that were permitted to compete in the auction. */ |
| 2333 MetricValue bidsInAuction; | 2332 MetricValue bidsInAuction; |
| 2334 /** The number of bids for which the buyer was billed. */ | 2333 /** The number of bids for which the buyer was billed. */ |
| 2335 MetricValue billedImpressions; | 2334 MetricValue billedImpressions; |
| 2336 /** The number of bids that won an impression. */ | 2335 /** The number of bids that won an impression. */ |
| 2337 MetricValue impressionsWon; | 2336 MetricValue impressionsWon; |
| 2338 /** | 2337 /** |
| 2338 * The number of bids for which the corresponding impression was measurable |
| 2339 * for viewability (as defined by Active View). |
| 2340 */ |
| 2341 MetricValue measurableImpressions; |
| 2342 /** |
| 2339 * The values of all dimensions associated with metric values in this row. | 2343 * The values of all dimensions associated with metric values in this row. |
| 2340 */ | 2344 */ |
| 2341 RowDimensions rowDimensions; | 2345 RowDimensions rowDimensions; |
| 2342 /** | 2346 /** |
| 2343 * The number of bids for which the corresponding impression was viewable (as | 2347 * The number of bids for which the corresponding impression was viewable (as |
| 2344 * defined by Active View). | 2348 * defined by Active View). |
| 2345 */ | 2349 */ |
| 2346 MetricValue viewableImpressions; | 2350 MetricValue viewableImpressions; |
| 2347 | 2351 |
| 2348 BidMetricsRow(); | 2352 BidMetricsRow(); |
| 2349 | 2353 |
| 2350 BidMetricsRow.fromJson(core.Map _json) { | 2354 BidMetricsRow.fromJson(core.Map _json) { |
| 2351 if (_json.containsKey("bids")) { | 2355 if (_json.containsKey("bids")) { |
| 2352 bids = new MetricValue.fromJson(_json["bids"]); | 2356 bids = new MetricValue.fromJson(_json["bids"]); |
| 2353 } | 2357 } |
| 2354 if (_json.containsKey("bidsInAuction")) { | 2358 if (_json.containsKey("bidsInAuction")) { |
| 2355 bidsInAuction = new MetricValue.fromJson(_json["bidsInAuction"]); | 2359 bidsInAuction = new MetricValue.fromJson(_json["bidsInAuction"]); |
| 2356 } | 2360 } |
| 2357 if (_json.containsKey("billedImpressions")) { | 2361 if (_json.containsKey("billedImpressions")) { |
| 2358 billedImpressions = new MetricValue.fromJson(_json["billedImpressions"]); | 2362 billedImpressions = new MetricValue.fromJson(_json["billedImpressions"]); |
| 2359 } | 2363 } |
| 2360 if (_json.containsKey("impressionsWon")) { | 2364 if (_json.containsKey("impressionsWon")) { |
| 2361 impressionsWon = new MetricValue.fromJson(_json["impressionsWon"]); | 2365 impressionsWon = new MetricValue.fromJson(_json["impressionsWon"]); |
| 2362 } | 2366 } |
| 2367 if (_json.containsKey("measurableImpressions")) { |
| 2368 measurableImpressions = new MetricValue.fromJson(_json["measurableImpressi
ons"]); |
| 2369 } |
| 2363 if (_json.containsKey("rowDimensions")) { | 2370 if (_json.containsKey("rowDimensions")) { |
| 2364 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 2371 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2365 } | 2372 } |
| 2366 if (_json.containsKey("viewableImpressions")) { | 2373 if (_json.containsKey("viewableImpressions")) { |
| 2367 viewableImpressions = new MetricValue.fromJson(_json["viewableImpressions"
]); | 2374 viewableImpressions = new MetricValue.fromJson(_json["viewableImpressions"
]); |
| 2368 } | 2375 } |
| 2369 } | 2376 } |
| 2370 | 2377 |
| 2371 core.Map<core.String, core.Object> toJson() { | 2378 core.Map<core.String, core.Object> toJson() { |
| 2372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2379 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2373 if (bids != null) { | 2380 if (bids != null) { |
| 2374 _json["bids"] = (bids).toJson(); | 2381 _json["bids"] = (bids).toJson(); |
| 2375 } | 2382 } |
| 2376 if (bidsInAuction != null) { | 2383 if (bidsInAuction != null) { |
| 2377 _json["bidsInAuction"] = (bidsInAuction).toJson(); | 2384 _json["bidsInAuction"] = (bidsInAuction).toJson(); |
| 2378 } | 2385 } |
| 2379 if (billedImpressions != null) { | 2386 if (billedImpressions != null) { |
| 2380 _json["billedImpressions"] = (billedImpressions).toJson(); | 2387 _json["billedImpressions"] = (billedImpressions).toJson(); |
| 2381 } | 2388 } |
| 2382 if (impressionsWon != null) { | 2389 if (impressionsWon != null) { |
| 2383 _json["impressionsWon"] = (impressionsWon).toJson(); | 2390 _json["impressionsWon"] = (impressionsWon).toJson(); |
| 2384 } | 2391 } |
| 2392 if (measurableImpressions != null) { |
| 2393 _json["measurableImpressions"] = (measurableImpressions).toJson(); |
| 2394 } |
| 2385 if (rowDimensions != null) { | 2395 if (rowDimensions != null) { |
| 2386 _json["rowDimensions"] = (rowDimensions).toJson(); | 2396 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2387 } | 2397 } |
| 2388 if (viewableImpressions != null) { | 2398 if (viewableImpressions != null) { |
| 2389 _json["viewableImpressions"] = (viewableImpressions).toJson(); | 2399 _json["viewableImpressions"] = (viewableImpressions).toJson(); |
| 2390 } | 2400 } |
| 2391 return _json; | 2401 return _json; |
| 2392 } | 2402 } |
| 2393 } | 2403 } |
| 2394 | 2404 |
| 2395 /** | 2405 /** |
| 2396 * The number of impressions with the specified dimension values that were | 2406 * The number of impressions with the specified dimension values that were |
| 2397 * considered to have no applicable bids, as described by the specified status. | 2407 * considered to have no applicable bids, as described by the specified status. |
| 2398 */ | 2408 */ |
| 2399 class BidResponseWithoutBidsStatusRow { | 2409 class BidResponseWithoutBidsStatusRow { |
| 2400 /** | 2410 /** |
| 2401 * The number of impressions for which there was a bid response with the | 2411 * The number of impressions for which there was a bid response with the |
| 2402 * specified status. | 2412 * specified status. |
| 2403 */ | 2413 */ |
| 2404 MetricValue impressionCount; | 2414 MetricValue impressionCount; |
| 2405 /** | 2415 /** |
| 2406 * The values of all dimensions associated with metric values in this row. | 2416 * The values of all dimensions associated with metric values in this row. |
| 2407 */ | 2417 */ |
| 2408 RowDimensions rowDimensions; | 2418 RowDimensions rowDimensions; |
| 2409 /** | 2419 /** |
| 2410 * The status that caused the bid response to be considered to have no | 2420 * The status specifying why the bid responses were considered to have no |
| 2411 * applicable bids. | 2421 * applicable bids. |
| 2412 * Possible string values are: | 2422 * Possible string values are: |
| 2413 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. | 2423 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. |
| 2414 * This value will never be returned in responses. | 2424 * This value will never be returned in responses. |
| 2415 * - "RESPONSES_WITHOUT_BIDS" : The response had no bids. | 2425 * - "RESPONSES_WITHOUT_BIDS" : The response had no bids. |
| 2416 * - "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" : The response had no bids for the | 2426 * - "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" : The response had no bids for the |
| 2417 * specified account, though it may have | 2427 * specified account, though it may have |
| 2418 * included bids on behalf of other accounts. | 2428 * included bids on behalf of other accounts. |
| 2419 * - "RESPONSES_WITHOUT_BIDS_FOR_DEAL" : The response had no bids for the | 2429 * - "RESPONSES_WITHOUT_BIDS_FOR_DEAL" : The response had no bids for the |
| 2420 * specified deal, though it may have | 2430 * specified deal, though it may have |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3950 _json["rowDimensions"] = (rowDimensions).toJson(); | 3960 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3951 } | 3961 } |
| 3952 if (successfulResponses != null) { | 3962 if (successfulResponses != null) { |
| 3953 _json["successfulResponses"] = (successfulResponses).toJson(); | 3963 _json["successfulResponses"] = (successfulResponses).toJson(); |
| 3954 } | 3964 } |
| 3955 return _json; | 3965 return _json; |
| 3956 } | 3966 } |
| 3957 } | 3967 } |
| 3958 | 3968 |
| 3959 /** | 3969 /** |
| 3960 * The number of impressions with the specified dimension values that were | |
| 3961 * filtered due to the specified filtering status. | |
| 3962 */ | |
| 3963 class ImpressionStatusRow { | |
| 3964 /** | |
| 3965 * The number of impressions that were filtered with the specified status. | |
| 3966 */ | |
| 3967 MetricValue impressionCount; | |
| 3968 /** | |
| 3969 * The values of all dimensions associated with metric values in this row. | |
| 3970 */ | |
| 3971 RowDimensions rowDimensions; | |
| 3972 /** | |
| 3973 * The status for which impressions were filtered. | |
| 3974 * Possible string values are: | |
| 3975 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. | |
| 3976 * This value will never be returned in responses. | |
| 3977 * - "PRETARGETING_CONFIGURATIONS" : The impression was filtered because it | |
| 3978 * did not match the buyer's | |
| 3979 * pretargeting configurations. | |
| 3980 */ | |
| 3981 core.String status; | |
| 3982 | |
| 3983 ImpressionStatusRow(); | |
| 3984 | |
| 3985 ImpressionStatusRow.fromJson(core.Map _json) { | |
| 3986 if (_json.containsKey("impressionCount")) { | |
| 3987 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); | |
| 3988 } | |
| 3989 if (_json.containsKey("rowDimensions")) { | |
| 3990 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | |
| 3991 } | |
| 3992 if (_json.containsKey("status")) { | |
| 3993 status = _json["status"]; | |
| 3994 } | |
| 3995 } | |
| 3996 | |
| 3997 core.Map<core.String, core.Object> toJson() { | |
| 3998 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
| 3999 if (impressionCount != null) { | |
| 4000 _json["impressionCount"] = (impressionCount).toJson(); | |
| 4001 } | |
| 4002 if (rowDimensions != null) { | |
| 4003 _json["rowDimensions"] = (rowDimensions).toJson(); | |
| 4004 } | |
| 4005 if (status != null) { | |
| 4006 _json["status"] = status; | |
| 4007 } | |
| 4008 return _json; | |
| 4009 } | |
| 4010 } | |
| 4011 | |
| 4012 /** | |
| 4013 * Response message for listing the metrics that are measured in number of bids. | 3970 * Response message for listing the metrics that are measured in number of bids. |
| 4014 */ | 3971 */ |
| 4015 class ListBidMetricsResponse { | 3972 class ListBidMetricsResponse { |
| 4016 /** List of rows, each containing a set of bid metrics. */ | 3973 /** List of rows, each containing a set of bid metrics. */ |
| 4017 core.List<BidMetricsRow> bidMetricsRows; | 3974 core.List<BidMetricsRow> bidMetricsRows; |
| 4018 /** | 3975 /** |
| 4019 * A token to retrieve the next page of results. | 3976 * A token to retrieve the next page of results. |
| 4020 * Pass this value in the | 3977 * Pass this value in the |
| 4021 * ListBidMetricsRequest.pageToken | 3978 * ListBidMetricsRequest.pageToken |
| 4022 * field in the subsequent call to the | 3979 * field in the subsequent call to the |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4609 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); | 4566 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); |
| 4610 } | 4567 } |
| 4611 if (nextPageToken != null) { | 4568 if (nextPageToken != null) { |
| 4612 _json["nextPageToken"] = nextPageToken; | 4569 _json["nextPageToken"] = nextPageToken; |
| 4613 } | 4570 } |
| 4614 return _json; | 4571 return _json; |
| 4615 } | 4572 } |
| 4616 } | 4573 } |
| 4617 | 4574 |
| 4618 /** | 4575 /** |
| 4619 * Response message for listing all reasons that impressions were filtered (i.e. | |
| 4620 * not considered as an inventory match) for the buyer. | |
| 4621 */ | |
| 4622 class ListFilteredImpressionsResponse { | |
| 4623 /** | |
| 4624 * List of rows, with counts of filtered impressions aggregated by status. | |
| 4625 */ | |
| 4626 core.List<ImpressionStatusRow> impressionsStatusRows; | |
| 4627 /** | |
| 4628 * A token to retrieve the next page of results. | |
| 4629 * Pass this value in the | |
| 4630 * ListFilteredImpressionsRequest.pageToken | |
| 4631 * field in the subsequent call to the | |
| 4632 * accounts.filterSets.filteredImpressions.list | |
| 4633 * method to retrieve the next page of results. | |
| 4634 */ | |
| 4635 core.String nextPageToken; | |
| 4636 | |
| 4637 ListFilteredImpressionsResponse(); | |
| 4638 | |
| 4639 ListFilteredImpressionsResponse.fromJson(core.Map _json) { | |
| 4640 if (_json.containsKey("impressionsStatusRows")) { | |
| 4641 impressionsStatusRows = _json["impressionsStatusRows"].map((value) => new
ImpressionStatusRow.fromJson(value)).toList(); | |
| 4642 } | |
| 4643 if (_json.containsKey("nextPageToken")) { | |
| 4644 nextPageToken = _json["nextPageToken"]; | |
| 4645 } | |
| 4646 } | |
| 4647 | |
| 4648 core.Map<core.String, core.Object> toJson() { | |
| 4649 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
| 4650 if (impressionsStatusRows != null) { | |
| 4651 _json["impressionsStatusRows"] = impressionsStatusRows.map((value) => (val
ue).toJson()).toList(); | |
| 4652 } | |
| 4653 if (nextPageToken != null) { | |
| 4654 _json["nextPageToken"] = nextPageToken; | |
| 4655 } | |
| 4656 return _json; | |
| 4657 } | |
| 4658 } | |
| 4659 | |
| 4660 /** | |
| 4661 * Response message for listing the metrics that are measured in number of | 4576 * Response message for listing the metrics that are measured in number of |
| 4662 * impressions. | 4577 * impressions. |
| 4663 */ | 4578 */ |
| 4664 class ListImpressionMetricsResponse { | 4579 class ListImpressionMetricsResponse { |
| 4665 /** List of rows, each containing a set of impression metrics. */ | 4580 /** List of rows, each containing a set of impression metrics. */ |
| 4666 core.List<ImpressionMetricsRow> impressionMetricsRows; | 4581 core.List<ImpressionMetricsRow> impressionMetricsRows; |
| 4667 /** | 4582 /** |
| 4668 * A token to retrieve the next page of results. | 4583 * A token to retrieve the next page of results. |
| 4669 * Pass this value in the | 4584 * Pass this value in the |
| 4670 * ListImpressionMetricsRequest.pageToken | 4585 * ListImpressionMetricsRequest.pageToken |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4730 if (creativeStatusRows != null) { | 4645 if (creativeStatusRows != null) { |
| 4731 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); | 4646 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); |
| 4732 } | 4647 } |
| 4733 if (nextPageToken != null) { | 4648 if (nextPageToken != null) { |
| 4734 _json["nextPageToken"] = nextPageToken; | 4649 _json["nextPageToken"] = nextPageToken; |
| 4735 } | 4650 } |
| 4736 return _json; | 4651 return _json; |
| 4737 } | 4652 } |
| 4738 } | 4653 } |
| 4739 | 4654 |
| 4655 /** |
| 4656 * Response message for listing all reasons for which a buyer was not billed for |
| 4657 * a winning bid. |
| 4658 */ |
| 4659 class ListNonBillableWinningBidsResponse { |
| 4660 /** |
| 4661 * A token to retrieve the next page of results. |
| 4662 * Pass this value in the |
| 4663 * ListNonBillableWinningBidsRequest.pageToken |
| 4664 * field in the subsequent call to the |
| 4665 * accounts.filterSets.nonBillableWinningBids.list |
| 4666 * method to retrieve the next page of results. |
| 4667 */ |
| 4668 core.String nextPageToken; |
| 4669 /** List of rows, with counts of bids not billed aggregated by reason. */ |
| 4670 core.List<NonBillableWinningBidStatusRow> nonBillableWinningBidStatusRows; |
| 4671 |
| 4672 ListNonBillableWinningBidsResponse(); |
| 4673 |
| 4674 ListNonBillableWinningBidsResponse.fromJson(core.Map _json) { |
| 4675 if (_json.containsKey("nextPageToken")) { |
| 4676 nextPageToken = _json["nextPageToken"]; |
| 4677 } |
| 4678 if (_json.containsKey("nonBillableWinningBidStatusRows")) { |
| 4679 nonBillableWinningBidStatusRows = _json["nonBillableWinningBidStatusRows"]
.map((value) => new NonBillableWinningBidStatusRow.fromJson(value)).toList(); |
| 4680 } |
| 4681 } |
| 4682 |
| 4683 core.Map<core.String, core.Object> toJson() { |
| 4684 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4685 if (nextPageToken != null) { |
| 4686 _json["nextPageToken"] = nextPageToken; |
| 4687 } |
| 4688 if (nonBillableWinningBidStatusRows != null) { |
| 4689 _json["nonBillableWinningBidStatusRows"] = nonBillableWinningBidStatusRows
.map((value) => (value).toJson()).toList(); |
| 4690 } |
| 4691 return _json; |
| 4692 } |
| 4693 } |
| 4694 |
| 4740 /** @OutputOnly The Geo criteria the restriction applies to. */ | 4695 /** @OutputOnly The Geo criteria the restriction applies to. */ |
| 4741 class LocationContext { | 4696 class LocationContext { |
| 4742 /** | 4697 /** |
| 4743 * IDs representing the geo location for this context. | 4698 * IDs representing the geo location for this context. |
| 4744 * Please refer to the | 4699 * Please refer to the |
| 4745 * [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-tab
le.csv) | 4700 * [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-tab
le.csv) |
| 4746 * file for different geo criteria IDs. | 4701 * file for different geo criteria IDs. |
| 4747 */ | 4702 */ |
| 4748 core.List<core.int> geoCriteriaIds; | 4703 core.List<core.int> geoCriteriaIds; |
| 4749 | 4704 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4919 if (storeUrl != null) { | 4874 if (storeUrl != null) { |
| 4920 _json["storeUrl"] = storeUrl; | 4875 _json["storeUrl"] = storeUrl; |
| 4921 } | 4876 } |
| 4922 if (videoUrl != null) { | 4877 if (videoUrl != null) { |
| 4923 _json["videoUrl"] = videoUrl; | 4878 _json["videoUrl"] = videoUrl; |
| 4924 } | 4879 } |
| 4925 return _json; | 4880 return _json; |
| 4926 } | 4881 } |
| 4927 } | 4882 } |
| 4928 | 4883 |
| 4884 /** |
| 4885 * The number of winning bids with the specified dimension values for which the |
| 4886 * buyer was not billed, as described by the specified status. |
| 4887 */ |
| 4888 class NonBillableWinningBidStatusRow { |
| 4889 /** The number of bids with the specified status. */ |
| 4890 MetricValue bidCount; |
| 4891 /** |
| 4892 * The values of all dimensions associated with metric values in this row. |
| 4893 */ |
| 4894 RowDimensions rowDimensions; |
| 4895 /** |
| 4896 * The status specifying why the winning bids were not billed. |
| 4897 * Possible string values are: |
| 4898 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. |
| 4899 * This value will never be returned in responses. |
| 4900 * - "AD_NOT_RENDERED" : The buyer was not billed because the ad was not |
| 4901 * rendered by the |
| 4902 * publisher. |
| 4903 * - "INVALID_IMPRESSION" : The buyer was not billed because the impression |
| 4904 * won by the bid was |
| 4905 * determined to be invalid. |
| 4906 */ |
| 4907 core.String status; |
| 4908 |
| 4909 NonBillableWinningBidStatusRow(); |
| 4910 |
| 4911 NonBillableWinningBidStatusRow.fromJson(core.Map _json) { |
| 4912 if (_json.containsKey("bidCount")) { |
| 4913 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 4914 } |
| 4915 if (_json.containsKey("rowDimensions")) { |
| 4916 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 4917 } |
| 4918 if (_json.containsKey("status")) { |
| 4919 status = _json["status"]; |
| 4920 } |
| 4921 } |
| 4922 |
| 4923 core.Map<core.String, core.Object> toJson() { |
| 4924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4925 if (bidCount != null) { |
| 4926 _json["bidCount"] = (bidCount).toJson(); |
| 4927 } |
| 4928 if (rowDimensions != null) { |
| 4929 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 4930 } |
| 4931 if (status != null) { |
| 4932 _json["status"] = status; |
| 4933 } |
| 4934 return _json; |
| 4935 } |
| 4936 } |
| 4937 |
| 4929 /** @OutputOnly The type of platform the restriction applies to. */ | 4938 /** @OutputOnly The type of platform the restriction applies to. */ |
| 4930 class PlatformContext { | 4939 class PlatformContext { |
| 4931 /** The platforms this restriction applies to. */ | 4940 /** The platforms this restriction applies to. */ |
| 4932 core.List<core.String> platforms; | 4941 core.List<core.String> platforms; |
| 4933 | 4942 |
| 4934 PlatformContext(); | 4943 PlatformContext(); |
| 4935 | 4944 |
| 4936 PlatformContext.fromJson(core.Map _json) { | 4945 PlatformContext.fromJson(core.Map _json) { |
| 4937 if (_json.containsKey("platforms")) { | 4946 if (_json.containsKey("platforms")) { |
| 4938 platforms = _json["platforms"]; | 4947 platforms = _json["platforms"]; |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5351 } | 5360 } |
| 5352 | 5361 |
| 5353 core.Map<core.String, core.Object> toJson() { | 5362 core.Map<core.String, core.Object> toJson() { |
| 5354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5355 if (topic != null) { | 5364 if (topic != null) { |
| 5356 _json["topic"] = topic; | 5365 _json["topic"] = topic; |
| 5357 } | 5366 } |
| 5358 return _json; | 5367 return _json; |
| 5359 } | 5368 } |
| 5360 } | 5369 } |
| OLD | NEW |