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 20 matching lines...) Expand all Loading... |
31 Adexchangebuyer2Api(http.Client client, {core.String rootUrl: "https://adexcha
ngebuyer.googleapis.com/", core.String servicePath: ""}) : | 31 Adexchangebuyer2Api(http.Client client, {core.String rootUrl: "https://adexcha
ngebuyer.googleapis.com/", core.String servicePath: ""}) : |
32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
33 } | 33 } |
34 | 34 |
35 | 35 |
36 class AccountsResourceApi { | 36 class AccountsResourceApi { |
37 final commons.ApiRequester _requester; | 37 final commons.ApiRequester _requester; |
38 | 38 |
39 AccountsClientsResourceApi get clients => new AccountsClientsResourceApi(_requ
ester); | 39 AccountsClientsResourceApi get clients => new AccountsClientsResourceApi(_requ
ester); |
40 AccountsCreativesResourceApi get creatives => new AccountsCreativesResourceApi
(_requester); | 40 AccountsCreativesResourceApi get creatives => new AccountsCreativesResourceApi
(_requester); |
| 41 AccountsFilterSetsResourceApi get filterSets => new AccountsFilterSetsResource
Api(_requester); |
41 | 42 |
42 AccountsResourceApi(commons.ApiRequester client) : | 43 AccountsResourceApi(commons.ApiRequester client) : |
43 _requester = client; | 44 _requester = client; |
44 } | 45 } |
45 | 46 |
46 | 47 |
47 class AccountsClientsResourceApi { | 48 class AccountsClientsResourceApi { |
48 final commons.ApiRequester _requester; | 49 final commons.ApiRequester _requester; |
49 | 50 |
50 AccountsClientsInvitationsResourceApi get invitations => new AccountsClientsIn
vitationsResourceApi(_requester); | 51 AccountsClientsInvitationsResourceApi get invitations => new AccountsClientsIn
vitationsResourceApi(_requester); |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 * list users for. | 509 * list users for. |
509 * (required) | 510 * (required) |
510 * | 511 * |
511 * [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. |
512 * (required) | 513 * (required) |
513 * You must specify either a string representation of a | 514 * You must specify either a string representation of a |
514 * numerical account identifier or the `-` character | 515 * numerical account identifier or the `-` character |
515 * to list all the client users for all the clients | 516 * to list all the client users for all the clients |
516 * of a given sponsor buyer. | 517 * of a given sponsor buyer. |
517 * | 518 * |
518 * [pageSize] - Requested page size. The server may return fewer clients than | |
519 * requested. | |
520 * If unspecified, the server will pick an appropriate default. | |
521 * | |
522 * [pageToken] - A token identifying a page of results the server should | 519 * [pageToken] - A token identifying a page of results the server should |
523 * return. | 520 * return. |
524 * Typically, this is the value of | 521 * Typically, this is the value of |
525 * ListClientUsersResponse.nextPageToken | 522 * ListClientUsersResponse.nextPageToken |
526 * returned from the previous call to the | 523 * returned from the previous call to the |
527 * accounts.clients.users.list method. | 524 * accounts.clients.users.list method. |
528 * | 525 * |
| 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 * |
529 * Completes with a [ListClientUsersResponse]. | 530 * Completes with a [ListClientUsersResponse]. |
530 * | 531 * |
531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
532 * error. | 533 * error. |
533 * | 534 * |
534 * 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, |
535 * this method will complete with the same error. | 536 * this method will complete with the same error. |
536 */ | 537 */ |
537 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.int pageSize, core.String pageToken}) { | 538 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.String pageToken, core.int pageSize}) { |
538 var _url = null; | 539 var _url = null; |
539 var _queryParams = new core.Map(); | 540 var _queryParams = new core.Map(); |
540 var _uploadMedia = null; | 541 var _uploadMedia = null; |
541 var _uploadOptions = null; | 542 var _uploadOptions = null; |
542 var _downloadOptions = commons.DownloadOptions.Metadata; | 543 var _downloadOptions = commons.DownloadOptions.Metadata; |
543 var _body = null; | 544 var _body = null; |
544 | 545 |
545 if (accountId == null) { | 546 if (accountId == null) { |
546 throw new core.ArgumentError("Parameter accountId is required."); | 547 throw new core.ArgumentError("Parameter accountId is required."); |
547 } | 548 } |
548 if (clientAccountId == null) { | 549 if (clientAccountId == null) { |
549 throw new core.ArgumentError("Parameter clientAccountId is required."); | 550 throw new core.ArgumentError("Parameter clientAccountId is required."); |
550 } | 551 } |
| 552 if (pageToken != null) { |
| 553 _queryParams["pageToken"] = [pageToken]; |
| 554 } |
551 if (pageSize != null) { | 555 if (pageSize != null) { |
552 _queryParams["pageSize"] = ["${pageSize}"]; | 556 _queryParams["pageSize"] = ["${pageSize}"]; |
553 } | 557 } |
554 if (pageToken != null) { | |
555 _queryParams["pageToken"] = [pageToken]; | |
556 } | |
557 | 558 |
558 _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'; |
559 | 560 |
560 var _response = _requester.request(_url, | 561 var _response = _requester.request(_url, |
561 "GET", | 562 "GET", |
562 body: _body, | 563 body: _body, |
563 queryParams: _queryParams, | 564 queryParams: _queryParams, |
564 uploadOptions: _uploadOptions, | 565 uploadOptions: _uploadOptions, |
565 uploadMedia: _uploadMedia, | 566 uploadMedia: _uploadMedia, |
566 downloadOptions: _downloadOptions); | 567 downloadOptions: _downloadOptions); |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 queryParams: _queryParams, | 1159 queryParams: _queryParams, |
1159 uploadOptions: _uploadOptions, | 1160 uploadOptions: _uploadOptions, |
1160 uploadMedia: _uploadMedia, | 1161 uploadMedia: _uploadMedia, |
1161 downloadOptions: _downloadOptions); | 1162 downloadOptions: _downloadOptions); |
1162 return _response.then((data) => new Empty.fromJson(data)); | 1163 return _response.then((data) => new Empty.fromJson(data)); |
1163 } | 1164 } |
1164 | 1165 |
1165 } | 1166 } |
1166 | 1167 |
1167 | 1168 |
| 1169 class AccountsFilterSetsResourceApi { |
| 1170 final commons.ApiRequester _requester; |
| 1171 |
| 1172 AccountsFilterSetsBidMetricsResourceApi get bidMetrics => new AccountsFilterSe
tsBidMetricsResourceApi(_requester); |
| 1173 AccountsFilterSetsBidResponseErrorsResourceApi get bidResponseErrors => new Ac
countsFilterSetsBidResponseErrorsResourceApi(_requester); |
| 1174 AccountsFilterSetsBidResponsesWithoutBidsResourceApi get bidResponsesWithoutBi
ds => new AccountsFilterSetsBidResponsesWithoutBidsResourceApi(_requester); |
| 1175 AccountsFilterSetsFilteredBidRequestsResourceApi get filteredBidRequests => ne
w AccountsFilterSetsFilteredBidRequestsResourceApi(_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); |
| 1179 AccountsFilterSetsLosingBidsResourceApi get losingBids => new AccountsFilterSe
tsLosingBidsResourceApi(_requester); |
| 1180 |
| 1181 AccountsFilterSetsResourceApi(commons.ApiRequester client) : |
| 1182 _requester = client; |
| 1183 |
| 1184 /** |
| 1185 * Creates the specified filter set for the account with the given account ID. |
| 1186 * |
| 1187 * [request] - The metadata request object. |
| 1188 * |
| 1189 * Request parameters: |
| 1190 * |
| 1191 * [accountId] - Account ID of the buyer. |
| 1192 * |
| 1193 * [isTransient] - Whether the filter set is transient, or should be persisted |
| 1194 * indefinitely. |
| 1195 * By default, filter sets are not transient. |
| 1196 * If transient, it will be available for at least 1 hour after creation. |
| 1197 * |
| 1198 * Completes with a [FilterSet]. |
| 1199 * |
| 1200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1201 * error. |
| 1202 * |
| 1203 * If the used [http.Client] completes with an error when making a REST call, |
| 1204 * this method will complete with the same error. |
| 1205 */ |
| 1206 async.Future<FilterSet> create(FilterSet request, core.String accountId, {core
.bool isTransient}) { |
| 1207 var _url = null; |
| 1208 var _queryParams = new core.Map(); |
| 1209 var _uploadMedia = null; |
| 1210 var _uploadOptions = null; |
| 1211 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1212 var _body = null; |
| 1213 |
| 1214 if (request != null) { |
| 1215 _body = convert.JSON.encode((request).toJson()); |
| 1216 } |
| 1217 if (accountId == null) { |
| 1218 throw new core.ArgumentError("Parameter accountId is required."); |
| 1219 } |
| 1220 if (isTransient != null) { |
| 1221 _queryParams["isTransient"] = ["${isTransient}"]; |
| 1222 } |
| 1223 |
| 1224 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets'; |
| 1225 |
| 1226 var _response = _requester.request(_url, |
| 1227 "POST", |
| 1228 body: _body, |
| 1229 queryParams: _queryParams, |
| 1230 uploadOptions: _uploadOptions, |
| 1231 uploadMedia: _uploadMedia, |
| 1232 downloadOptions: _downloadOptions); |
| 1233 return _response.then((data) => new FilterSet.fromJson(data)); |
| 1234 } |
| 1235 |
| 1236 /** |
| 1237 * Deletes the requested filter set from the account with the given account |
| 1238 * ID. |
| 1239 * |
| 1240 * Request parameters: |
| 1241 * |
| 1242 * [accountId] - Account ID of the buyer. |
| 1243 * |
| 1244 * [filterSetId] - The ID of the filter set to delete. |
| 1245 * |
| 1246 * Completes with a [Empty]. |
| 1247 * |
| 1248 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1249 * error. |
| 1250 * |
| 1251 * If the used [http.Client] completes with an error when making a REST call, |
| 1252 * this method will complete with the same error. |
| 1253 */ |
| 1254 async.Future<Empty> delete(core.String accountId, core.String filterSetId) { |
| 1255 var _url = null; |
| 1256 var _queryParams = new core.Map(); |
| 1257 var _uploadMedia = null; |
| 1258 var _uploadOptions = null; |
| 1259 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1260 var _body = null; |
| 1261 |
| 1262 if (accountId == null) { |
| 1263 throw new core.ArgumentError("Parameter accountId is required."); |
| 1264 } |
| 1265 if (filterSetId == null) { |
| 1266 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1267 } |
| 1268 |
| 1269 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId'); |
| 1270 |
| 1271 var _response = _requester.request(_url, |
| 1272 "DELETE", |
| 1273 body: _body, |
| 1274 queryParams: _queryParams, |
| 1275 uploadOptions: _uploadOptions, |
| 1276 uploadMedia: _uploadMedia, |
| 1277 downloadOptions: _downloadOptions); |
| 1278 return _response.then((data) => new Empty.fromJson(data)); |
| 1279 } |
| 1280 |
| 1281 /** |
| 1282 * Retrieves the requested filter set for the account with the given account |
| 1283 * ID. |
| 1284 * |
| 1285 * Request parameters: |
| 1286 * |
| 1287 * [accountId] - Account ID of the buyer. |
| 1288 * |
| 1289 * [filterSetId] - The ID of the filter set to get. |
| 1290 * |
| 1291 * Completes with a [FilterSet]. |
| 1292 * |
| 1293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1294 * error. |
| 1295 * |
| 1296 * If the used [http.Client] completes with an error when making a REST call, |
| 1297 * this method will complete with the same error. |
| 1298 */ |
| 1299 async.Future<FilterSet> get(core.String accountId, core.String filterSetId) { |
| 1300 var _url = null; |
| 1301 var _queryParams = new core.Map(); |
| 1302 var _uploadMedia = null; |
| 1303 var _uploadOptions = null; |
| 1304 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1305 var _body = null; |
| 1306 |
| 1307 if (accountId == null) { |
| 1308 throw new core.ArgumentError("Parameter accountId is required."); |
| 1309 } |
| 1310 if (filterSetId == null) { |
| 1311 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1312 } |
| 1313 |
| 1314 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId'); |
| 1315 |
| 1316 var _response = _requester.request(_url, |
| 1317 "GET", |
| 1318 body: _body, |
| 1319 queryParams: _queryParams, |
| 1320 uploadOptions: _uploadOptions, |
| 1321 uploadMedia: _uploadMedia, |
| 1322 downloadOptions: _downloadOptions); |
| 1323 return _response.then((data) => new FilterSet.fromJson(data)); |
| 1324 } |
| 1325 |
| 1326 /** |
| 1327 * Lists all filter sets for the account with the given account ID. |
| 1328 * |
| 1329 * Request parameters: |
| 1330 * |
| 1331 * [accountId] - Account ID of the buyer. |
| 1332 * |
| 1333 * [pageToken] - A token identifying a page of results the server should |
| 1334 * return. |
| 1335 * Typically, this is the value of |
| 1336 * ListFilterSetsResponse.nextPageToken |
| 1337 * returned from the previous call to the |
| 1338 * accounts.rtbBreakout.filterSets.list |
| 1339 * method. |
| 1340 * |
| 1341 * [pageSize] - Requested page size. The server may return fewer than |
| 1342 * requested. |
| 1343 * If unspecified, the server will pick an appropriate default. |
| 1344 * |
| 1345 * Completes with a [ListFilterSetsResponse]. |
| 1346 * |
| 1347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1348 * error. |
| 1349 * |
| 1350 * If the used [http.Client] completes with an error when making a REST call, |
| 1351 * this method will complete with the same error. |
| 1352 */ |
| 1353 async.Future<ListFilterSetsResponse> list(core.String accountId, {core.String
pageToken, core.int pageSize}) { |
| 1354 var _url = null; |
| 1355 var _queryParams = new core.Map(); |
| 1356 var _uploadMedia = null; |
| 1357 var _uploadOptions = null; |
| 1358 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1359 var _body = null; |
| 1360 |
| 1361 if (accountId == null) { |
| 1362 throw new core.ArgumentError("Parameter accountId is required."); |
| 1363 } |
| 1364 if (pageToken != null) { |
| 1365 _queryParams["pageToken"] = [pageToken]; |
| 1366 } |
| 1367 if (pageSize != null) { |
| 1368 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1369 } |
| 1370 |
| 1371 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets'; |
| 1372 |
| 1373 var _response = _requester.request(_url, |
| 1374 "GET", |
| 1375 body: _body, |
| 1376 queryParams: _queryParams, |
| 1377 uploadOptions: _uploadOptions, |
| 1378 uploadMedia: _uploadMedia, |
| 1379 downloadOptions: _downloadOptions); |
| 1380 return _response.then((data) => new ListFilterSetsResponse.fromJson(data)); |
| 1381 } |
| 1382 |
| 1383 } |
| 1384 |
| 1385 |
| 1386 class AccountsFilterSetsBidMetricsResourceApi { |
| 1387 final commons.ApiRequester _requester; |
| 1388 |
| 1389 AccountsFilterSetsBidMetricsResourceApi(commons.ApiRequester client) : |
| 1390 _requester = client; |
| 1391 |
| 1392 /** |
| 1393 * Lists all metrics that are measured in terms of number of bids. |
| 1394 * |
| 1395 * Request parameters: |
| 1396 * |
| 1397 * [accountId] - Account ID of the buyer. |
| 1398 * |
| 1399 * [filterSetId] - The ID of the filter set to apply. |
| 1400 * |
| 1401 * [pageToken] - A token identifying a page of results the server should |
| 1402 * return. |
| 1403 * Typically, this is the value of |
| 1404 * ListBidMetricsResponse.nextPageToken |
| 1405 * returned from the previous call to the |
| 1406 * accounts.filterSets.bidMetrics.list |
| 1407 * method. |
| 1408 * |
| 1409 * [pageSize] - Requested page size. The server may return fewer than |
| 1410 * requested. |
| 1411 * If unspecified, the server will pick an appropriate default. |
| 1412 * |
| 1413 * Completes with a [ListBidMetricsResponse]. |
| 1414 * |
| 1415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1416 * error. |
| 1417 * |
| 1418 * If the used [http.Client] completes with an error when making a REST call, |
| 1419 * this method will complete with the same error. |
| 1420 */ |
| 1421 async.Future<ListBidMetricsResponse> list(core.String accountId, core.String f
ilterSetId, {core.String pageToken, core.int pageSize}) { |
| 1422 var _url = null; |
| 1423 var _queryParams = new core.Map(); |
| 1424 var _uploadMedia = null; |
| 1425 var _uploadOptions = null; |
| 1426 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1427 var _body = null; |
| 1428 |
| 1429 if (accountId == null) { |
| 1430 throw new core.ArgumentError("Parameter accountId is required."); |
| 1431 } |
| 1432 if (filterSetId == null) { |
| 1433 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1434 } |
| 1435 if (pageToken != null) { |
| 1436 _queryParams["pageToken"] = [pageToken]; |
| 1437 } |
| 1438 if (pageSize != null) { |
| 1439 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1440 } |
| 1441 |
| 1442 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidMetrics'; |
| 1443 |
| 1444 var _response = _requester.request(_url, |
| 1445 "GET", |
| 1446 body: _body, |
| 1447 queryParams: _queryParams, |
| 1448 uploadOptions: _uploadOptions, |
| 1449 uploadMedia: _uploadMedia, |
| 1450 downloadOptions: _downloadOptions); |
| 1451 return _response.then((data) => new ListBidMetricsResponse.fromJson(data)); |
| 1452 } |
| 1453 |
| 1454 } |
| 1455 |
| 1456 |
| 1457 class AccountsFilterSetsBidResponseErrorsResourceApi { |
| 1458 final commons.ApiRequester _requester; |
| 1459 |
| 1460 AccountsFilterSetsBidResponseErrorsResourceApi(commons.ApiRequester client) : |
| 1461 _requester = client; |
| 1462 |
| 1463 /** |
| 1464 * List all errors that occurred in bid responses, with the number of bid |
| 1465 * responses affected for each reason. |
| 1466 * |
| 1467 * Request parameters: |
| 1468 * |
| 1469 * [accountId] - Account ID of the buyer. |
| 1470 * |
| 1471 * [filterSetId] - The ID of the filter set to apply. |
| 1472 * |
| 1473 * [pageToken] - A token identifying a page of results the server should |
| 1474 * return. |
| 1475 * Typically, this is the value of |
| 1476 * ListBidResponseErrorsResponse.nextPageToken |
| 1477 * returned from the previous call to the |
| 1478 * accounts.filterSets.bidResponseErrors.list |
| 1479 * method. |
| 1480 * |
| 1481 * [pageSize] - Requested page size. The server may return fewer than |
| 1482 * requested. |
| 1483 * If unspecified, the server will pick an appropriate default. |
| 1484 * |
| 1485 * Completes with a [ListBidResponseErrorsResponse]. |
| 1486 * |
| 1487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1488 * error. |
| 1489 * |
| 1490 * If the used [http.Client] completes with an error when making a REST call, |
| 1491 * this method will complete with the same error. |
| 1492 */ |
| 1493 async.Future<ListBidResponseErrorsResponse> list(core.String accountId, core.S
tring filterSetId, {core.String pageToken, core.int pageSize}) { |
| 1494 var _url = null; |
| 1495 var _queryParams = new core.Map(); |
| 1496 var _uploadMedia = null; |
| 1497 var _uploadOptions = null; |
| 1498 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1499 var _body = null; |
| 1500 |
| 1501 if (accountId == null) { |
| 1502 throw new core.ArgumentError("Parameter accountId is required."); |
| 1503 } |
| 1504 if (filterSetId == null) { |
| 1505 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1506 } |
| 1507 if (pageToken != null) { |
| 1508 _queryParams["pageToken"] = [pageToken]; |
| 1509 } |
| 1510 if (pageSize != null) { |
| 1511 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1512 } |
| 1513 |
| 1514 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponseErr
ors'; |
| 1515 |
| 1516 var _response = _requester.request(_url, |
| 1517 "GET", |
| 1518 body: _body, |
| 1519 queryParams: _queryParams, |
| 1520 uploadOptions: _uploadOptions, |
| 1521 uploadMedia: _uploadMedia, |
| 1522 downloadOptions: _downloadOptions); |
| 1523 return _response.then((data) => new ListBidResponseErrorsResponse.fromJson(d
ata)); |
| 1524 } |
| 1525 |
| 1526 } |
| 1527 |
| 1528 |
| 1529 class AccountsFilterSetsBidResponsesWithoutBidsResourceApi { |
| 1530 final commons.ApiRequester _requester; |
| 1531 |
| 1532 AccountsFilterSetsBidResponsesWithoutBidsResourceApi(commons.ApiRequester clie
nt) : |
| 1533 _requester = client; |
| 1534 |
| 1535 /** |
| 1536 * List all reasons for which bid responses were considered to have no |
| 1537 * applicable bids, with the number of bid responses affected for each reason. |
| 1538 * |
| 1539 * Request parameters: |
| 1540 * |
| 1541 * [accountId] - Account ID of the buyer. |
| 1542 * |
| 1543 * [filterSetId] - The ID of the filter set to apply. |
| 1544 * |
| 1545 * [pageToken] - A token identifying a page of results the server should |
| 1546 * return. |
| 1547 * Typically, this is the value of |
| 1548 * ListBidResponsesWithoutBidsResponse.nextPageToken |
| 1549 * returned from the previous call to the |
| 1550 * accounts.filterSets.bidResponsesWithoutBids.list |
| 1551 * method. |
| 1552 * |
| 1553 * [pageSize] - Requested page size. The server may return fewer than |
| 1554 * requested. |
| 1555 * If unspecified, the server will pick an appropriate default. |
| 1556 * |
| 1557 * Completes with a [ListBidResponsesWithoutBidsResponse]. |
| 1558 * |
| 1559 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1560 * error. |
| 1561 * |
| 1562 * If the used [http.Client] completes with an error when making a REST call, |
| 1563 * this method will complete with the same error. |
| 1564 */ |
| 1565 async.Future<ListBidResponsesWithoutBidsResponse> list(core.String accountId,
core.String filterSetId, {core.String pageToken, core.int pageSize}) { |
| 1566 var _url = null; |
| 1567 var _queryParams = new core.Map(); |
| 1568 var _uploadMedia = null; |
| 1569 var _uploadOptions = null; |
| 1570 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1571 var _body = null; |
| 1572 |
| 1573 if (accountId == null) { |
| 1574 throw new core.ArgumentError("Parameter accountId is required."); |
| 1575 } |
| 1576 if (filterSetId == null) { |
| 1577 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1578 } |
| 1579 if (pageToken != null) { |
| 1580 _queryParams["pageToken"] = [pageToken]; |
| 1581 } |
| 1582 if (pageSize != null) { |
| 1583 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1584 } |
| 1585 |
| 1586 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponsesWi
thoutBids'; |
| 1587 |
| 1588 var _response = _requester.request(_url, |
| 1589 "GET", |
| 1590 body: _body, |
| 1591 queryParams: _queryParams, |
| 1592 uploadOptions: _uploadOptions, |
| 1593 uploadMedia: _uploadMedia, |
| 1594 downloadOptions: _downloadOptions); |
| 1595 return _response.then((data) => new ListBidResponsesWithoutBidsResponse.from
Json(data)); |
| 1596 } |
| 1597 |
| 1598 } |
| 1599 |
| 1600 |
| 1601 class AccountsFilterSetsFilteredBidRequestsResourceApi { |
| 1602 final commons.ApiRequester _requester; |
| 1603 |
| 1604 AccountsFilterSetsFilteredBidRequestsResourceApi(commons.ApiRequester client)
: |
| 1605 _requester = client; |
| 1606 |
| 1607 /** |
| 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. |
| 1610 * |
| 1611 * Request parameters: |
| 1612 * |
| 1613 * [accountId] - Account ID of the buyer. |
| 1614 * |
| 1615 * [filterSetId] - The ID of the filter set to apply. |
| 1616 * |
| 1617 * [pageToken] - A token identifying a page of results the server should |
| 1618 * return. |
| 1619 * Typically, this is the value of |
| 1620 * ListFilteredBidRequestsResponse.nextPageToken |
| 1621 * returned from the previous call to the |
| 1622 * accounts.filterSets.filteredBidRequests.list |
| 1623 * method. |
| 1624 * |
| 1625 * [pageSize] - Requested page size. The server may return fewer than |
| 1626 * requested. |
| 1627 * If unspecified, the server will pick an appropriate default. |
| 1628 * |
| 1629 * Completes with a [ListFilteredBidRequestsResponse]. |
| 1630 * |
| 1631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1632 * error. |
| 1633 * |
| 1634 * If the used [http.Client] completes with an error when making a REST call, |
| 1635 * this method will complete with the same error. |
| 1636 */ |
| 1637 async.Future<ListFilteredBidRequestsResponse> list(core.String accountId, core
.String filterSetId, {core.String pageToken, core.int pageSize}) { |
| 1638 var _url = null; |
| 1639 var _queryParams = new core.Map(); |
| 1640 var _uploadMedia = null; |
| 1641 var _uploadOptions = null; |
| 1642 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1643 var _body = null; |
| 1644 |
| 1645 if (accountId == null) { |
| 1646 throw new core.ArgumentError("Parameter accountId is required."); |
| 1647 } |
| 1648 if (filterSetId == null) { |
| 1649 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1650 } |
| 1651 if (pageToken != null) { |
| 1652 _queryParams["pageToken"] = [pageToken]; |
| 1653 } |
| 1654 if (pageSize != null) { |
| 1655 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1656 } |
| 1657 |
| 1658 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBidReq
uests'; |
| 1659 |
| 1660 var _response = _requester.request(_url, |
| 1661 "GET", |
| 1662 body: _body, |
| 1663 queryParams: _queryParams, |
| 1664 uploadOptions: _uploadOptions, |
| 1665 uploadMedia: _uploadMedia, |
| 1666 downloadOptions: _downloadOptions); |
| 1667 return _response.then((data) => new ListFilteredBidRequestsResponse.fromJson
(data)); |
| 1668 } |
| 1669 |
| 1670 } |
| 1671 |
| 1672 |
| 1673 class AccountsFilterSetsFilteredBidsResourceApi { |
| 1674 final commons.ApiRequester _requester; |
| 1675 |
| 1676 AccountsFilterSetsFilteredBidsCreativesResourceApi get creatives => new Accoun
tsFilterSetsFilteredBidsCreativesResourceApi(_requester); |
| 1677 AccountsFilterSetsFilteredBidsDetailsResourceApi get details => new AccountsFi
lterSetsFilteredBidsDetailsResourceApi(_requester); |
| 1678 |
| 1679 AccountsFilterSetsFilteredBidsResourceApi(commons.ApiRequester client) : |
| 1680 _requester = client; |
| 1681 |
| 1682 /** |
| 1683 * List all reasons for which bids were filtered, with the number of bids |
| 1684 * filtered for each reason. |
| 1685 * |
| 1686 * Request parameters: |
| 1687 * |
| 1688 * [accountId] - Account ID of the buyer. |
| 1689 * |
| 1690 * [filterSetId] - The ID of the filter set to apply. |
| 1691 * |
| 1692 * [pageToken] - A token identifying a page of results the server should |
| 1693 * return. |
| 1694 * Typically, this is the value of |
| 1695 * ListFilteredBidsResponse.nextPageToken |
| 1696 * returned from the previous call to the |
| 1697 * accounts.filterSets.filteredBids.list |
| 1698 * method. |
| 1699 * |
| 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]. |
| 1705 * |
| 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1707 * error. |
| 1708 * |
| 1709 * If the used [http.Client] completes with an error when making a REST call, |
| 1710 * this method will complete with the same error. |
| 1711 */ |
| 1712 async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String
filterSetId, {core.String pageToken, core.int pageSize}) { |
| 1713 var _url = null; |
| 1714 var _queryParams = new core.Map(); |
| 1715 var _uploadMedia = null; |
| 1716 var _uploadOptions = null; |
| 1717 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1718 var _body = null; |
| 1719 |
| 1720 if (accountId == null) { |
| 1721 throw new core.ArgumentError("Parameter accountId is required."); |
| 1722 } |
| 1723 if (filterSetId == null) { |
| 1724 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1725 } |
| 1726 if (pageToken != null) { |
| 1727 _queryParams["pageToken"] = [pageToken]; |
| 1728 } |
| 1729 if (pageSize != null) { |
| 1730 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1731 } |
| 1732 |
| 1733 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; |
| 1734 |
| 1735 var _response = _requester.request(_url, |
| 1736 "GET", |
| 1737 body: _body, |
| 1738 queryParams: _queryParams, |
| 1739 uploadOptions: _uploadOptions, |
| 1740 uploadMedia: _uploadMedia, |
| 1741 downloadOptions: _downloadOptions); |
| 1742 return _response.then((data) => new ListFilteredBidsResponse.fromJson(data))
; |
| 1743 } |
| 1744 |
| 1745 } |
| 1746 |
| 1747 |
| 1748 class AccountsFilterSetsFilteredBidsCreativesResourceApi { |
| 1749 final commons.ApiRequester _requester; |
| 1750 |
| 1751 AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi get details => new A
ccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(_requester); |
| 1752 |
| 1753 AccountsFilterSetsFilteredBidsCreativesResourceApi(commons.ApiRequester client
) : |
| 1754 _requester = client; |
| 1755 |
| 1756 /** |
| 1757 * List all creatives associated with a specific reason for which bids were |
| 1758 * filtered, with the number of bids filtered for each creative. |
| 1759 * |
| 1760 * Request parameters: |
| 1761 * |
| 1762 * [accountId] - Account ID of the buyer. |
| 1763 * |
| 1764 * [filterSetId] - The ID of the filter set to apply. |
| 1765 * |
| 1766 * [creativeStatusId] - The ID of the creative status for which to retrieve a |
| 1767 * breakdown by |
| 1768 * creative. |
| 1769 * See |
| 1770 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1771 * |
| 1772 * [pageToken] - A token identifying a page of results the server should |
| 1773 * return. |
| 1774 * Typically, this is the value of |
| 1775 * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken |
| 1776 * returned from the previous call to the |
| 1777 * accounts.filterSets.filteredBids.creatives.list |
| 1778 * method. |
| 1779 * |
| 1780 * [pageSize] - Requested page size. The server may return fewer than |
| 1781 * requested. |
| 1782 * If unspecified, the server will pick an appropriate default. |
| 1783 * |
| 1784 * Completes with a [ListCreativeStatusBreakdownByCreativeResponse]. |
| 1785 * |
| 1786 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1787 * error. |
| 1788 * |
| 1789 * If the used [http.Client] completes with an error when making a REST call, |
| 1790 * this method will complete with the same error. |
| 1791 */ |
| 1792 async.Future<ListCreativeStatusBreakdownByCreativeResponse> list(core.String a
ccountId, core.String filterSetId, core.int creativeStatusId, {core.String pageT
oken, core.int pageSize}) { |
| 1793 var _url = null; |
| 1794 var _queryParams = new core.Map(); |
| 1795 var _uploadMedia = null; |
| 1796 var _uploadOptions = null; |
| 1797 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1798 var _body = null; |
| 1799 |
| 1800 if (accountId == null) { |
| 1801 throw new core.ArgumentError("Parameter accountId is required."); |
| 1802 } |
| 1803 if (filterSetId == null) { |
| 1804 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1805 } |
| 1806 if (creativeStatusId == null) { |
| 1807 throw new core.ArgumentError("Parameter creativeStatusId is required."); |
| 1808 } |
| 1809 if (pageToken != null) { |
| 1810 _queryParams["pageToken"] = [pageToken]; |
| 1811 } |
| 1812 if (pageSize != null) { |
| 1813 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1814 } |
| 1815 |
| 1816 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives'; |
| 1817 |
| 1818 var _response = _requester.request(_url, |
| 1819 "GET", |
| 1820 body: _body, |
| 1821 queryParams: _queryParams, |
| 1822 uploadOptions: _uploadOptions, |
| 1823 uploadMedia: _uploadMedia, |
| 1824 downloadOptions: _downloadOptions); |
| 1825 return _response.then((data) => new ListCreativeStatusBreakdownByCreativeRes
ponse.fromJson(data)); |
| 1826 } |
| 1827 |
| 1828 } |
| 1829 |
| 1830 |
| 1831 class AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi { |
| 1832 final commons.ApiRequester _requester; |
| 1833 |
| 1834 AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(commons.ApiRequester
client) : |
| 1835 _requester = client; |
| 1836 |
| 1837 /** |
| 1838 * List all details associated with a specific reason for which bids were |
| 1839 * filtered and a specific creative that was filtered for that reason, with |
| 1840 * the number of bids filtered for each detail. |
| 1841 * |
| 1842 * Request parameters: |
| 1843 * |
| 1844 * [accountId] - Account ID of the buyer. |
| 1845 * |
| 1846 * [filterSetId] - The ID of the filter set to apply. |
| 1847 * |
| 1848 * [creativeStatusId] - The ID of the creative status for which to retrieve a |
| 1849 * breakdown by detail. |
| 1850 * See |
| 1851 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1852 * |
| 1853 * [creativeId] - The creative ID for which to retrieve a breakdown by detail. |
| 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 |
| 1860 * return. |
| 1861 * Typically, this is the value of |
| 1862 * ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken |
| 1863 * returned from the previous call to the |
| 1864 * accounts.filterSets.filteredBids.creatives.details.list |
| 1865 * method. |
| 1866 * |
| 1867 * Completes with a [ListCreativeStatusAndCreativeBreakdownByDetailResponse]. |
| 1868 * |
| 1869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1870 * error. |
| 1871 * |
| 1872 * If the used [http.Client] completes with an error when making a REST call, |
| 1873 * this method will complete with the same error. |
| 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}) { |
| 1876 var _url = null; |
| 1877 var _queryParams = new core.Map(); |
| 1878 var _uploadMedia = null; |
| 1879 var _uploadOptions = null; |
| 1880 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1881 var _body = null; |
| 1882 |
| 1883 if (accountId == null) { |
| 1884 throw new core.ArgumentError("Parameter accountId is required."); |
| 1885 } |
| 1886 if (filterSetId == null) { |
| 1887 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1888 } |
| 1889 if (creativeStatusId == null) { |
| 1890 throw new core.ArgumentError("Parameter creativeStatusId is required."); |
| 1891 } |
| 1892 if (creativeId == null) { |
| 1893 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1894 } |
| 1895 if (pageSize != null) { |
| 1896 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1897 } |
| 1898 if (pageToken != null) { |
| 1899 _queryParams["pageToken"] = [pageToken]; |
| 1900 } |
| 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'; |
| 1903 |
| 1904 var _response = _requester.request(_url, |
| 1905 "GET", |
| 1906 body: _body, |
| 1907 queryParams: _queryParams, |
| 1908 uploadOptions: _uploadOptions, |
| 1909 uploadMedia: _uploadMedia, |
| 1910 downloadOptions: _downloadOptions); |
| 1911 return _response.then((data) => new ListCreativeStatusAndCreativeBreakdownBy
DetailResponse.fromJson(data)); |
| 1912 } |
| 1913 |
| 1914 } |
| 1915 |
| 1916 |
| 1917 class AccountsFilterSetsFilteredBidsDetailsResourceApi { |
| 1918 final commons.ApiRequester _requester; |
| 1919 |
| 1920 AccountsFilterSetsFilteredBidsDetailsResourceApi(commons.ApiRequester client)
: |
| 1921 _requester = client; |
| 1922 |
| 1923 /** |
| 1924 * List all details associated with a specific reason for which bids were |
| 1925 * filtered, with the number of bids filtered for each detail. |
| 1926 * |
| 1927 * Request parameters: |
| 1928 * |
| 1929 * [accountId] - Account ID of the buyer. |
| 1930 * |
| 1931 * [filterSetId] - The ID of the filter set to apply. |
| 1932 * |
| 1933 * [creativeStatusId] - The ID of the creative status for which to retrieve a |
| 1934 * breakdown by detail. |
| 1935 * See |
| 1936 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1937 * |
| 1938 * [pageToken] - A token identifying a page of results the server should |
| 1939 * return. |
| 1940 * Typically, this is the value of |
| 1941 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken |
| 1942 * returned from the previous call to the |
| 1943 * accounts.filterSets.filteredBids.details.list |
| 1944 * method. |
| 1945 * |
| 1946 * [pageSize] - Requested page size. The server may return fewer than |
| 1947 * requested. |
| 1948 * If unspecified, the server will pick an appropriate default. |
| 1949 * |
| 1950 * Completes with a [ListCreativeStatusBreakdownByDetailResponse]. |
| 1951 * |
| 1952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1953 * error. |
| 1954 * |
| 1955 * If the used [http.Client] completes with an error when making a REST call, |
| 1956 * this method will complete with the same error. |
| 1957 */ |
| 1958 async.Future<ListCreativeStatusBreakdownByDetailResponse> list(core.String acc
ountId, core.String filterSetId, core.int creativeStatusId, {core.String pageTok
en, core.int pageSize}) { |
| 1959 var _url = null; |
| 1960 var _queryParams = new core.Map(); |
| 1961 var _uploadMedia = null; |
| 1962 var _uploadOptions = null; |
| 1963 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1964 var _body = null; |
| 1965 |
| 1966 if (accountId == null) { |
| 1967 throw new core.ArgumentError("Parameter accountId is required."); |
| 1968 } |
| 1969 if (filterSetId == null) { |
| 1970 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1971 } |
| 1972 if (creativeStatusId == null) { |
| 1973 throw new core.ArgumentError("Parameter creativeStatusId is required."); |
| 1974 } |
| 1975 if (pageToken != null) { |
| 1976 _queryParams["pageToken"] = [pageToken]; |
| 1977 } |
| 1978 if (pageSize != null) { |
| 1979 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1980 } |
| 1981 |
| 1982 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/details'; |
| 1983 |
| 1984 var _response = _requester.request(_url, |
| 1985 "GET", |
| 1986 body: _body, |
| 1987 queryParams: _queryParams, |
| 1988 uploadOptions: _uploadOptions, |
| 1989 uploadMedia: _uploadMedia, |
| 1990 downloadOptions: _downloadOptions); |
| 1991 return _response.then((data) => new ListCreativeStatusBreakdownByDetailRespo
nse.fromJson(data)); |
| 1992 } |
| 1993 |
| 1994 } |
| 1995 |
| 1996 |
| 1997 class AccountsFilterSetsFilteredImpressionsResourceApi { |
| 1998 final commons.ApiRequester _requester; |
| 1999 |
| 2000 AccountsFilterSetsFilteredImpressionsResourceApi(commons.ApiRequester client)
: |
| 2001 _requester = client; |
| 2002 |
| 2003 /** |
| 2004 * List all reasons that caused an impression to be filtered (i.e. not |
| 2005 * considered as an inventory match), with the number of impressions that were |
| 2006 * filtered for each reason. |
| 2007 * |
| 2008 * Request parameters: |
| 2009 * |
| 2010 * [accountId] - Account ID of the buyer. |
| 2011 * |
| 2012 * [filterSetId] - The ID of the filter set to apply. |
| 2013 * |
| 2014 * [pageToken] - A token identifying a page of results the server should |
| 2015 * return. |
| 2016 * Typically, this is the value of |
| 2017 * ListFilteredImpressionsResponse.nextPageToken |
| 2018 * returned from the previous call to the |
| 2019 * accounts.filterSets.filteredImpressions.list |
| 2020 * method. |
| 2021 * |
| 2022 * [pageSize] - Requested page size. The server may return fewer than |
| 2023 * requested. |
| 2024 * If unspecified, the server will pick an appropriate default. |
| 2025 * |
| 2026 * Completes with a [ListFilteredImpressionsResponse]. |
| 2027 * |
| 2028 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2029 * error. |
| 2030 * |
| 2031 * If the used [http.Client] completes with an error when making a REST call, |
| 2032 * this method will complete with the same error. |
| 2033 */ |
| 2034 async.Future<ListFilteredImpressionsResponse> list(core.String accountId, core
.String filterSetId, {core.String pageToken, core.int pageSize}) { |
| 2035 var _url = null; |
| 2036 var _queryParams = new core.Map(); |
| 2037 var _uploadMedia = null; |
| 2038 var _uploadOptions = null; |
| 2039 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2040 var _body = null; |
| 2041 |
| 2042 if (accountId == null) { |
| 2043 throw new core.ArgumentError("Parameter accountId is required."); |
| 2044 } |
| 2045 if (filterSetId == null) { |
| 2046 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2047 } |
| 2048 if (pageToken != null) { |
| 2049 _queryParams["pageToken"] = [pageToken]; |
| 2050 } |
| 2051 if (pageSize != null) { |
| 2052 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2053 } |
| 2054 |
| 2055 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredImpres
sions'; |
| 2056 |
| 2057 var _response = _requester.request(_url, |
| 2058 "GET", |
| 2059 body: _body, |
| 2060 queryParams: _queryParams, |
| 2061 uploadOptions: _uploadOptions, |
| 2062 uploadMedia: _uploadMedia, |
| 2063 downloadOptions: _downloadOptions); |
| 2064 return _response.then((data) => new ListFilteredImpressionsResponse.fromJson
(data)); |
| 2065 } |
| 2066 |
| 2067 } |
| 2068 |
| 2069 |
| 2070 class AccountsFilterSetsImpressionMetricsResourceApi { |
| 2071 final commons.ApiRequester _requester; |
| 2072 |
| 2073 AccountsFilterSetsImpressionMetricsResourceApi(commons.ApiRequester client) : |
| 2074 _requester = client; |
| 2075 |
| 2076 /** |
| 2077 * Lists all metrics that are measured in terms of number of impressions. |
| 2078 * |
| 2079 * Request parameters: |
| 2080 * |
| 2081 * [accountId] - Account ID of the buyer. |
| 2082 * |
| 2083 * [filterSetId] - The ID of the filter set to apply. |
| 2084 * |
| 2085 * [pageToken] - A token identifying a page of results the server should |
| 2086 * return. |
| 2087 * Typically, this is the value of |
| 2088 * ListImpressionMetricsResponse.nextPageToken |
| 2089 * returned from the previous call to the |
| 2090 * accounts.filterSets.impressionMetrics.list |
| 2091 * method. |
| 2092 * |
| 2093 * [pageSize] - Requested page size. The server may return fewer than |
| 2094 * requested. |
| 2095 * If unspecified, the server will pick an appropriate default. |
| 2096 * |
| 2097 * Completes with a [ListImpressionMetricsResponse]. |
| 2098 * |
| 2099 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2100 * error. |
| 2101 * |
| 2102 * If the used [http.Client] completes with an error when making a REST call, |
| 2103 * this method will complete with the same error. |
| 2104 */ |
| 2105 async.Future<ListImpressionMetricsResponse> list(core.String accountId, core.S
tring filterSetId, {core.String pageToken, core.int pageSize}) { |
| 2106 var _url = null; |
| 2107 var _queryParams = new core.Map(); |
| 2108 var _uploadMedia = null; |
| 2109 var _uploadOptions = null; |
| 2110 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2111 var _body = null; |
| 2112 |
| 2113 if (accountId == null) { |
| 2114 throw new core.ArgumentError("Parameter accountId is required."); |
| 2115 } |
| 2116 if (filterSetId == null) { |
| 2117 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2118 } |
| 2119 if (pageToken != null) { |
| 2120 _queryParams["pageToken"] = [pageToken]; |
| 2121 } |
| 2122 if (pageSize != null) { |
| 2123 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2124 } |
| 2125 |
| 2126 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/impressionMetr
ics'; |
| 2127 |
| 2128 var _response = _requester.request(_url, |
| 2129 "GET", |
| 2130 body: _body, |
| 2131 queryParams: _queryParams, |
| 2132 uploadOptions: _uploadOptions, |
| 2133 uploadMedia: _uploadMedia, |
| 2134 downloadOptions: _downloadOptions); |
| 2135 return _response.then((data) => new ListImpressionMetricsResponse.fromJson(d
ata)); |
| 2136 } |
| 2137 |
| 2138 } |
| 2139 |
| 2140 |
| 2141 class AccountsFilterSetsLosingBidsResourceApi { |
| 2142 final commons.ApiRequester _requester; |
| 2143 |
| 2144 AccountsFilterSetsLosingBidsResourceApi(commons.ApiRequester client) : |
| 2145 _requester = client; |
| 2146 |
| 2147 /** |
| 2148 * List all reasons for which bids lost in the auction, with the number of |
| 2149 * bids that lost for each reason. |
| 2150 * |
| 2151 * Request parameters: |
| 2152 * |
| 2153 * [accountId] - Account ID of the buyer. |
| 2154 * |
| 2155 * [filterSetId] - The ID of the filter set to apply. |
| 2156 * |
| 2157 * [pageToken] - A token identifying a page of results the server should |
| 2158 * return. |
| 2159 * Typically, this is the value of |
| 2160 * ListLosingBidsResponse.nextPageToken |
| 2161 * returned from the previous call to the |
| 2162 * accounts.filterSets.losingBids.list |
| 2163 * method. |
| 2164 * |
| 2165 * [pageSize] - Requested page size. The server may return fewer than |
| 2166 * requested. |
| 2167 * If unspecified, the server will pick an appropriate default. |
| 2168 * |
| 2169 * Completes with a [ListLosingBidsResponse]. |
| 2170 * |
| 2171 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2172 * error. |
| 2173 * |
| 2174 * If the used [http.Client] completes with an error when making a REST call, |
| 2175 * this method will complete with the same error. |
| 2176 */ |
| 2177 async.Future<ListLosingBidsResponse> list(core.String accountId, core.String f
ilterSetId, {core.String pageToken, core.int pageSize}) { |
| 2178 var _url = null; |
| 2179 var _queryParams = new core.Map(); |
| 2180 var _uploadMedia = null; |
| 2181 var _uploadOptions = null; |
| 2182 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2183 var _body = null; |
| 2184 |
| 2185 if (accountId == null) { |
| 2186 throw new core.ArgumentError("Parameter accountId is required."); |
| 2187 } |
| 2188 if (filterSetId == null) { |
| 2189 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2190 } |
| 2191 if (pageToken != null) { |
| 2192 _queryParams["pageToken"] = [pageToken]; |
| 2193 } |
| 2194 if (pageSize != null) { |
| 2195 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2196 } |
| 2197 |
| 2198 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; |
| 2199 |
| 2200 var _response = _requester.request(_url, |
| 2201 "GET", |
| 2202 body: _body, |
| 2203 queryParams: _queryParams, |
| 2204 uploadOptions: _uploadOptions, |
| 2205 uploadMedia: _uploadMedia, |
| 2206 downloadOptions: _downloadOptions); |
| 2207 return _response.then((data) => new ListLosingBidsResponse.fromJson(data)); |
| 2208 } |
| 2209 |
| 2210 } |
| 2211 |
| 2212 |
| 2213 |
| 2214 /** |
| 2215 * 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. |
| 2217 * Validity checked upon filter set creation. If a filter set with an absolute |
| 2218 * date range is run at a later date more than 30 days after start_date, it will |
| 2219 * fail. |
| 2220 */ |
| 2221 class AbsoluteDateRange { |
| 2222 /** |
| 2223 * The end date of the range (inclusive). |
| 2224 * Must be within the 30 days leading up to current date, and must be equal to |
| 2225 * or after start_date. |
| 2226 */ |
| 2227 Date endDate; |
| 2228 /** |
| 2229 * The start date of the range (inclusive). |
| 2230 * Must be within the 30 days leading up to current date, and must be equal to |
| 2231 * or before end_date. |
| 2232 */ |
| 2233 Date startDate; |
| 2234 |
| 2235 AbsoluteDateRange(); |
| 2236 |
| 2237 AbsoluteDateRange.fromJson(core.Map _json) { |
| 2238 if (_json.containsKey("endDate")) { |
| 2239 endDate = new Date.fromJson(_json["endDate"]); |
| 2240 } |
| 2241 if (_json.containsKey("startDate")) { |
| 2242 startDate = new Date.fromJson(_json["startDate"]); |
| 2243 } |
| 2244 } |
| 2245 |
| 2246 core.Map<core.String, core.Object> toJson() { |
| 2247 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2248 if (endDate != null) { |
| 2249 _json["endDate"] = (endDate).toJson(); |
| 2250 } |
| 2251 if (startDate != null) { |
| 2252 _json["startDate"] = (startDate).toJson(); |
| 2253 } |
| 2254 return _json; |
| 2255 } |
| 2256 } |
1168 | 2257 |
1169 /** A request for associating a deal and a creative. */ | 2258 /** A request for associating a deal and a creative. */ |
1170 class AddDealAssociationRequest { | 2259 class AddDealAssociationRequest { |
1171 /** The association between a creative and a deal that should be added. */ | 2260 /** The association between a creative and a deal that should be added. */ |
1172 CreativeDealAssociation association; | 2261 CreativeDealAssociation association; |
1173 | 2262 |
1174 AddDealAssociationRequest(); | 2263 AddDealAssociationRequest(); |
1175 | 2264 |
1176 AddDealAssociationRequest.fromJson(core.Map _json) { | 2265 AddDealAssociationRequest.fromJson(core.Map _json) { |
1177 if (_json.containsKey("association")) { | 2266 if (_json.containsKey("association")) { |
1178 association = new CreativeDealAssociation.fromJson(_json["association"]); | 2267 association = new CreativeDealAssociation.fromJson(_json["association"]); |
1179 } | 2268 } |
1180 } | 2269 } |
1181 | 2270 |
1182 core.Map toJson() { | 2271 core.Map<core.String, core.Object> toJson() { |
1183 var _json = new core.Map(); | 2272 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1184 if (association != null) { | 2273 if (association != null) { |
1185 _json["association"] = (association).toJson(); | 2274 _json["association"] = (association).toJson(); |
1186 } | 2275 } |
1187 return _json; | 2276 return _json; |
1188 } | 2277 } |
1189 } | 2278 } |
1190 | 2279 |
1191 /** @OutputOnly The app type the restriction applies to for mobile device. */ | 2280 /** @OutputOnly The app type the restriction applies to for mobile device. */ |
1192 class AppContext { | 2281 class AppContext { |
1193 /** The app types this restriction applies to. */ | 2282 /** The app types this restriction applies to. */ |
1194 core.List<core.String> appTypes; | 2283 core.List<core.String> appTypes; |
1195 | 2284 |
1196 AppContext(); | 2285 AppContext(); |
1197 | 2286 |
1198 AppContext.fromJson(core.Map _json) { | 2287 AppContext.fromJson(core.Map _json) { |
1199 if (_json.containsKey("appTypes")) { | 2288 if (_json.containsKey("appTypes")) { |
1200 appTypes = _json["appTypes"]; | 2289 appTypes = _json["appTypes"]; |
1201 } | 2290 } |
1202 } | 2291 } |
1203 | 2292 |
1204 core.Map toJson() { | 2293 core.Map<core.String, core.Object> toJson() { |
1205 var _json = new core.Map(); | 2294 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1206 if (appTypes != null) { | 2295 if (appTypes != null) { |
1207 _json["appTypes"] = appTypes; | 2296 _json["appTypes"] = appTypes; |
1208 } | 2297 } |
1209 return _json; | 2298 return _json; |
1210 } | 2299 } |
1211 } | 2300 } |
1212 | 2301 |
1213 /** @OutputOnly The auction type the restriction applies to. */ | 2302 /** @OutputOnly The auction type the restriction applies to. */ |
1214 class AuctionContext { | 2303 class AuctionContext { |
1215 /** The auction types this restriction applies to. */ | 2304 /** The auction types this restriction applies to. */ |
1216 core.List<core.String> auctionTypes; | 2305 core.List<core.String> auctionTypes; |
1217 | 2306 |
1218 AuctionContext(); | 2307 AuctionContext(); |
1219 | 2308 |
1220 AuctionContext.fromJson(core.Map _json) { | 2309 AuctionContext.fromJson(core.Map _json) { |
1221 if (_json.containsKey("auctionTypes")) { | 2310 if (_json.containsKey("auctionTypes")) { |
1222 auctionTypes = _json["auctionTypes"]; | 2311 auctionTypes = _json["auctionTypes"]; |
1223 } | 2312 } |
1224 } | 2313 } |
1225 | 2314 |
1226 core.Map toJson() { | 2315 core.Map<core.String, core.Object> toJson() { |
1227 var _json = new core.Map(); | 2316 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1228 if (auctionTypes != null) { | 2317 if (auctionTypes != null) { |
1229 _json["auctionTypes"] = auctionTypes; | 2318 _json["auctionTypes"] = auctionTypes; |
1230 } | 2319 } |
1231 return _json; | 2320 return _json; |
1232 } | 2321 } |
1233 } | 2322 } |
1234 | 2323 |
1235 /** | 2324 /** |
| 2325 * The set of metrics that are measured in numbers of bids, representing how |
| 2326 * many bids with the specified dimension values were considered eligible at |
| 2327 * each stage of the bidding funnel; |
| 2328 */ |
| 2329 class BidMetricsRow { |
| 2330 /** The number of bids that Ad Exchange received from the buyer. */ |
| 2331 MetricValue bids; |
| 2332 /** The number of bids that were permitted to compete in the auction. */ |
| 2333 MetricValue bidsInAuction; |
| 2334 /** The number of bids for which the buyer was billed. */ |
| 2335 MetricValue billedImpressions; |
| 2336 /** The number of bids that won an impression. */ |
| 2337 MetricValue impressionsWon; |
| 2338 /** |
| 2339 * The values of all dimensions associated with metric values in this row. |
| 2340 */ |
| 2341 RowDimensions rowDimensions; |
| 2342 /** |
| 2343 * The number of bids for which the corresponding impression was viewable (as |
| 2344 * defined by Active View). |
| 2345 */ |
| 2346 MetricValue viewableImpressions; |
| 2347 |
| 2348 BidMetricsRow(); |
| 2349 |
| 2350 BidMetricsRow.fromJson(core.Map _json) { |
| 2351 if (_json.containsKey("bids")) { |
| 2352 bids = new MetricValue.fromJson(_json["bids"]); |
| 2353 } |
| 2354 if (_json.containsKey("bidsInAuction")) { |
| 2355 bidsInAuction = new MetricValue.fromJson(_json["bidsInAuction"]); |
| 2356 } |
| 2357 if (_json.containsKey("billedImpressions")) { |
| 2358 billedImpressions = new MetricValue.fromJson(_json["billedImpressions"]); |
| 2359 } |
| 2360 if (_json.containsKey("impressionsWon")) { |
| 2361 impressionsWon = new MetricValue.fromJson(_json["impressionsWon"]); |
| 2362 } |
| 2363 if (_json.containsKey("rowDimensions")) { |
| 2364 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2365 } |
| 2366 if (_json.containsKey("viewableImpressions")) { |
| 2367 viewableImpressions = new MetricValue.fromJson(_json["viewableImpressions"
]); |
| 2368 } |
| 2369 } |
| 2370 |
| 2371 core.Map<core.String, core.Object> toJson() { |
| 2372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2373 if (bids != null) { |
| 2374 _json["bids"] = (bids).toJson(); |
| 2375 } |
| 2376 if (bidsInAuction != null) { |
| 2377 _json["bidsInAuction"] = (bidsInAuction).toJson(); |
| 2378 } |
| 2379 if (billedImpressions != null) { |
| 2380 _json["billedImpressions"] = (billedImpressions).toJson(); |
| 2381 } |
| 2382 if (impressionsWon != null) { |
| 2383 _json["impressionsWon"] = (impressionsWon).toJson(); |
| 2384 } |
| 2385 if (rowDimensions != null) { |
| 2386 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2387 } |
| 2388 if (viewableImpressions != null) { |
| 2389 _json["viewableImpressions"] = (viewableImpressions).toJson(); |
| 2390 } |
| 2391 return _json; |
| 2392 } |
| 2393 } |
| 2394 |
| 2395 /** |
| 2396 * The number of impressions with the specified dimension values that were |
| 2397 * considered to have no applicable bids, as described by the specified status. |
| 2398 */ |
| 2399 class BidResponseWithoutBidsStatusRow { |
| 2400 /** |
| 2401 * The number of impressions for which there was a bid response with the |
| 2402 * specified status. |
| 2403 */ |
| 2404 MetricValue impressionCount; |
| 2405 /** |
| 2406 * The values of all dimensions associated with metric values in this row. |
| 2407 */ |
| 2408 RowDimensions rowDimensions; |
| 2409 /** |
| 2410 * The status that caused the bid response to be considered to have no |
| 2411 * applicable bids. |
| 2412 * Possible string values are: |
| 2413 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. |
| 2414 * This value will never be returned in responses. |
| 2415 * - "RESPONSES_WITHOUT_BIDS" : The response had no bids. |
| 2416 * - "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" : The response had no bids for the |
| 2417 * specified account, though it may have |
| 2418 * included bids on behalf of other accounts. |
| 2419 * - "RESPONSES_WITHOUT_BIDS_FOR_DEAL" : The response had no bids for the |
| 2420 * specified deal, though it may have |
| 2421 * included bids on other deals on behalf of the account to which the deal |
| 2422 * belongs. |
| 2423 */ |
| 2424 core.String status; |
| 2425 |
| 2426 BidResponseWithoutBidsStatusRow(); |
| 2427 |
| 2428 BidResponseWithoutBidsStatusRow.fromJson(core.Map _json) { |
| 2429 if (_json.containsKey("impressionCount")) { |
| 2430 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); |
| 2431 } |
| 2432 if (_json.containsKey("rowDimensions")) { |
| 2433 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2434 } |
| 2435 if (_json.containsKey("status")) { |
| 2436 status = _json["status"]; |
| 2437 } |
| 2438 } |
| 2439 |
| 2440 core.Map<core.String, core.Object> toJson() { |
| 2441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2442 if (impressionCount != null) { |
| 2443 _json["impressionCount"] = (impressionCount).toJson(); |
| 2444 } |
| 2445 if (rowDimensions != null) { |
| 2446 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2447 } |
| 2448 if (status != null) { |
| 2449 _json["status"] = status; |
| 2450 } |
| 2451 return _json; |
| 2452 } |
| 2453 } |
| 2454 |
| 2455 /** |
| 2456 * The number of impressions with the specified dimension values where the |
| 2457 * corresponding bid request or bid response was not successful, as described by |
| 2458 * the specified callout status. |
| 2459 */ |
| 2460 class CalloutStatusRow { |
| 2461 /** |
| 2462 * The ID of the callout status. |
| 2463 * See |
| 2464 * [callout-status-codes](https://developers.google.com/ad-exchange/rtb/downlo
ads/callout-status-codes). |
| 2465 */ |
| 2466 core.int calloutStatusId; |
| 2467 /** |
| 2468 * The number of impressions for which there was a bid request or bid response |
| 2469 * with the specified callout status. |
| 2470 */ |
| 2471 MetricValue impressionCount; |
| 2472 /** |
| 2473 * The values of all dimensions associated with metric values in this row. |
| 2474 */ |
| 2475 RowDimensions rowDimensions; |
| 2476 |
| 2477 CalloutStatusRow(); |
| 2478 |
| 2479 CalloutStatusRow.fromJson(core.Map _json) { |
| 2480 if (_json.containsKey("calloutStatusId")) { |
| 2481 calloutStatusId = _json["calloutStatusId"]; |
| 2482 } |
| 2483 if (_json.containsKey("impressionCount")) { |
| 2484 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); |
| 2485 } |
| 2486 if (_json.containsKey("rowDimensions")) { |
| 2487 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2488 } |
| 2489 } |
| 2490 |
| 2491 core.Map<core.String, core.Object> toJson() { |
| 2492 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2493 if (calloutStatusId != null) { |
| 2494 _json["calloutStatusId"] = calloutStatusId; |
| 2495 } |
| 2496 if (impressionCount != null) { |
| 2497 _json["impressionCount"] = (impressionCount).toJson(); |
| 2498 } |
| 2499 if (rowDimensions != null) { |
| 2500 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2501 } |
| 2502 return _json; |
| 2503 } |
| 2504 } |
| 2505 |
| 2506 /** |
1236 * A client resource represents a client buyer—an agency, | 2507 * A client resource represents a client buyer—an agency, |
1237 * a brand, or an advertiser customer of the sponsor buyer. | 2508 * a brand, or an advertiser customer of the sponsor buyer. |
1238 * Users associated with the client buyer have restricted access to | 2509 * Users associated with the client buyer have restricted access to |
1239 * the Ad Exchange Marketplace and certain other sections | 2510 * the Ad Exchange Marketplace and certain other sections |
1240 * of the Ad Exchange Buyer UI based on the role | 2511 * of the Ad Exchange Buyer UI based on the role |
1241 * granted to the client buyer. | 2512 * granted to the client buyer. |
1242 * All fields are required unless otherwise specified. | 2513 * All fields are required unless otherwise specified. |
1243 */ | 2514 */ |
1244 class Client { | 2515 class Client { |
1245 /** | 2516 /** |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 role = _json["role"]; | 2617 role = _json["role"]; |
1347 } | 2618 } |
1348 if (_json.containsKey("status")) { | 2619 if (_json.containsKey("status")) { |
1349 status = _json["status"]; | 2620 status = _json["status"]; |
1350 } | 2621 } |
1351 if (_json.containsKey("visibleToSeller")) { | 2622 if (_json.containsKey("visibleToSeller")) { |
1352 visibleToSeller = _json["visibleToSeller"]; | 2623 visibleToSeller = _json["visibleToSeller"]; |
1353 } | 2624 } |
1354 } | 2625 } |
1355 | 2626 |
1356 core.Map toJson() { | 2627 core.Map<core.String, core.Object> toJson() { |
1357 var _json = new core.Map(); | 2628 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1358 if (clientAccountId != null) { | 2629 if (clientAccountId != null) { |
1359 _json["clientAccountId"] = clientAccountId; | 2630 _json["clientAccountId"] = clientAccountId; |
1360 } | 2631 } |
1361 if (clientName != null) { | 2632 if (clientName != null) { |
1362 _json["clientName"] = clientName; | 2633 _json["clientName"] = clientName; |
1363 } | 2634 } |
1364 if (entityId != null) { | 2635 if (entityId != null) { |
1365 _json["entityId"] = entityId; | 2636 _json["entityId"] = entityId; |
1366 } | 2637 } |
1367 if (entityName != null) { | 2638 if (entityName != null) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1437 email = _json["email"]; | 2708 email = _json["email"]; |
1438 } | 2709 } |
1439 if (_json.containsKey("status")) { | 2710 if (_json.containsKey("status")) { |
1440 status = _json["status"]; | 2711 status = _json["status"]; |
1441 } | 2712 } |
1442 if (_json.containsKey("userId")) { | 2713 if (_json.containsKey("userId")) { |
1443 userId = _json["userId"]; | 2714 userId = _json["userId"]; |
1444 } | 2715 } |
1445 } | 2716 } |
1446 | 2717 |
1447 core.Map toJson() { | 2718 core.Map<core.String, core.Object> toJson() { |
1448 var _json = new core.Map(); | 2719 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1449 if (clientAccountId != null) { | 2720 if (clientAccountId != null) { |
1450 _json["clientAccountId"] = clientAccountId; | 2721 _json["clientAccountId"] = clientAccountId; |
1451 } | 2722 } |
1452 if (email != null) { | 2723 if (email != null) { |
1453 _json["email"] = email; | 2724 _json["email"] = email; |
1454 } | 2725 } |
1455 if (status != null) { | 2726 if (status != null) { |
1456 _json["status"] = status; | 2727 _json["status"] = status; |
1457 } | 2728 } |
1458 if (userId != null) { | 2729 if (userId != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 clientAccountId = _json["clientAccountId"]; | 2764 clientAccountId = _json["clientAccountId"]; |
1494 } | 2765 } |
1495 if (_json.containsKey("email")) { | 2766 if (_json.containsKey("email")) { |
1496 email = _json["email"]; | 2767 email = _json["email"]; |
1497 } | 2768 } |
1498 if (_json.containsKey("invitationId")) { | 2769 if (_json.containsKey("invitationId")) { |
1499 invitationId = _json["invitationId"]; | 2770 invitationId = _json["invitationId"]; |
1500 } | 2771 } |
1501 } | 2772 } |
1502 | 2773 |
1503 core.Map toJson() { | 2774 core.Map<core.String, core.Object> toJson() { |
1504 var _json = new core.Map(); | 2775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1505 if (clientAccountId != null) { | 2776 if (clientAccountId != null) { |
1506 _json["clientAccountId"] = clientAccountId; | 2777 _json["clientAccountId"] = clientAccountId; |
1507 } | 2778 } |
1508 if (email != null) { | 2779 if (email != null) { |
1509 _json["email"] = email; | 2780 _json["email"] = email; |
1510 } | 2781 } |
1511 if (invitationId != null) { | 2782 if (invitationId != null) { |
1512 _json["invitationId"] = invitationId; | 2783 _json["invitationId"] = invitationId; |
1513 } | 2784 } |
1514 return _json; | 2785 return _json; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 contexts = _json["contexts"].map((value) => new ServingContext.fromJson(va
lue)).toList(); | 2837 contexts = _json["contexts"].map((value) => new ServingContext.fromJson(va
lue)).toList(); |
1567 } | 2838 } |
1568 if (_json.containsKey("details")) { | 2839 if (_json.containsKey("details")) { |
1569 details = _json["details"]; | 2840 details = _json["details"]; |
1570 } | 2841 } |
1571 if (_json.containsKey("type")) { | 2842 if (_json.containsKey("type")) { |
1572 type = _json["type"]; | 2843 type = _json["type"]; |
1573 } | 2844 } |
1574 } | 2845 } |
1575 | 2846 |
1576 core.Map toJson() { | 2847 core.Map<core.String, core.Object> toJson() { |
1577 var _json = new core.Map(); | 2848 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1578 if (contexts != null) { | 2849 if (contexts != null) { |
1579 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); | 2850 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); |
1580 } | 2851 } |
1581 if (details != null) { | 2852 if (details != null) { |
1582 _json["details"] = details; | 2853 _json["details"] = details; |
1583 } | 2854 } |
1584 if (type != null) { | 2855 if (type != null) { |
1585 _json["type"] = type; | 2856 _json["type"] = type; |
1586 } | 2857 } |
1587 return _json; | 2858 return _json; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 vendorIds = _json["vendorIds"]; | 3060 vendorIds = _json["vendorIds"]; |
1790 } | 3061 } |
1791 if (_json.containsKey("version")) { | 3062 if (_json.containsKey("version")) { |
1792 version = _json["version"]; | 3063 version = _json["version"]; |
1793 } | 3064 } |
1794 if (_json.containsKey("video")) { | 3065 if (_json.containsKey("video")) { |
1795 video = new VideoContent.fromJson(_json["video"]); | 3066 video = new VideoContent.fromJson(_json["video"]); |
1796 } | 3067 } |
1797 } | 3068 } |
1798 | 3069 |
1799 core.Map toJson() { | 3070 core.Map<core.String, core.Object> toJson() { |
1800 var _json = new core.Map(); | 3071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1801 if (accountId != null) { | 3072 if (accountId != null) { |
1802 _json["accountId"] = accountId; | 3073 _json["accountId"] = accountId; |
1803 } | 3074 } |
1804 if (adChoicesDestinationUrl != null) { | 3075 if (adChoicesDestinationUrl != null) { |
1805 _json["adChoicesDestinationUrl"] = adChoicesDestinationUrl; | 3076 _json["adChoicesDestinationUrl"] = adChoicesDestinationUrl; |
1806 } | 3077 } |
1807 if (advertiserName != null) { | 3078 if (advertiserName != null) { |
1808 _json["advertiserName"] = advertiserName; | 3079 _json["advertiserName"] = advertiserName; |
1809 } | 3080 } |
1810 if (agencyId != null) { | 3081 if (agencyId != null) { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1893 accountId = _json["accountId"]; | 3164 accountId = _json["accountId"]; |
1894 } | 3165 } |
1895 if (_json.containsKey("creativeId")) { | 3166 if (_json.containsKey("creativeId")) { |
1896 creativeId = _json["creativeId"]; | 3167 creativeId = _json["creativeId"]; |
1897 } | 3168 } |
1898 if (_json.containsKey("dealsId")) { | 3169 if (_json.containsKey("dealsId")) { |
1899 dealsId = _json["dealsId"]; | 3170 dealsId = _json["dealsId"]; |
1900 } | 3171 } |
1901 } | 3172 } |
1902 | 3173 |
1903 core.Map toJson() { | 3174 core.Map<core.String, core.Object> toJson() { |
1904 var _json = new core.Map(); | 3175 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1905 if (accountId != null) { | 3176 if (accountId != null) { |
1906 _json["accountId"] = accountId; | 3177 _json["accountId"] = accountId; |
1907 } | 3178 } |
1908 if (creativeId != null) { | 3179 if (creativeId != null) { |
1909 _json["creativeId"] = creativeId; | 3180 _json["creativeId"] = creativeId; |
1910 } | 3181 } |
1911 if (dealsId != null) { | 3182 if (dealsId != null) { |
1912 _json["dealsId"] = dealsId; | 3183 _json["dealsId"] = dealsId; |
1913 } | 3184 } |
1914 return _json; | 3185 return _json; |
1915 } | 3186 } |
1916 } | 3187 } |
1917 | 3188 |
1918 /** | 3189 /** |
| 3190 * The number of bids with the specified dimension values that did not win the |
| 3191 * auction (either were filtered pre-auction or lost the auction), as described |
| 3192 * by the specified creative status. |
| 3193 */ |
| 3194 class CreativeStatusRow { |
| 3195 /** The number of bids with the specified status. */ |
| 3196 MetricValue bidCount; |
| 3197 /** |
| 3198 * The ID of the creative status. |
| 3199 * See |
| 3200 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 3201 */ |
| 3202 core.int creativeStatusId; |
| 3203 /** |
| 3204 * The values of all dimensions associated with metric values in this row. |
| 3205 */ |
| 3206 RowDimensions rowDimensions; |
| 3207 |
| 3208 CreativeStatusRow(); |
| 3209 |
| 3210 CreativeStatusRow.fromJson(core.Map _json) { |
| 3211 if (_json.containsKey("bidCount")) { |
| 3212 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 3213 } |
| 3214 if (_json.containsKey("creativeStatusId")) { |
| 3215 creativeStatusId = _json["creativeStatusId"]; |
| 3216 } |
| 3217 if (_json.containsKey("rowDimensions")) { |
| 3218 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3219 } |
| 3220 } |
| 3221 |
| 3222 core.Map<core.String, core.Object> toJson() { |
| 3223 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3224 if (bidCount != null) { |
| 3225 _json["bidCount"] = (bidCount).toJson(); |
| 3226 } |
| 3227 if (creativeStatusId != null) { |
| 3228 _json["creativeStatusId"] = creativeStatusId; |
| 3229 } |
| 3230 if (rowDimensions != null) { |
| 3231 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3232 } |
| 3233 return _json; |
| 3234 } |
| 3235 } |
| 3236 |
| 3237 /** |
1919 * Represents a whole calendar date, e.g. date of birth. The time of day and | 3238 * Represents a whole calendar date, e.g. date of birth. The time of day and |
1920 * time zone are either specified elsewhere or are not significant. The date | 3239 * time zone are either specified elsewhere or are not significant. The date |
1921 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to | 3240 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to |
1922 * represent a year and month where the day is not significant, e.g. credit card | 3241 * represent a year and month where the day is not significant, e.g. credit card |
1923 * expiration date. The year may be 0 to represent a month and day independent | 3242 * expiration date. The year may be 0 to represent a month and day independent |
1924 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay | 3243 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay |
1925 * and `google.protobuf.Timestamp`. | 3244 * and `google.protobuf.Timestamp`. |
1926 */ | 3245 */ |
1927 class Date { | 3246 class Date { |
1928 /** | 3247 /** |
(...skipping 16 matching lines...) Expand all Loading... |
1945 day = _json["day"]; | 3264 day = _json["day"]; |
1946 } | 3265 } |
1947 if (_json.containsKey("month")) { | 3266 if (_json.containsKey("month")) { |
1948 month = _json["month"]; | 3267 month = _json["month"]; |
1949 } | 3268 } |
1950 if (_json.containsKey("year")) { | 3269 if (_json.containsKey("year")) { |
1951 year = _json["year"]; | 3270 year = _json["year"]; |
1952 } | 3271 } |
1953 } | 3272 } |
1954 | 3273 |
1955 core.Map toJson() { | 3274 core.Map<core.String, core.Object> toJson() { |
1956 var _json = new core.Map(); | 3275 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1957 if (day != null) { | 3276 if (day != null) { |
1958 _json["day"] = day; | 3277 _json["day"] = day; |
1959 } | 3278 } |
1960 if (month != null) { | 3279 if (month != null) { |
1961 _json["month"] = month; | 3280 _json["month"] = month; |
1962 } | 3281 } |
1963 if (year != null) { | 3282 if (year != null) { |
1964 _json["year"] = year; | 3283 _json["year"] = year; |
1965 } | 3284 } |
1966 return _json; | 3285 return _json; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2127 | 3446 |
2128 Disapproval.fromJson(core.Map _json) { | 3447 Disapproval.fromJson(core.Map _json) { |
2129 if (_json.containsKey("details")) { | 3448 if (_json.containsKey("details")) { |
2130 details = _json["details"]; | 3449 details = _json["details"]; |
2131 } | 3450 } |
2132 if (_json.containsKey("reason")) { | 3451 if (_json.containsKey("reason")) { |
2133 reason = _json["reason"]; | 3452 reason = _json["reason"]; |
2134 } | 3453 } |
2135 } | 3454 } |
2136 | 3455 |
2137 core.Map toJson() { | 3456 core.Map<core.String, core.Object> toJson() { |
2138 var _json = new core.Map(); | 3457 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2139 if (details != null) { | 3458 if (details != null) { |
2140 _json["details"] = details; | 3459 _json["details"] = details; |
2141 } | 3460 } |
2142 if (reason != null) { | 3461 if (reason != null) { |
2143 _json["reason"] = reason; | 3462 _json["reason"] = reason; |
2144 } | 3463 } |
2145 return _json; | 3464 return _json; |
2146 } | 3465 } |
2147 } | 3466 } |
2148 | 3467 |
2149 /** | 3468 /** |
2150 * A generic empty message that you can re-use to avoid defining duplicated | 3469 * A generic empty message that you can re-use to avoid defining duplicated |
2151 * empty messages in your APIs. A typical example is to use it as the request | 3470 * empty messages in your APIs. A typical example is to use it as the request |
2152 * or the response type of an API method. For instance: | 3471 * or the response type of an API method. For instance: |
2153 * | 3472 * |
2154 * service Foo { | 3473 * service Foo { |
2155 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 3474 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
2156 * } | 3475 * } |
2157 * | 3476 * |
2158 * The JSON representation for `Empty` is empty JSON object `{}`. | 3477 * The JSON representation for `Empty` is empty JSON object `{}`. |
2159 */ | 3478 */ |
2160 class Empty { | 3479 class Empty { |
2161 | 3480 |
2162 Empty(); | 3481 Empty(); |
2163 | 3482 |
2164 Empty.fromJson(core.Map _json) { | 3483 Empty.fromJson(core.Map _json) { |
2165 } | 3484 } |
2166 | 3485 |
2167 core.Map toJson() { | 3486 core.Map<core.String, core.Object> toJson() { |
2168 var _json = new core.Map(); | 3487 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3488 return _json; |
| 3489 } |
| 3490 } |
| 3491 |
| 3492 /** |
| 3493 * A set of filters that is applied to a request for data. |
| 3494 * Within a filter set, an AND operation is performed across the filters |
| 3495 * represented by each field. An OR operation is performed across the filters |
| 3496 * represented by the multiple values of a repeated field. E.g. |
| 3497 * "format=VIDEO AND deal_id=12 AND (seller_network_id=34 OR |
| 3498 * seller_network_id=56)" |
| 3499 */ |
| 3500 class FilterSet { |
| 3501 /** |
| 3502 * An absolute date range, defined by a start date and an end date. |
| 3503 * Interpreted relative to Pacific time zone. |
| 3504 */ |
| 3505 AbsoluteDateRange absoluteDateRange; |
| 3506 /** The ID of the buyer account on which to filter; optional. */ |
| 3507 core.String buyerAccountId; |
| 3508 /** The ID of the creative on which to filter; optional. */ |
| 3509 core.String creativeId; |
| 3510 /** The ID of the deal on which to filter; optional. */ |
| 3511 core.String dealId; |
| 3512 /** |
| 3513 * The environment on which to filter; optional. |
| 3514 * Possible string values are: |
| 3515 * - "ENVIRONMENT_UNSPECIFIED" : A placeholder for an undefined environment; |
| 3516 * indicates that no environment |
| 3517 * filter will be applied. |
| 3518 * - "WEB" : The ad impression appears on the web. |
| 3519 * - "APP" : The ad impression appears in an app. |
| 3520 */ |
| 3521 core.String environment; |
| 3522 /** |
| 3523 * The ID of the filter set; unique within the account of the filter set |
| 3524 * owner. |
| 3525 * The value of this field is ignored in create operations. |
| 3526 */ |
| 3527 core.String filterSetId; |
| 3528 /** |
| 3529 * The format on which to filter; optional. |
| 3530 * Possible string values are: |
| 3531 * - "FORMAT_UNSPECIFIED" : A placeholder for an undefined format; indicates |
| 3532 * that no format filter |
| 3533 * will be applied. |
| 3534 * - "DISPLAY" : The ad impression is display format (i.e. an image). |
| 3535 * - "VIDEO" : The ad impression is video format. |
| 3536 */ |
| 3537 core.String format; |
| 3538 /** |
| 3539 * The account ID of the buyer who owns this filter set. |
| 3540 * The value of this field is ignored in create operations. |
| 3541 */ |
| 3542 core.String ownerAccountId; |
| 3543 /** |
| 3544 * The list of platforms on which to filter; may be empty. The filters |
| 3545 * represented by multiple platforms are ORed together (i.e. if non-empty, |
| 3546 * results must match any one of the platforms). |
| 3547 */ |
| 3548 core.List<core.String> platforms; |
| 3549 /** |
| 3550 * An open-ended realtime time range, defined by the aggregation start |
| 3551 * timestamp. |
| 3552 */ |
| 3553 RealtimeTimeRange realtimeTimeRange; |
| 3554 /** |
| 3555 * A relative date range, defined by an offset from today and a duration. |
| 3556 * Interpreted relative to Pacific time zone. |
| 3557 */ |
| 3558 RelativeDateRange relativeDateRange; |
| 3559 /** |
| 3560 * The list of IDs of the seller (publisher) networks on which to filter; |
| 3561 * may be empty. The filters represented by multiple seller network IDs are |
| 3562 * ORed together (i.e. if non-empty, results must match any one of the |
| 3563 * publisher networks). |
| 3564 * See |
| 3565 * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/download
s/seller-network-ids) |
| 3566 * file for the set of existing seller network IDs. |
| 3567 */ |
| 3568 core.List<core.int> sellerNetworkIds; |
| 3569 /** |
| 3570 * The granularity of time intervals if a time series breakdown is desired; |
| 3571 * optional. |
| 3572 * Possible string values are: |
| 3573 * - "INTERVAL_UNSPECIFIED" : A placeholder for an unspecified interval; no |
| 3574 * time series is applied. |
| 3575 * All rows in response will contain data for the entire requested time range. |
| 3576 * - "HOURLY" : Indicates that data will be broken down by the hour. |
| 3577 * - "DAILY" : Indicates that data will be broken down by the day. |
| 3578 */ |
| 3579 core.String timeSeriesGranularity; |
| 3580 |
| 3581 FilterSet(); |
| 3582 |
| 3583 FilterSet.fromJson(core.Map _json) { |
| 3584 if (_json.containsKey("absoluteDateRange")) { |
| 3585 absoluteDateRange = new AbsoluteDateRange.fromJson(_json["absoluteDateRang
e"]); |
| 3586 } |
| 3587 if (_json.containsKey("buyerAccountId")) { |
| 3588 buyerAccountId = _json["buyerAccountId"]; |
| 3589 } |
| 3590 if (_json.containsKey("creativeId")) { |
| 3591 creativeId = _json["creativeId"]; |
| 3592 } |
| 3593 if (_json.containsKey("dealId")) { |
| 3594 dealId = _json["dealId"]; |
| 3595 } |
| 3596 if (_json.containsKey("environment")) { |
| 3597 environment = _json["environment"]; |
| 3598 } |
| 3599 if (_json.containsKey("filterSetId")) { |
| 3600 filterSetId = _json["filterSetId"]; |
| 3601 } |
| 3602 if (_json.containsKey("format")) { |
| 3603 format = _json["format"]; |
| 3604 } |
| 3605 if (_json.containsKey("ownerAccountId")) { |
| 3606 ownerAccountId = _json["ownerAccountId"]; |
| 3607 } |
| 3608 if (_json.containsKey("platforms")) { |
| 3609 platforms = _json["platforms"]; |
| 3610 } |
| 3611 if (_json.containsKey("realtimeTimeRange")) { |
| 3612 realtimeTimeRange = new RealtimeTimeRange.fromJson(_json["realtimeTimeRang
e"]); |
| 3613 } |
| 3614 if (_json.containsKey("relativeDateRange")) { |
| 3615 relativeDateRange = new RelativeDateRange.fromJson(_json["relativeDateRang
e"]); |
| 3616 } |
| 3617 if (_json.containsKey("sellerNetworkIds")) { |
| 3618 sellerNetworkIds = _json["sellerNetworkIds"]; |
| 3619 } |
| 3620 if (_json.containsKey("timeSeriesGranularity")) { |
| 3621 timeSeriesGranularity = _json["timeSeriesGranularity"]; |
| 3622 } |
| 3623 } |
| 3624 |
| 3625 core.Map<core.String, core.Object> toJson() { |
| 3626 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3627 if (absoluteDateRange != null) { |
| 3628 _json["absoluteDateRange"] = (absoluteDateRange).toJson(); |
| 3629 } |
| 3630 if (buyerAccountId != null) { |
| 3631 _json["buyerAccountId"] = buyerAccountId; |
| 3632 } |
| 3633 if (creativeId != null) { |
| 3634 _json["creativeId"] = creativeId; |
| 3635 } |
| 3636 if (dealId != null) { |
| 3637 _json["dealId"] = dealId; |
| 3638 } |
| 3639 if (environment != null) { |
| 3640 _json["environment"] = environment; |
| 3641 } |
| 3642 if (filterSetId != null) { |
| 3643 _json["filterSetId"] = filterSetId; |
| 3644 } |
| 3645 if (format != null) { |
| 3646 _json["format"] = format; |
| 3647 } |
| 3648 if (ownerAccountId != null) { |
| 3649 _json["ownerAccountId"] = ownerAccountId; |
| 3650 } |
| 3651 if (platforms != null) { |
| 3652 _json["platforms"] = platforms; |
| 3653 } |
| 3654 if (realtimeTimeRange != null) { |
| 3655 _json["realtimeTimeRange"] = (realtimeTimeRange).toJson(); |
| 3656 } |
| 3657 if (relativeDateRange != null) { |
| 3658 _json["relativeDateRange"] = (relativeDateRange).toJson(); |
| 3659 } |
| 3660 if (sellerNetworkIds != null) { |
| 3661 _json["sellerNetworkIds"] = sellerNetworkIds; |
| 3662 } |
| 3663 if (timeSeriesGranularity != null) { |
| 3664 _json["timeSeriesGranularity"] = timeSeriesGranularity; |
| 3665 } |
| 3666 return _json; |
| 3667 } |
| 3668 } |
| 3669 |
| 3670 /** |
| 3671 * The number of filtered bids with the specified dimension values that have the |
| 3672 * specified creative. |
| 3673 */ |
| 3674 class FilteredBidCreativeRow { |
| 3675 /** The number of bids with the specified creative. */ |
| 3676 MetricValue bidCount; |
| 3677 /** The ID of the creative. */ |
| 3678 core.String creativeId; |
| 3679 /** |
| 3680 * The values of all dimensions associated with metric values in this row. |
| 3681 */ |
| 3682 RowDimensions rowDimensions; |
| 3683 |
| 3684 FilteredBidCreativeRow(); |
| 3685 |
| 3686 FilteredBidCreativeRow.fromJson(core.Map _json) { |
| 3687 if (_json.containsKey("bidCount")) { |
| 3688 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 3689 } |
| 3690 if (_json.containsKey("creativeId")) { |
| 3691 creativeId = _json["creativeId"]; |
| 3692 } |
| 3693 if (_json.containsKey("rowDimensions")) { |
| 3694 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3695 } |
| 3696 } |
| 3697 |
| 3698 core.Map<core.String, core.Object> toJson() { |
| 3699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3700 if (bidCount != null) { |
| 3701 _json["bidCount"] = (bidCount).toJson(); |
| 3702 } |
| 3703 if (creativeId != null) { |
| 3704 _json["creativeId"] = creativeId; |
| 3705 } |
| 3706 if (rowDimensions != null) { |
| 3707 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3708 } |
| 3709 return _json; |
| 3710 } |
| 3711 } |
| 3712 |
| 3713 /** |
| 3714 * The number of filtered bids with the specified dimension values, among those |
| 3715 * filtered due to the requested filtering reason (i.e. creative status), that |
| 3716 * have the specified detail. |
| 3717 */ |
| 3718 class FilteredBidDetailRow { |
| 3719 /** The number of bids with the specified detail. */ |
| 3720 MetricValue bidCount; |
| 3721 /** |
| 3722 * The ID of the detail. The associated value can be looked up in the |
| 3723 * dictionary file corresponding to the DetailType in the response message. |
| 3724 */ |
| 3725 core.int detailId; |
| 3726 /** |
| 3727 * The values of all dimensions associated with metric values in this row. |
| 3728 */ |
| 3729 RowDimensions rowDimensions; |
| 3730 |
| 3731 FilteredBidDetailRow(); |
| 3732 |
| 3733 FilteredBidDetailRow.fromJson(core.Map _json) { |
| 3734 if (_json.containsKey("bidCount")) { |
| 3735 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 3736 } |
| 3737 if (_json.containsKey("detailId")) { |
| 3738 detailId = _json["detailId"]; |
| 3739 } |
| 3740 if (_json.containsKey("rowDimensions")) { |
| 3741 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3742 } |
| 3743 } |
| 3744 |
| 3745 core.Map<core.String, core.Object> toJson() { |
| 3746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3747 if (bidCount != null) { |
| 3748 _json["bidCount"] = (bidCount).toJson(); |
| 3749 } |
| 3750 if (detailId != null) { |
| 3751 _json["detailId"] = detailId; |
| 3752 } |
| 3753 if (rowDimensions != null) { |
| 3754 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3755 } |
2169 return _json; | 3756 return _json; |
2170 } | 3757 } |
2171 } | 3758 } |
2172 | 3759 |
2173 /** | 3760 /** |
2174 * @OutputOnly Filtering reasons for this creative during a period of a single | 3761 * @OutputOnly Filtering reasons for this creative during a period of a single |
2175 * day (from midnight to midnight Pacific). | 3762 * day (from midnight to midnight Pacific). |
2176 */ | 3763 */ |
2177 class FilteringStats { | 3764 class FilteringStats { |
2178 /** | 3765 /** |
(...skipping 10 matching lines...) Expand all Loading... |
2189 | 3776 |
2190 FilteringStats.fromJson(core.Map _json) { | 3777 FilteringStats.fromJson(core.Map _json) { |
2191 if (_json.containsKey("date")) { | 3778 if (_json.containsKey("date")) { |
2192 date = new Date.fromJson(_json["date"]); | 3779 date = new Date.fromJson(_json["date"]); |
2193 } | 3780 } |
2194 if (_json.containsKey("reasons")) { | 3781 if (_json.containsKey("reasons")) { |
2195 reasons = _json["reasons"].map((value) => new Reason.fromJson(value)).toLi
st(); | 3782 reasons = _json["reasons"].map((value) => new Reason.fromJson(value)).toLi
st(); |
2196 } | 3783 } |
2197 } | 3784 } |
2198 | 3785 |
2199 core.Map toJson() { | 3786 core.Map<core.String, core.Object> toJson() { |
2200 var _json = new core.Map(); | 3787 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2201 if (date != null) { | 3788 if (date != null) { |
2202 _json["date"] = (date).toJson(); | 3789 _json["date"] = (date).toJson(); |
2203 } | 3790 } |
2204 if (reasons != null) { | 3791 if (reasons != null) { |
2205 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); | 3792 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); |
2206 } | 3793 } |
2207 return _json; | 3794 return _json; |
2208 } | 3795 } |
2209 } | 3796 } |
2210 | 3797 |
(...skipping 13 matching lines...) Expand all Loading... |
2224 height = _json["height"]; | 3811 height = _json["height"]; |
2225 } | 3812 } |
2226 if (_json.containsKey("snippet")) { | 3813 if (_json.containsKey("snippet")) { |
2227 snippet = _json["snippet"]; | 3814 snippet = _json["snippet"]; |
2228 } | 3815 } |
2229 if (_json.containsKey("width")) { | 3816 if (_json.containsKey("width")) { |
2230 width = _json["width"]; | 3817 width = _json["width"]; |
2231 } | 3818 } |
2232 } | 3819 } |
2233 | 3820 |
2234 core.Map toJson() { | 3821 core.Map<core.String, core.Object> toJson() { |
2235 var _json = new core.Map(); | 3822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2236 if (height != null) { | 3823 if (height != null) { |
2237 _json["height"] = height; | 3824 _json["height"] = height; |
2238 } | 3825 } |
2239 if (snippet != null) { | 3826 if (snippet != null) { |
2240 _json["snippet"] = snippet; | 3827 _json["snippet"] = snippet; |
2241 } | 3828 } |
2242 if (width != null) { | 3829 if (width != null) { |
2243 _json["width"] = width; | 3830 _json["width"] = width; |
2244 } | 3831 } |
2245 return _json; | 3832 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
2265 height = _json["height"]; | 3852 height = _json["height"]; |
2266 } | 3853 } |
2267 if (_json.containsKey("url")) { | 3854 if (_json.containsKey("url")) { |
2268 url = _json["url"]; | 3855 url = _json["url"]; |
2269 } | 3856 } |
2270 if (_json.containsKey("width")) { | 3857 if (_json.containsKey("width")) { |
2271 width = _json["width"]; | 3858 width = _json["width"]; |
2272 } | 3859 } |
2273 } | 3860 } |
2274 | 3861 |
2275 core.Map toJson() { | 3862 core.Map<core.String, core.Object> toJson() { |
2276 var _json = new core.Map(); | 3863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2277 if (height != null) { | 3864 if (height != null) { |
2278 _json["height"] = height; | 3865 _json["height"] = height; |
2279 } | 3866 } |
2280 if (url != null) { | 3867 if (url != null) { |
2281 _json["url"] = url; | 3868 _json["url"] = url; |
2282 } | 3869 } |
2283 if (width != null) { | 3870 if (width != null) { |
2284 _json["width"] = width; | 3871 _json["width"] = width; |
2285 } | 3872 } |
2286 return _json; | 3873 return _json; |
2287 } | 3874 } |
2288 } | 3875 } |
2289 | 3876 |
| 3877 /** |
| 3878 * The set of metrics that are measured in numbers of impressions, representing |
| 3879 * how many impressions with the specified dimension values were considered |
| 3880 * eligible at each stage of the bidding funnel. |
| 3881 */ |
| 3882 class ImpressionMetricsRow { |
| 3883 /** |
| 3884 * The number of impressions available to the buyer on Ad Exchange. |
| 3885 * In some cases this value may be unavailable. |
| 3886 */ |
| 3887 MetricValue availableImpressions; |
| 3888 /** |
| 3889 * The number of impressions for which Ad Exchange sent the buyer a bid |
| 3890 * request. |
| 3891 */ |
| 3892 MetricValue bidRequests; |
| 3893 /** |
| 3894 * The number of impressions that match the buyer's inventory pretargeting. |
| 3895 */ |
| 3896 MetricValue inventoryMatches; |
| 3897 /** |
| 3898 * The number of impressions for which Ad Exchange received a response from |
| 3899 * the buyer that contained at least one applicable bid. |
| 3900 */ |
| 3901 MetricValue responsesWithBids; |
| 3902 /** |
| 3903 * The values of all dimensions associated with metric values in this row. |
| 3904 */ |
| 3905 RowDimensions rowDimensions; |
| 3906 /** |
| 3907 * The number of impressions for which the buyer successfully sent a response |
| 3908 * to Ad Exchange. |
| 3909 */ |
| 3910 MetricValue successfulResponses; |
| 3911 |
| 3912 ImpressionMetricsRow(); |
| 3913 |
| 3914 ImpressionMetricsRow.fromJson(core.Map _json) { |
| 3915 if (_json.containsKey("availableImpressions")) { |
| 3916 availableImpressions = new MetricValue.fromJson(_json["availableImpression
s"]); |
| 3917 } |
| 3918 if (_json.containsKey("bidRequests")) { |
| 3919 bidRequests = new MetricValue.fromJson(_json["bidRequests"]); |
| 3920 } |
| 3921 if (_json.containsKey("inventoryMatches")) { |
| 3922 inventoryMatches = new MetricValue.fromJson(_json["inventoryMatches"]); |
| 3923 } |
| 3924 if (_json.containsKey("responsesWithBids")) { |
| 3925 responsesWithBids = new MetricValue.fromJson(_json["responsesWithBids"]); |
| 3926 } |
| 3927 if (_json.containsKey("rowDimensions")) { |
| 3928 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3929 } |
| 3930 if (_json.containsKey("successfulResponses")) { |
| 3931 successfulResponses = new MetricValue.fromJson(_json["successfulResponses"
]); |
| 3932 } |
| 3933 } |
| 3934 |
| 3935 core.Map<core.String, core.Object> toJson() { |
| 3936 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3937 if (availableImpressions != null) { |
| 3938 _json["availableImpressions"] = (availableImpressions).toJson(); |
| 3939 } |
| 3940 if (bidRequests != null) { |
| 3941 _json["bidRequests"] = (bidRequests).toJson(); |
| 3942 } |
| 3943 if (inventoryMatches != null) { |
| 3944 _json["inventoryMatches"] = (inventoryMatches).toJson(); |
| 3945 } |
| 3946 if (responsesWithBids != null) { |
| 3947 _json["responsesWithBids"] = (responsesWithBids).toJson(); |
| 3948 } |
| 3949 if (rowDimensions != null) { |
| 3950 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3951 } |
| 3952 if (successfulResponses != null) { |
| 3953 _json["successfulResponses"] = (successfulResponses).toJson(); |
| 3954 } |
| 3955 return _json; |
| 3956 } |
| 3957 } |
| 3958 |
| 3959 /** |
| 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. |
| 4014 */ |
| 4015 class ListBidMetricsResponse { |
| 4016 /** List of rows, each containing a set of bid metrics. */ |
| 4017 core.List<BidMetricsRow> bidMetricsRows; |
| 4018 /** |
| 4019 * A token to retrieve the next page of results. |
| 4020 * Pass this value in the |
| 4021 * ListBidMetricsRequest.pageToken |
| 4022 * field in the subsequent call to the |
| 4023 * accounts.filterSets.bidMetrics.list |
| 4024 * method to retrieve the next page of results. |
| 4025 */ |
| 4026 core.String nextPageToken; |
| 4027 |
| 4028 ListBidMetricsResponse(); |
| 4029 |
| 4030 ListBidMetricsResponse.fromJson(core.Map _json) { |
| 4031 if (_json.containsKey("bidMetricsRows")) { |
| 4032 bidMetricsRows = _json["bidMetricsRows"].map((value) => new BidMetricsRow.
fromJson(value)).toList(); |
| 4033 } |
| 4034 if (_json.containsKey("nextPageToken")) { |
| 4035 nextPageToken = _json["nextPageToken"]; |
| 4036 } |
| 4037 } |
| 4038 |
| 4039 core.Map<core.String, core.Object> toJson() { |
| 4040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4041 if (bidMetricsRows != null) { |
| 4042 _json["bidMetricsRows"] = bidMetricsRows.map((value) => (value).toJson()).
toList(); |
| 4043 } |
| 4044 if (nextPageToken != null) { |
| 4045 _json["nextPageToken"] = nextPageToken; |
| 4046 } |
| 4047 return _json; |
| 4048 } |
| 4049 } |
| 4050 |
| 4051 /** |
| 4052 * Response message for listing all reasons that bid responses resulted in an |
| 4053 * error. |
| 4054 */ |
| 4055 class ListBidResponseErrorsResponse { |
| 4056 /** |
| 4057 * List of rows, with counts of bid responses aggregated by callout status. |
| 4058 */ |
| 4059 core.List<CalloutStatusRow> calloutStatusRows; |
| 4060 /** |
| 4061 * A token to retrieve the next page of results. |
| 4062 * Pass this value in the |
| 4063 * ListBidResponseErrorsRequest.pageToken |
| 4064 * field in the subsequent call to the |
| 4065 * accounts.filterSets.bidResponseErrors.list |
| 4066 * method to retrieve the next page of results. |
| 4067 */ |
| 4068 core.String nextPageToken; |
| 4069 |
| 4070 ListBidResponseErrorsResponse(); |
| 4071 |
| 4072 ListBidResponseErrorsResponse.fromJson(core.Map _json) { |
| 4073 if (_json.containsKey("calloutStatusRows")) { |
| 4074 calloutStatusRows = _json["calloutStatusRows"].map((value) => new CalloutS
tatusRow.fromJson(value)).toList(); |
| 4075 } |
| 4076 if (_json.containsKey("nextPageToken")) { |
| 4077 nextPageToken = _json["nextPageToken"]; |
| 4078 } |
| 4079 } |
| 4080 |
| 4081 core.Map<core.String, core.Object> toJson() { |
| 4082 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4083 if (calloutStatusRows != null) { |
| 4084 _json["calloutStatusRows"] = calloutStatusRows.map((value) => (value).toJs
on()).toList(); |
| 4085 } |
| 4086 if (nextPageToken != null) { |
| 4087 _json["nextPageToken"] = nextPageToken; |
| 4088 } |
| 4089 return _json; |
| 4090 } |
| 4091 } |
| 4092 |
| 4093 /** |
| 4094 * Response message for listing all reasons that bid responses were considered |
| 4095 * to have no applicable bids. |
| 4096 */ |
| 4097 class ListBidResponsesWithoutBidsResponse { |
| 4098 /** |
| 4099 * List of rows, with counts of bid responses without bids aggregated by |
| 4100 * status. |
| 4101 */ |
| 4102 core.List<BidResponseWithoutBidsStatusRow> bidResponseWithoutBidsStatusRows; |
| 4103 /** |
| 4104 * A token to retrieve the next page of results. |
| 4105 * Pass this value in the |
| 4106 * ListBidResponsesWithoutBidsRequest.pageToken |
| 4107 * field in the subsequent call to the |
| 4108 * accounts.filterSets.bidResponsesWithoutBids.list |
| 4109 * method to retrieve the next page of results. |
| 4110 */ |
| 4111 core.String nextPageToken; |
| 4112 |
| 4113 ListBidResponsesWithoutBidsResponse(); |
| 4114 |
| 4115 ListBidResponsesWithoutBidsResponse.fromJson(core.Map _json) { |
| 4116 if (_json.containsKey("bidResponseWithoutBidsStatusRows")) { |
| 4117 bidResponseWithoutBidsStatusRows = _json["bidResponseWithoutBidsStatusRows
"].map((value) => new BidResponseWithoutBidsStatusRow.fromJson(value)).toList(); |
| 4118 } |
| 4119 if (_json.containsKey("nextPageToken")) { |
| 4120 nextPageToken = _json["nextPageToken"]; |
| 4121 } |
| 4122 } |
| 4123 |
| 4124 core.Map<core.String, core.Object> toJson() { |
| 4125 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4126 if (bidResponseWithoutBidsStatusRows != null) { |
| 4127 _json["bidResponseWithoutBidsStatusRows"] = bidResponseWithoutBidsStatusRo
ws.map((value) => (value).toJson()).toList(); |
| 4128 } |
| 4129 if (nextPageToken != null) { |
| 4130 _json["nextPageToken"] = nextPageToken; |
| 4131 } |
| 4132 return _json; |
| 4133 } |
| 4134 } |
| 4135 |
2290 class ListClientUserInvitationsResponse { | 4136 class ListClientUserInvitationsResponse { |
2291 /** The returned list of client users. */ | 4137 /** The returned list of client users. */ |
2292 core.List<ClientUserInvitation> invitations; | 4138 core.List<ClientUserInvitation> invitations; |
2293 /** | 4139 /** |
2294 * A token to retrieve the next page of results. | 4140 * A token to retrieve the next page of results. |
2295 * Pass this value in the | 4141 * Pass this value in the |
2296 * ListClientUserInvitationsRequest.pageToken | 4142 * ListClientUserInvitationsRequest.pageToken |
2297 * field in the subsequent call to the | 4143 * field in the subsequent call to the |
2298 * clients.invitations.list | 4144 * clients.invitations.list |
2299 * method to retrieve the next | 4145 * method to retrieve the next |
2300 * page of results. | 4146 * page of results. |
2301 */ | 4147 */ |
2302 core.String nextPageToken; | 4148 core.String nextPageToken; |
2303 | 4149 |
2304 ListClientUserInvitationsResponse(); | 4150 ListClientUserInvitationsResponse(); |
2305 | 4151 |
2306 ListClientUserInvitationsResponse.fromJson(core.Map _json) { | 4152 ListClientUserInvitationsResponse.fromJson(core.Map _json) { |
2307 if (_json.containsKey("invitations")) { | 4153 if (_json.containsKey("invitations")) { |
2308 invitations = _json["invitations"].map((value) => new ClientUserInvitation
.fromJson(value)).toList(); | 4154 invitations = _json["invitations"].map((value) => new ClientUserInvitation
.fromJson(value)).toList(); |
2309 } | 4155 } |
2310 if (_json.containsKey("nextPageToken")) { | 4156 if (_json.containsKey("nextPageToken")) { |
2311 nextPageToken = _json["nextPageToken"]; | 4157 nextPageToken = _json["nextPageToken"]; |
2312 } | 4158 } |
2313 } | 4159 } |
2314 | 4160 |
2315 core.Map toJson() { | 4161 core.Map<core.String, core.Object> toJson() { |
2316 var _json = new core.Map(); | 4162 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2317 if (invitations != null) { | 4163 if (invitations != null) { |
2318 _json["invitations"] = invitations.map((value) => (value).toJson()).toList
(); | 4164 _json["invitations"] = invitations.map((value) => (value).toJson()).toList
(); |
2319 } | 4165 } |
2320 if (nextPageToken != null) { | 4166 if (nextPageToken != null) { |
2321 _json["nextPageToken"] = nextPageToken; | 4167 _json["nextPageToken"] = nextPageToken; |
| 4168 } |
| 4169 return _json; |
| 4170 } |
| 4171 } |
| 4172 |
| 4173 class ListClientUsersResponse { |
| 4174 /** |
| 4175 * A token to retrieve the next page of results. |
| 4176 * Pass this value in the |
| 4177 * ListClientUsersRequest.pageToken |
| 4178 * field in the subsequent call to the |
| 4179 * clients.invitations.list |
| 4180 * method to retrieve the next |
| 4181 * page of results. |
| 4182 */ |
| 4183 core.String nextPageToken; |
| 4184 /** The returned list of client users. */ |
| 4185 core.List<ClientUser> users; |
| 4186 |
| 4187 ListClientUsersResponse(); |
| 4188 |
| 4189 ListClientUsersResponse.fromJson(core.Map _json) { |
| 4190 if (_json.containsKey("nextPageToken")) { |
| 4191 nextPageToken = _json["nextPageToken"]; |
| 4192 } |
| 4193 if (_json.containsKey("users")) { |
| 4194 users = _json["users"].map((value) => new ClientUser.fromJson(value)).toLi
st(); |
| 4195 } |
| 4196 } |
| 4197 |
| 4198 core.Map<core.String, core.Object> toJson() { |
| 4199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4200 if (nextPageToken != null) { |
| 4201 _json["nextPageToken"] = nextPageToken; |
| 4202 } |
| 4203 if (users != null) { |
| 4204 _json["users"] = users.map((value) => (value).toJson()).toList(); |
| 4205 } |
| 4206 return _json; |
| 4207 } |
| 4208 } |
| 4209 |
| 4210 class ListClientsResponse { |
| 4211 /** The returned list of clients. */ |
| 4212 core.List<Client> clients; |
| 4213 /** |
| 4214 * A token to retrieve the next page of results. |
| 4215 * Pass this value in the |
| 4216 * ListClientsRequest.pageToken |
| 4217 * field in the subsequent call to the |
| 4218 * accounts.clients.list method |
| 4219 * to retrieve the next page of results. |
| 4220 */ |
| 4221 core.String nextPageToken; |
| 4222 |
| 4223 ListClientsResponse(); |
| 4224 |
| 4225 ListClientsResponse.fromJson(core.Map _json) { |
| 4226 if (_json.containsKey("clients")) { |
| 4227 clients = _json["clients"].map((value) => new Client.fromJson(value)).toLi
st(); |
| 4228 } |
| 4229 if (_json.containsKey("nextPageToken")) { |
| 4230 nextPageToken = _json["nextPageToken"]; |
| 4231 } |
| 4232 } |
| 4233 |
| 4234 core.Map<core.String, core.Object> toJson() { |
| 4235 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4236 if (clients != null) { |
| 4237 _json["clients"] = clients.map((value) => (value).toJson()).toList(); |
| 4238 } |
| 4239 if (nextPageToken != null) { |
| 4240 _json["nextPageToken"] = nextPageToken; |
| 4241 } |
| 4242 return _json; |
| 4243 } |
| 4244 } |
| 4245 |
| 4246 /** |
| 4247 * Response message for listing all details associated with a given filtered bid |
| 4248 * reason and a given creative. |
| 4249 */ |
| 4250 class ListCreativeStatusAndCreativeBreakdownByDetailResponse { |
| 4251 /** |
| 4252 * The type of detail that the detail IDs represent. |
| 4253 * Possible string values are: |
| 4254 * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. |
| 4255 * This value will never be returned in responses. |
| 4256 * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative |
| 4257 * attribute; see |
| 4258 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). |
| 4259 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see |
| 4260 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). |
| 4261 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive |
| 4262 * category; see |
| 4263 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). |
| 4264 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product |
| 4265 * category; see |
| 4266 * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downl
oads/ad-product-categories). |
| 4267 */ |
| 4268 core.String detailType; |
| 4269 /** |
| 4270 * List of rows, with counts of bids with a given creative status and |
| 4271 * creative, aggregated by detail. |
| 4272 */ |
| 4273 core.List<FilteredBidDetailRow> filteredBidDetailRows; |
| 4274 /** |
| 4275 * A token to retrieve the next page of results. |
| 4276 * Pass this value in the |
| 4277 * ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken |
| 4278 * field in the subsequent call to the |
| 4279 * accounts.filterSets.filteredBids.creatives.details.list |
| 4280 * method to retrieve the next page of results. |
| 4281 */ |
| 4282 core.String nextPageToken; |
| 4283 |
| 4284 ListCreativeStatusAndCreativeBreakdownByDetailResponse(); |
| 4285 |
| 4286 ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(core.Map _json
) { |
| 4287 if (_json.containsKey("detailType")) { |
| 4288 detailType = _json["detailType"]; |
| 4289 } |
| 4290 if (_json.containsKey("filteredBidDetailRows")) { |
| 4291 filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new
FilteredBidDetailRow.fromJson(value)).toList(); |
| 4292 } |
| 4293 if (_json.containsKey("nextPageToken")) { |
| 4294 nextPageToken = _json["nextPageToken"]; |
| 4295 } |
| 4296 } |
| 4297 |
| 4298 core.Map<core.String, core.Object> toJson() { |
| 4299 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4300 if (detailType != null) { |
| 4301 _json["detailType"] = detailType; |
| 4302 } |
| 4303 if (filteredBidDetailRows != null) { |
| 4304 _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (val
ue).toJson()).toList(); |
| 4305 } |
| 4306 if (nextPageToken != null) { |
| 4307 _json["nextPageToken"] = nextPageToken; |
| 4308 } |
| 4309 return _json; |
| 4310 } |
| 4311 } |
| 4312 |
| 4313 /** |
| 4314 * Response message for listing all creatives associated with a given filtered |
| 4315 * bid reason. |
| 4316 */ |
| 4317 class ListCreativeStatusBreakdownByCreativeResponse { |
| 4318 /** |
| 4319 * List of rows, with counts of bids with a given creative status aggregated |
| 4320 * by creative. |
| 4321 */ |
| 4322 core.List<FilteredBidCreativeRow> filteredBidCreativeRows; |
| 4323 /** |
| 4324 * A token to retrieve the next page of results. |
| 4325 * Pass this value in the |
| 4326 * ListCreativeStatusBreakdownByCreativeRequest.pageToken |
| 4327 * field in the subsequent call to the |
| 4328 * accounts.filterSets.filteredBids.creatives.list |
| 4329 * method to retrieve the next page of results. |
| 4330 */ |
| 4331 core.String nextPageToken; |
| 4332 |
| 4333 ListCreativeStatusBreakdownByCreativeResponse(); |
| 4334 |
| 4335 ListCreativeStatusBreakdownByCreativeResponse.fromJson(core.Map _json) { |
| 4336 if (_json.containsKey("filteredBidCreativeRows")) { |
| 4337 filteredBidCreativeRows = _json["filteredBidCreativeRows"].map((value) =>
new FilteredBidCreativeRow.fromJson(value)).toList(); |
| 4338 } |
| 4339 if (_json.containsKey("nextPageToken")) { |
| 4340 nextPageToken = _json["nextPageToken"]; |
| 4341 } |
| 4342 } |
| 4343 |
| 4344 core.Map<core.String, core.Object> toJson() { |
| 4345 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4346 if (filteredBidCreativeRows != null) { |
| 4347 _json["filteredBidCreativeRows"] = filteredBidCreativeRows.map((value) =>
(value).toJson()).toList(); |
| 4348 } |
| 4349 if (nextPageToken != null) { |
| 4350 _json["nextPageToken"] = nextPageToken; |
| 4351 } |
| 4352 return _json; |
| 4353 } |
| 4354 } |
| 4355 |
| 4356 /** |
| 4357 * Response message for listing all details associated with a given filtered bid |
| 4358 * reason. |
| 4359 */ |
| 4360 class ListCreativeStatusBreakdownByDetailResponse { |
| 4361 /** |
| 4362 * The type of detail that the detail IDs represent. |
| 4363 * Possible string values are: |
| 4364 * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. |
| 4365 * This value will never be returned in responses. |
| 4366 * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative |
| 4367 * attribute; see |
| 4368 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). |
| 4369 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see |
| 4370 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). |
| 4371 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive |
| 4372 * category; see |
| 4373 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). |
| 4374 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product |
| 4375 * category; see |
| 4376 * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downl
oads/ad-product-categories). |
| 4377 */ |
| 4378 core.String detailType; |
| 4379 /** |
| 4380 * List of rows, with counts of bids with a given creative status aggregated |
| 4381 * by detail. |
| 4382 */ |
| 4383 core.List<FilteredBidDetailRow> filteredBidDetailRows; |
| 4384 /** |
| 4385 * A token to retrieve the next page of results. |
| 4386 * Pass this value in the |
| 4387 * ListCreativeStatusBreakdownByDetailRequest.pageToken |
| 4388 * field in the subsequent call to the |
| 4389 * accounts.filterSets.filteredBids.details.list |
| 4390 * method to retrieve the next page of results. |
| 4391 */ |
| 4392 core.String nextPageToken; |
| 4393 |
| 4394 ListCreativeStatusBreakdownByDetailResponse(); |
| 4395 |
| 4396 ListCreativeStatusBreakdownByDetailResponse.fromJson(core.Map _json) { |
| 4397 if (_json.containsKey("detailType")) { |
| 4398 detailType = _json["detailType"]; |
| 4399 } |
| 4400 if (_json.containsKey("filteredBidDetailRows")) { |
| 4401 filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new
FilteredBidDetailRow.fromJson(value)).toList(); |
| 4402 } |
| 4403 if (_json.containsKey("nextPageToken")) { |
| 4404 nextPageToken = _json["nextPageToken"]; |
| 4405 } |
| 4406 } |
| 4407 |
| 4408 core.Map<core.String, core.Object> toJson() { |
| 4409 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4410 if (detailType != null) { |
| 4411 _json["detailType"] = detailType; |
| 4412 } |
| 4413 if (filteredBidDetailRows != null) { |
| 4414 _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (val
ue).toJson()).toList(); |
| 4415 } |
| 4416 if (nextPageToken != null) { |
| 4417 _json["nextPageToken"] = nextPageToken; |
| 4418 } |
| 4419 return _json; |
| 4420 } |
| 4421 } |
| 4422 |
| 4423 /** A response for listing creatives. */ |
| 4424 class ListCreativesResponse { |
| 4425 /** The list of creatives. */ |
| 4426 core.List<Creative> creatives; |
| 4427 /** |
| 4428 * A token to retrieve the next page of results. |
| 4429 * Pass this value in the |
| 4430 * ListCreativesRequest.page_token |
| 4431 * field in the subsequent call to `ListCreatives` method to retrieve the next |
| 4432 * page of results. |
| 4433 */ |
| 4434 core.String nextPageToken; |
| 4435 |
| 4436 ListCreativesResponse(); |
| 4437 |
| 4438 ListCreativesResponse.fromJson(core.Map _json) { |
| 4439 if (_json.containsKey("creatives")) { |
| 4440 creatives = _json["creatives"].map((value) => new Creative.fromJson(value)
).toList(); |
| 4441 } |
| 4442 if (_json.containsKey("nextPageToken")) { |
| 4443 nextPageToken = _json["nextPageToken"]; |
| 4444 } |
| 4445 } |
| 4446 |
| 4447 core.Map<core.String, core.Object> toJson() { |
| 4448 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4449 if (creatives != null) { |
| 4450 _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); |
| 4451 } |
| 4452 if (nextPageToken != null) { |
| 4453 _json["nextPageToken"] = nextPageToken; |
| 4454 } |
| 4455 return _json; |
| 4456 } |
| 4457 } |
| 4458 |
| 4459 /** A response for listing creative and deal associations */ |
| 4460 class ListDealAssociationsResponse { |
| 4461 /** The list of associations. */ |
| 4462 core.List<CreativeDealAssociation> associations; |
| 4463 /** |
| 4464 * A token to retrieve the next page of results. |
| 4465 * Pass this value in the |
| 4466 * ListDealAssociationsRequest.page_token |
| 4467 * field in the subsequent call to 'ListDealAssociation' method to retrieve |
| 4468 * the next page of results. |
| 4469 */ |
| 4470 core.String nextPageToken; |
| 4471 |
| 4472 ListDealAssociationsResponse(); |
| 4473 |
| 4474 ListDealAssociationsResponse.fromJson(core.Map _json) { |
| 4475 if (_json.containsKey("associations")) { |
| 4476 associations = _json["associations"].map((value) => new CreativeDealAssoci
ation.fromJson(value)).toList(); |
| 4477 } |
| 4478 if (_json.containsKey("nextPageToken")) { |
| 4479 nextPageToken = _json["nextPageToken"]; |
| 4480 } |
| 4481 } |
| 4482 |
| 4483 core.Map<core.String, core.Object> toJson() { |
| 4484 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4485 if (associations != null) { |
| 4486 _json["associations"] = associations.map((value) => (value).toJson()).toLi
st(); |
| 4487 } |
| 4488 if (nextPageToken != null) { |
| 4489 _json["nextPageToken"] = nextPageToken; |
| 4490 } |
| 4491 return _json; |
| 4492 } |
| 4493 } |
| 4494 |
| 4495 /** Response message for listing filter sets. */ |
| 4496 class ListFilterSetsResponse { |
| 4497 /** The filter sets belonging to the buyer. */ |
| 4498 core.List<FilterSet> filterSets; |
| 4499 /** |
| 4500 * A token to retrieve the next page of results. |
| 4501 * Pass this value in the |
| 4502 * ListFilterSetsRequest.pageToken |
| 4503 * field in the subsequent call to the |
| 4504 * accounts.filterSets.list |
| 4505 * method to retrieve the next page of results. |
| 4506 */ |
| 4507 core.String nextPageToken; |
| 4508 |
| 4509 ListFilterSetsResponse(); |
| 4510 |
| 4511 ListFilterSetsResponse.fromJson(core.Map _json) { |
| 4512 if (_json.containsKey("filterSets")) { |
| 4513 filterSets = _json["filterSets"].map((value) => new FilterSet.fromJson(val
ue)).toList(); |
| 4514 } |
| 4515 if (_json.containsKey("nextPageToken")) { |
| 4516 nextPageToken = _json["nextPageToken"]; |
| 4517 } |
| 4518 } |
| 4519 |
| 4520 core.Map<core.String, core.Object> toJson() { |
| 4521 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4522 if (filterSets != null) { |
| 4523 _json["filterSets"] = filterSets.map((value) => (value).toJson()).toList()
; |
| 4524 } |
| 4525 if (nextPageToken != null) { |
| 4526 _json["nextPageToken"] = nextPageToken; |
| 4527 } |
| 4528 return _json; |
| 4529 } |
| 4530 } |
| 4531 |
| 4532 /** |
| 4533 * Response message for listing all reasons that bid requests were filtered and |
| 4534 * not sent to the buyer. |
| 4535 */ |
| 4536 class ListFilteredBidRequestsResponse { |
| 4537 /** |
| 4538 * List of rows, with counts of filtered bid requests aggregated by callout |
| 4539 * status. |
| 4540 */ |
| 4541 core.List<CalloutStatusRow> calloutStatusRows; |
| 4542 /** |
| 4543 * A token to retrieve the next page of results. |
| 4544 * Pass this value in the |
| 4545 * ListFilteredBidRequestsRequest.pageToken |
| 4546 * field in the subsequent call to the |
| 4547 * accounts.filterSets.filteredBidRequests.list |
| 4548 * method to retrieve the next page of results. |
| 4549 */ |
| 4550 core.String nextPageToken; |
| 4551 |
| 4552 ListFilteredBidRequestsResponse(); |
| 4553 |
| 4554 ListFilteredBidRequestsResponse.fromJson(core.Map _json) { |
| 4555 if (_json.containsKey("calloutStatusRows")) { |
| 4556 calloutStatusRows = _json["calloutStatusRows"].map((value) => new CalloutS
tatusRow.fromJson(value)).toList(); |
| 4557 } |
| 4558 if (_json.containsKey("nextPageToken")) { |
| 4559 nextPageToken = _json["nextPageToken"]; |
| 4560 } |
| 4561 } |
| 4562 |
| 4563 core.Map<core.String, core.Object> toJson() { |
| 4564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4565 if (calloutStatusRows != null) { |
| 4566 _json["calloutStatusRows"] = calloutStatusRows.map((value) => (value).toJs
on()).toList(); |
| 4567 } |
| 4568 if (nextPageToken != null) { |
| 4569 _json["nextPageToken"] = nextPageToken; |
2322 } | 4570 } |
2323 return _json; | 4571 return _json; |
2324 } | 4572 } |
2325 } | 4573 } |
2326 | 4574 |
2327 class ListClientUsersResponse { | 4575 /** |
| 4576 * Response message for listing all reasons that bids were filtered from the |
| 4577 * auction. |
| 4578 */ |
| 4579 class ListFilteredBidsResponse { |
| 4580 /** |
| 4581 * List of rows, with counts of filtered bids aggregated by filtering reason |
| 4582 * (i.e. creative status). |
| 4583 */ |
| 4584 core.List<CreativeStatusRow> creativeStatusRows; |
2328 /** | 4585 /** |
2329 * A token to retrieve the next page of results. | 4586 * A token to retrieve the next page of results. |
2330 * Pass this value in the | 4587 * Pass this value in the |
2331 * ListClientUsersRequest.pageToken | 4588 * ListFilteredBidsRequest.pageToken |
2332 * field in the subsequent call to the | 4589 * field in the subsequent call to the |
2333 * clients.invitations.list | 4590 * accounts.filterSets.filteredBids.list |
2334 * method to retrieve the next | 4591 * method to retrieve the next page of results. |
2335 * page of results. | |
2336 */ | |
2337 core.String nextPageToken; | |
2338 /** The returned list of client users. */ | |
2339 core.List<ClientUser> users; | |
2340 | |
2341 ListClientUsersResponse(); | |
2342 | |
2343 ListClientUsersResponse.fromJson(core.Map _json) { | |
2344 if (_json.containsKey("nextPageToken")) { | |
2345 nextPageToken = _json["nextPageToken"]; | |
2346 } | |
2347 if (_json.containsKey("users")) { | |
2348 users = _json["users"].map((value) => new ClientUser.fromJson(value)).toLi
st(); | |
2349 } | |
2350 } | |
2351 | |
2352 core.Map toJson() { | |
2353 var _json = new core.Map(); | |
2354 if (nextPageToken != null) { | |
2355 _json["nextPageToken"] = nextPageToken; | |
2356 } | |
2357 if (users != null) { | |
2358 _json["users"] = users.map((value) => (value).toJson()).toList(); | |
2359 } | |
2360 return _json; | |
2361 } | |
2362 } | |
2363 | |
2364 class ListClientsResponse { | |
2365 /** The returned list of clients. */ | |
2366 core.List<Client> clients; | |
2367 /** | |
2368 * A token to retrieve the next page of results. | |
2369 * Pass this value in the | |
2370 * ListClientsRequest.pageToken | |
2371 * field in the subsequent call to the | |
2372 * accounts.clients.list method | |
2373 * to retrieve the next page of results. | |
2374 */ | 4592 */ |
2375 core.String nextPageToken; | 4593 core.String nextPageToken; |
2376 | 4594 |
2377 ListClientsResponse(); | 4595 ListFilteredBidsResponse(); |
2378 | 4596 |
2379 ListClientsResponse.fromJson(core.Map _json) { | 4597 ListFilteredBidsResponse.fromJson(core.Map _json) { |
2380 if (_json.containsKey("clients")) { | 4598 if (_json.containsKey("creativeStatusRows")) { |
2381 clients = _json["clients"].map((value) => new Client.fromJson(value)).toLi
st(); | 4599 creativeStatusRows = _json["creativeStatusRows"].map((value) => new Creati
veStatusRow.fromJson(value)).toList(); |
2382 } | 4600 } |
2383 if (_json.containsKey("nextPageToken")) { | 4601 if (_json.containsKey("nextPageToken")) { |
2384 nextPageToken = _json["nextPageToken"]; | 4602 nextPageToken = _json["nextPageToken"]; |
2385 } | 4603 } |
2386 } | 4604 } |
2387 | 4605 |
2388 core.Map toJson() { | 4606 core.Map<core.String, core.Object> toJson() { |
2389 var _json = new core.Map(); | 4607 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2390 if (clients != null) { | 4608 if (creativeStatusRows != null) { |
2391 _json["clients"] = clients.map((value) => (value).toJson()).toList(); | 4609 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); |
2392 } | 4610 } |
2393 if (nextPageToken != null) { | 4611 if (nextPageToken != null) { |
2394 _json["nextPageToken"] = nextPageToken; | 4612 _json["nextPageToken"] = nextPageToken; |
| 4613 } |
| 4614 return _json; |
| 4615 } |
| 4616 } |
| 4617 |
| 4618 /** |
| 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; |
2395 } | 4655 } |
2396 return _json; | 4656 return _json; |
2397 } | 4657 } |
2398 } | 4658 } |
2399 | 4659 |
2400 /** A response for listing creatives. */ | 4660 /** |
2401 class ListCreativesResponse { | 4661 * Response message for listing the metrics that are measured in number of |
2402 /** The list of creatives. */ | 4662 * impressions. |
2403 core.List<Creative> creatives; | 4663 */ |
| 4664 class ListImpressionMetricsResponse { |
| 4665 /** List of rows, each containing a set of impression metrics. */ |
| 4666 core.List<ImpressionMetricsRow> impressionMetricsRows; |
2404 /** | 4667 /** |
2405 * A token to retrieve the next page of results. | 4668 * A token to retrieve the next page of results. |
2406 * Pass this value in the | 4669 * Pass this value in the |
2407 * ListCreativesRequest.page_token | 4670 * ListImpressionMetricsRequest.pageToken |
2408 * field in the subsequent call to `ListCreatives` method to retrieve the next | 4671 * field in the subsequent call to the |
2409 * page of results. | 4672 * accounts.filterSets.impressionMetrics.list |
| 4673 * method to retrieve the next page of results. |
2410 */ | 4674 */ |
2411 core.String nextPageToken; | 4675 core.String nextPageToken; |
2412 | 4676 |
2413 ListCreativesResponse(); | 4677 ListImpressionMetricsResponse(); |
2414 | 4678 |
2415 ListCreativesResponse.fromJson(core.Map _json) { | 4679 ListImpressionMetricsResponse.fromJson(core.Map _json) { |
2416 if (_json.containsKey("creatives")) { | 4680 if (_json.containsKey("impressionMetricsRows")) { |
2417 creatives = _json["creatives"].map((value) => new Creative.fromJson(value)
).toList(); | 4681 impressionMetricsRows = _json["impressionMetricsRows"].map((value) => new
ImpressionMetricsRow.fromJson(value)).toList(); |
2418 } | 4682 } |
2419 if (_json.containsKey("nextPageToken")) { | 4683 if (_json.containsKey("nextPageToken")) { |
2420 nextPageToken = _json["nextPageToken"]; | 4684 nextPageToken = _json["nextPageToken"]; |
2421 } | 4685 } |
2422 } | 4686 } |
2423 | 4687 |
2424 core.Map toJson() { | 4688 core.Map<core.String, core.Object> toJson() { |
2425 var _json = new core.Map(); | 4689 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2426 if (creatives != null) { | 4690 if (impressionMetricsRows != null) { |
2427 _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); | 4691 _json["impressionMetricsRows"] = impressionMetricsRows.map((value) => (val
ue).toJson()).toList(); |
2428 } | 4692 } |
2429 if (nextPageToken != null) { | 4693 if (nextPageToken != null) { |
2430 _json["nextPageToken"] = nextPageToken; | 4694 _json["nextPageToken"] = nextPageToken; |
2431 } | 4695 } |
2432 return _json; | 4696 return _json; |
2433 } | 4697 } |
2434 } | 4698 } |
2435 | 4699 |
2436 /** A response for listing creative and deal associations */ | 4700 /** Response message for listing all reasons that bids lost in the auction. */ |
2437 class ListDealAssociationsResponse { | 4701 class ListLosingBidsResponse { |
2438 /** The list of associations. */ | 4702 /** |
2439 core.List<CreativeDealAssociation> associations; | 4703 * List of rows, with counts of losing bids aggregated by loss reason (i.e. |
| 4704 * creative status). |
| 4705 */ |
| 4706 core.List<CreativeStatusRow> creativeStatusRows; |
2440 /** | 4707 /** |
2441 * A token to retrieve the next page of results. | 4708 * A token to retrieve the next page of results. |
2442 * Pass this value in the | 4709 * Pass this value in the |
2443 * ListDealAssociationsRequest.page_token | 4710 * ListLosingBidsRequest.pageToken |
2444 * field in the subsequent call to 'ListDealAssociation' method to retrieve | 4711 * field in the subsequent call to the |
2445 * the next page of results. | 4712 * accounts.filterSets.losingBids.list |
| 4713 * method to retrieve the next page of results. |
2446 */ | 4714 */ |
2447 core.String nextPageToken; | 4715 core.String nextPageToken; |
2448 | 4716 |
2449 ListDealAssociationsResponse(); | 4717 ListLosingBidsResponse(); |
2450 | 4718 |
2451 ListDealAssociationsResponse.fromJson(core.Map _json) { | 4719 ListLosingBidsResponse.fromJson(core.Map _json) { |
2452 if (_json.containsKey("associations")) { | 4720 if (_json.containsKey("creativeStatusRows")) { |
2453 associations = _json["associations"].map((value) => new CreativeDealAssoci
ation.fromJson(value)).toList(); | 4721 creativeStatusRows = _json["creativeStatusRows"].map((value) => new Creati
veStatusRow.fromJson(value)).toList(); |
2454 } | 4722 } |
2455 if (_json.containsKey("nextPageToken")) { | 4723 if (_json.containsKey("nextPageToken")) { |
2456 nextPageToken = _json["nextPageToken"]; | 4724 nextPageToken = _json["nextPageToken"]; |
2457 } | 4725 } |
2458 } | 4726 } |
2459 | 4727 |
2460 core.Map toJson() { | 4728 core.Map<core.String, core.Object> toJson() { |
2461 var _json = new core.Map(); | 4729 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2462 if (associations != null) { | 4730 if (creativeStatusRows != null) { |
2463 _json["associations"] = associations.map((value) => (value).toJson()).toLi
st(); | 4731 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); |
2464 } | 4732 } |
2465 if (nextPageToken != null) { | 4733 if (nextPageToken != null) { |
2466 _json["nextPageToken"] = nextPageToken; | 4734 _json["nextPageToken"] = nextPageToken; |
2467 } | 4735 } |
2468 return _json; | 4736 return _json; |
2469 } | 4737 } |
2470 } | 4738 } |
2471 | 4739 |
2472 /** @OutputOnly The Geo criteria the restriction applies to. */ | 4740 /** @OutputOnly The Geo criteria the restriction applies to. */ |
2473 class LocationContext { | 4741 class LocationContext { |
2474 /** | 4742 /** |
2475 * IDs representing the geo location for this context. | 4743 * IDs representing the geo location for this context. |
2476 * Please refer to the | 4744 * Please refer to the |
2477 * [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-tab
le.csv) | 4745 * [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-tab
le.csv) |
2478 * file for different geo criteria IDs. | 4746 * file for different geo criteria IDs. |
2479 */ | 4747 */ |
2480 core.List<core.int> geoCriteriaIds; | 4748 core.List<core.int> geoCriteriaIds; |
2481 | 4749 |
2482 LocationContext(); | 4750 LocationContext(); |
2483 | 4751 |
2484 LocationContext.fromJson(core.Map _json) { | 4752 LocationContext.fromJson(core.Map _json) { |
2485 if (_json.containsKey("geoCriteriaIds")) { | 4753 if (_json.containsKey("geoCriteriaIds")) { |
2486 geoCriteriaIds = _json["geoCriteriaIds"]; | 4754 geoCriteriaIds = _json["geoCriteriaIds"]; |
2487 } | 4755 } |
2488 } | 4756 } |
2489 | 4757 |
2490 core.Map toJson() { | 4758 core.Map<core.String, core.Object> toJson() { |
2491 var _json = new core.Map(); | 4759 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2492 if (geoCriteriaIds != null) { | 4760 if (geoCriteriaIds != null) { |
2493 _json["geoCriteriaIds"] = geoCriteriaIds; | 4761 _json["geoCriteriaIds"] = geoCriteriaIds; |
2494 } | 4762 } |
2495 return _json; | 4763 return _json; |
2496 } | 4764 } |
2497 } | 4765 } |
2498 | 4766 |
| 4767 /** |
| 4768 * A metric value, with an expected value and a variance; represents a count |
| 4769 * that may be either exact or estimated (i.e. when sampled). |
| 4770 */ |
| 4771 class MetricValue { |
| 4772 /** The expected value of the metric. */ |
| 4773 core.String value; |
| 4774 /** |
| 4775 * The variance (i.e. square of the standard deviation) of the metric value. |
| 4776 * If value is exact, variance is 0. |
| 4777 * Can be used to calculate margin of error as a percentage of value, using |
| 4778 * the following formula, where Z is the standard constant that depends on the |
| 4779 * desired size of the confidence interval (e.g. for 90% confidence interval, |
| 4780 * use Z = 1.645): |
| 4781 * |
| 4782 * marginOfError = 100 * Z * sqrt(variance) / value |
| 4783 */ |
| 4784 core.String variance; |
| 4785 |
| 4786 MetricValue(); |
| 4787 |
| 4788 MetricValue.fromJson(core.Map _json) { |
| 4789 if (_json.containsKey("value")) { |
| 4790 value = _json["value"]; |
| 4791 } |
| 4792 if (_json.containsKey("variance")) { |
| 4793 variance = _json["variance"]; |
| 4794 } |
| 4795 } |
| 4796 |
| 4797 core.Map<core.String, core.Object> toJson() { |
| 4798 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4799 if (value != null) { |
| 4800 _json["value"] = value; |
| 4801 } |
| 4802 if (variance != null) { |
| 4803 _json["variance"] = variance; |
| 4804 } |
| 4805 return _json; |
| 4806 } |
| 4807 } |
| 4808 |
2499 /** Native content for a creative. */ | 4809 /** Native content for a creative. */ |
2500 class NativeContent { | 4810 class NativeContent { |
2501 /** | 4811 /** |
2502 * The name of the advertiser or sponsor, to be displayed in the ad creative. | 4812 * The name of the advertiser or sponsor, to be displayed in the ad creative. |
2503 */ | 4813 */ |
2504 core.String advertiserName; | 4814 core.String advertiserName; |
2505 /** The app icon, for app download ads. */ | 4815 /** The app icon, for app download ads. */ |
2506 Image appIcon; | 4816 Image appIcon; |
2507 /** A long description of the ad. */ | 4817 /** A long description of the ad. */ |
2508 core.String body; | 4818 core.String body; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 starRating = _json["starRating"]; | 4874 starRating = _json["starRating"]; |
2565 } | 4875 } |
2566 if (_json.containsKey("storeUrl")) { | 4876 if (_json.containsKey("storeUrl")) { |
2567 storeUrl = _json["storeUrl"]; | 4877 storeUrl = _json["storeUrl"]; |
2568 } | 4878 } |
2569 if (_json.containsKey("videoUrl")) { | 4879 if (_json.containsKey("videoUrl")) { |
2570 videoUrl = _json["videoUrl"]; | 4880 videoUrl = _json["videoUrl"]; |
2571 } | 4881 } |
2572 } | 4882 } |
2573 | 4883 |
2574 core.Map toJson() { | 4884 core.Map<core.String, core.Object> toJson() { |
2575 var _json = new core.Map(); | 4885 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2576 if (advertiserName != null) { | 4886 if (advertiserName != null) { |
2577 _json["advertiserName"] = advertiserName; | 4887 _json["advertiserName"] = advertiserName; |
2578 } | 4888 } |
2579 if (appIcon != null) { | 4889 if (appIcon != null) { |
2580 _json["appIcon"] = (appIcon).toJson(); | 4890 _json["appIcon"] = (appIcon).toJson(); |
2581 } | 4891 } |
2582 if (body != null) { | 4892 if (body != null) { |
2583 _json["body"] = body; | 4893 _json["body"] = body; |
2584 } | 4894 } |
2585 if (callToAction != null) { | 4895 if (callToAction != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 core.List<core.String> platforms; | 4932 core.List<core.String> platforms; |
2623 | 4933 |
2624 PlatformContext(); | 4934 PlatformContext(); |
2625 | 4935 |
2626 PlatformContext.fromJson(core.Map _json) { | 4936 PlatformContext.fromJson(core.Map _json) { |
2627 if (_json.containsKey("platforms")) { | 4937 if (_json.containsKey("platforms")) { |
2628 platforms = _json["platforms"]; | 4938 platforms = _json["platforms"]; |
2629 } | 4939 } |
2630 } | 4940 } |
2631 | 4941 |
2632 core.Map toJson() { | 4942 core.Map<core.String, core.Object> toJson() { |
2633 var _json = new core.Map(); | 4943 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2634 if (platforms != null) { | 4944 if (platforms != null) { |
2635 _json["platforms"] = platforms; | 4945 _json["platforms"] = platforms; |
2636 } | 4946 } |
2637 return _json; | 4947 return _json; |
2638 } | 4948 } |
2639 } | 4949 } |
2640 | 4950 |
| 4951 /** |
| 4952 * An open-ended realtime time range specified by the start timestamp. |
| 4953 * For filter sets that specify a realtime time range RTB metrics continue to |
| 4954 * be aggregated throughout the lifetime of the filter set. |
| 4955 */ |
| 4956 class RealtimeTimeRange { |
| 4957 /** The start timestamp of the real-time RTB metrics aggregation. */ |
| 4958 core.String startTimestamp; |
| 4959 |
| 4960 RealtimeTimeRange(); |
| 4961 |
| 4962 RealtimeTimeRange.fromJson(core.Map _json) { |
| 4963 if (_json.containsKey("startTimestamp")) { |
| 4964 startTimestamp = _json["startTimestamp"]; |
| 4965 } |
| 4966 } |
| 4967 |
| 4968 core.Map<core.String, core.Object> toJson() { |
| 4969 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4970 if (startTimestamp != null) { |
| 4971 _json["startTimestamp"] = startTimestamp; |
| 4972 } |
| 4973 return _json; |
| 4974 } |
| 4975 } |
| 4976 |
2641 /** A specific filtering status and how many times it occurred. */ | 4977 /** A specific filtering status and how many times it occurred. */ |
2642 class Reason { | 4978 class Reason { |
2643 /** | 4979 /** |
2644 * The number of times the creative was filtered for the status. The | 4980 * The number of times the creative was filtered for the status. The |
2645 * count is aggregated across all publishers on the exchange. | 4981 * count is aggregated across all publishers on the exchange. |
2646 */ | 4982 */ |
2647 core.String count; | 4983 core.String count; |
2648 /** | 4984 /** |
2649 * The filtering status code. Please refer to the | 4985 * The filtering status code. Please refer to the |
2650 * [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictiona
ries/creative-status-codes.txt) | 4986 * [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictiona
ries/creative-status-codes.txt) |
2651 * file for different statuses. | 4987 * file for different statuses. |
2652 */ | 4988 */ |
2653 core.int status; | 4989 core.int status; |
2654 | 4990 |
2655 Reason(); | 4991 Reason(); |
2656 | 4992 |
2657 Reason.fromJson(core.Map _json) { | 4993 Reason.fromJson(core.Map _json) { |
2658 if (_json.containsKey("count")) { | 4994 if (_json.containsKey("count")) { |
2659 count = _json["count"]; | 4995 count = _json["count"]; |
2660 } | 4996 } |
2661 if (_json.containsKey("status")) { | 4997 if (_json.containsKey("status")) { |
2662 status = _json["status"]; | 4998 status = _json["status"]; |
2663 } | 4999 } |
2664 } | 5000 } |
2665 | 5001 |
2666 core.Map toJson() { | 5002 core.Map<core.String, core.Object> toJson() { |
2667 var _json = new core.Map(); | 5003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2668 if (count != null) { | 5004 if (count != null) { |
2669 _json["count"] = count; | 5005 _json["count"] = count; |
2670 } | 5006 } |
2671 if (status != null) { | 5007 if (status != null) { |
2672 _json["status"] = status; | 5008 _json["status"] = status; |
2673 } | 5009 } |
2674 return _json; | 5010 return _json; |
2675 } | 5011 } |
2676 } | 5012 } |
2677 | 5013 |
| 5014 /** |
| 5015 * A relative date range, specified by an offset and a duration. |
| 5016 * The supported range of dates begins 30 days before today and ends today. |
| 5017 * I.e. the limits for these values are: |
| 5018 * offset_days >= 0 |
| 5019 * duration_days >= 1 |
| 5020 * offset_days + duration_days <= 30 |
| 5021 */ |
| 5022 class RelativeDateRange { |
| 5023 /** |
| 5024 * The number of days in the requested date range. E.g. for a range spanning |
| 5025 * today, 1. For a range spanning the last 7 days, 7. |
| 5026 */ |
| 5027 core.int durationDays; |
| 5028 /** |
| 5029 * The end date of the filter set, specified as the number of days before |
| 5030 * today. E.g. for a range where the last date is today, 0. |
| 5031 */ |
| 5032 core.int offsetDays; |
| 5033 |
| 5034 RelativeDateRange(); |
| 5035 |
| 5036 RelativeDateRange.fromJson(core.Map _json) { |
| 5037 if (_json.containsKey("durationDays")) { |
| 5038 durationDays = _json["durationDays"]; |
| 5039 } |
| 5040 if (_json.containsKey("offsetDays")) { |
| 5041 offsetDays = _json["offsetDays"]; |
| 5042 } |
| 5043 } |
| 5044 |
| 5045 core.Map<core.String, core.Object> toJson() { |
| 5046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5047 if (durationDays != null) { |
| 5048 _json["durationDays"] = durationDays; |
| 5049 } |
| 5050 if (offsetDays != null) { |
| 5051 _json["offsetDays"] = offsetDays; |
| 5052 } |
| 5053 return _json; |
| 5054 } |
| 5055 } |
| 5056 |
2678 /** A request for removing the association between a deal and a creative. */ | 5057 /** A request for removing the association between a deal and a creative. */ |
2679 class RemoveDealAssociationRequest { | 5058 class RemoveDealAssociationRequest { |
2680 /** The association between a creative and a deal that should be removed. */ | 5059 /** The association between a creative and a deal that should be removed. */ |
2681 CreativeDealAssociation association; | 5060 CreativeDealAssociation association; |
2682 | 5061 |
2683 RemoveDealAssociationRequest(); | 5062 RemoveDealAssociationRequest(); |
2684 | 5063 |
2685 RemoveDealAssociationRequest.fromJson(core.Map _json) { | 5064 RemoveDealAssociationRequest.fromJson(core.Map _json) { |
2686 if (_json.containsKey("association")) { | 5065 if (_json.containsKey("association")) { |
2687 association = new CreativeDealAssociation.fromJson(_json["association"]); | 5066 association = new CreativeDealAssociation.fromJson(_json["association"]); |
2688 } | 5067 } |
2689 } | 5068 } |
2690 | 5069 |
2691 core.Map toJson() { | 5070 core.Map<core.String, core.Object> toJson() { |
2692 var _json = new core.Map(); | 5071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2693 if (association != null) { | 5072 if (association != null) { |
2694 _json["association"] = (association).toJson(); | 5073 _json["association"] = (association).toJson(); |
2695 } | 5074 } |
2696 return _json; | 5075 return _json; |
2697 } | 5076 } |
2698 } | 5077 } |
2699 | 5078 |
| 5079 /** |
| 5080 * A response may include multiple rows, breaking down along various dimensions. |
| 5081 * Encapsulates the values of all dimensions for a given row. |
| 5082 */ |
| 5083 class RowDimensions { |
| 5084 /** The time interval that this row represents. */ |
| 5085 TimeInterval timeInterval; |
| 5086 |
| 5087 RowDimensions(); |
| 5088 |
| 5089 RowDimensions.fromJson(core.Map _json) { |
| 5090 if (_json.containsKey("timeInterval")) { |
| 5091 timeInterval = new TimeInterval.fromJson(_json["timeInterval"]); |
| 5092 } |
| 5093 } |
| 5094 |
| 5095 core.Map<core.String, core.Object> toJson() { |
| 5096 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5097 if (timeInterval != null) { |
| 5098 _json["timeInterval"] = (timeInterval).toJson(); |
| 5099 } |
| 5100 return _json; |
| 5101 } |
| 5102 } |
| 5103 |
2700 /** @OutputOnly A security context. */ | 5104 /** @OutputOnly A security context. */ |
2701 class SecurityContext { | 5105 class SecurityContext { |
2702 /** The security types in this context. */ | 5106 /** The security types in this context. */ |
2703 core.List<core.String> securities; | 5107 core.List<core.String> securities; |
2704 | 5108 |
2705 SecurityContext(); | 5109 SecurityContext(); |
2706 | 5110 |
2707 SecurityContext.fromJson(core.Map _json) { | 5111 SecurityContext.fromJson(core.Map _json) { |
2708 if (_json.containsKey("securities")) { | 5112 if (_json.containsKey("securities")) { |
2709 securities = _json["securities"]; | 5113 securities = _json["securities"]; |
2710 } | 5114 } |
2711 } | 5115 } |
2712 | 5116 |
2713 core.Map toJson() { | 5117 core.Map<core.String, core.Object> toJson() { |
2714 var _json = new core.Map(); | 5118 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2715 if (securities != null) { | 5119 if (securities != null) { |
2716 _json["securities"] = securities; | 5120 _json["securities"] = securities; |
2717 } | 5121 } |
2718 return _json; | 5122 return _json; |
2719 } | 5123 } |
2720 } | 5124 } |
2721 | 5125 |
2722 /** The serving context for this restriction. */ | 5126 /** The serving context for this restriction. */ |
2723 class ServingContext { | 5127 class ServingContext { |
2724 /** | 5128 /** |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2757 location = new LocationContext.fromJson(_json["location"]); | 5161 location = new LocationContext.fromJson(_json["location"]); |
2758 } | 5162 } |
2759 if (_json.containsKey("platform")) { | 5163 if (_json.containsKey("platform")) { |
2760 platform = new PlatformContext.fromJson(_json["platform"]); | 5164 platform = new PlatformContext.fromJson(_json["platform"]); |
2761 } | 5165 } |
2762 if (_json.containsKey("securityType")) { | 5166 if (_json.containsKey("securityType")) { |
2763 securityType = new SecurityContext.fromJson(_json["securityType"]); | 5167 securityType = new SecurityContext.fromJson(_json["securityType"]); |
2764 } | 5168 } |
2765 } | 5169 } |
2766 | 5170 |
2767 core.Map toJson() { | 5171 core.Map<core.String, core.Object> toJson() { |
2768 var _json = new core.Map(); | 5172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2769 if (all != null) { | 5173 if (all != null) { |
2770 _json["all"] = all; | 5174 _json["all"] = all; |
2771 } | 5175 } |
2772 if (appType != null) { | 5176 if (appType != null) { |
2773 _json["appType"] = (appType).toJson(); | 5177 _json["appType"] = (appType).toJson(); |
2774 } | 5178 } |
2775 if (auctionType != null) { | 5179 if (auctionType != null) { |
2776 _json["auctionType"] = (auctionType).toJson(); | 5180 _json["auctionType"] = (auctionType).toJson(); |
2777 } | 5181 } |
2778 if (location != null) { | 5182 if (location != null) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2822 contexts = _json["contexts"].map((value) => new ServingContext.fromJson(va
lue)).toList(); | 5226 contexts = _json["contexts"].map((value) => new ServingContext.fromJson(va
lue)).toList(); |
2823 } | 5227 } |
2824 if (_json.containsKey("disapprovalReasons")) { | 5228 if (_json.containsKey("disapprovalReasons")) { |
2825 disapprovalReasons = _json["disapprovalReasons"].map((value) => new Disapp
roval.fromJson(value)).toList(); | 5229 disapprovalReasons = _json["disapprovalReasons"].map((value) => new Disapp
roval.fromJson(value)).toList(); |
2826 } | 5230 } |
2827 if (_json.containsKey("status")) { | 5231 if (_json.containsKey("status")) { |
2828 status = _json["status"]; | 5232 status = _json["status"]; |
2829 } | 5233 } |
2830 } | 5234 } |
2831 | 5235 |
2832 core.Map toJson() { | 5236 core.Map<core.String, core.Object> toJson() { |
2833 var _json = new core.Map(); | 5237 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2834 if (contexts != null) { | 5238 if (contexts != null) { |
2835 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); | 5239 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); |
2836 } | 5240 } |
2837 if (disapprovalReasons != null) { | 5241 if (disapprovalReasons != null) { |
2838 _json["disapprovalReasons"] = disapprovalReasons.map((value) => (value).to
Json()).toList(); | 5242 _json["disapprovalReasons"] = disapprovalReasons.map((value) => (value).to
Json()).toList(); |
2839 } | 5243 } |
2840 if (status != null) { | 5244 if (status != null) { |
2841 _json["status"] = status; | 5245 _json["status"] = status; |
2842 } | 5246 } |
2843 return _json; | 5247 return _json; |
2844 } | 5248 } |
2845 } | 5249 } |
2846 | 5250 |
2847 /** A request for stopping notifications for changes to creative Status. */ | 5251 /** A request for stopping notifications for changes to creative Status. */ |
2848 class StopWatchingCreativeRequest { | 5252 class StopWatchingCreativeRequest { |
2849 | 5253 |
2850 StopWatchingCreativeRequest(); | 5254 StopWatchingCreativeRequest(); |
2851 | 5255 |
2852 StopWatchingCreativeRequest.fromJson(core.Map _json) { | 5256 StopWatchingCreativeRequest.fromJson(core.Map _json) { |
2853 } | 5257 } |
2854 | 5258 |
2855 core.Map toJson() { | 5259 core.Map<core.String, core.Object> toJson() { |
2856 var _json = new core.Map(); | 5260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2857 return _json; | 5261 return _json; |
2858 } | 5262 } |
2859 } | 5263 } |
| 5264 |
| 5265 /** |
| 5266 * An interval of time, with an absolute start and end. |
| 5267 * This is included in the response, for several reasons: |
| 5268 * 1) The request may have specified start or end times relative to the time the |
| 5269 * request was sent; the response indicates the corresponding absolute time |
| 5270 * interval. |
| 5271 * 2) The request may have specified an end time past the latest time for which |
| 5272 * data was available (e.g. if requesting data for the today); the response |
| 5273 * indicates the latest time for which data was actually returned. |
| 5274 * 3) The response data for a single request may be broken down into multiple |
| 5275 * time intervals, if a time series was requested. |
| 5276 */ |
| 5277 class TimeInterval { |
| 5278 /** |
| 5279 * The timestamp marking the end of the range (exclusive) for which data is |
| 5280 * included. |
| 5281 */ |
| 5282 core.String endTime; |
| 5283 /** |
| 5284 * The timestamp marking the start of the range (inclusive) for which data is |
| 5285 * included. |
| 5286 */ |
| 5287 core.String startTime; |
| 5288 |
| 5289 TimeInterval(); |
| 5290 |
| 5291 TimeInterval.fromJson(core.Map _json) { |
| 5292 if (_json.containsKey("endTime")) { |
| 5293 endTime = _json["endTime"]; |
| 5294 } |
| 5295 if (_json.containsKey("startTime")) { |
| 5296 startTime = _json["startTime"]; |
| 5297 } |
| 5298 } |
| 5299 |
| 5300 core.Map<core.String, core.Object> toJson() { |
| 5301 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5302 if (endTime != null) { |
| 5303 _json["endTime"] = endTime; |
| 5304 } |
| 5305 if (startTime != null) { |
| 5306 _json["startTime"] = startTime; |
| 5307 } |
| 5308 return _json; |
| 5309 } |
| 5310 } |
2860 | 5311 |
2861 /** Video content for a creative. */ | 5312 /** Video content for a creative. */ |
2862 class VideoContent { | 5313 class VideoContent { |
2863 /** The URL to fetch a video ad. */ | 5314 /** The URL to fetch a video ad. */ |
2864 core.String videoUrl; | 5315 core.String videoUrl; |
2865 | 5316 |
2866 VideoContent(); | 5317 VideoContent(); |
2867 | 5318 |
2868 VideoContent.fromJson(core.Map _json) { | 5319 VideoContent.fromJson(core.Map _json) { |
2869 if (_json.containsKey("videoUrl")) { | 5320 if (_json.containsKey("videoUrl")) { |
2870 videoUrl = _json["videoUrl"]; | 5321 videoUrl = _json["videoUrl"]; |
2871 } | 5322 } |
2872 } | 5323 } |
2873 | 5324 |
2874 core.Map toJson() { | 5325 core.Map<core.String, core.Object> toJson() { |
2875 var _json = new core.Map(); | 5326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2876 if (videoUrl != null) { | 5327 if (videoUrl != null) { |
2877 _json["videoUrl"] = videoUrl; | 5328 _json["videoUrl"] = videoUrl; |
2878 } | 5329 } |
2879 return _json; | 5330 return _json; |
2880 } | 5331 } |
2881 } | 5332 } |
2882 | 5333 |
2883 /** A request for watching changes to creative Status. */ | 5334 /** A request for watching changes to creative Status. */ |
2884 class WatchCreativeRequest { | 5335 class WatchCreativeRequest { |
2885 /** | 5336 /** |
2886 * The Pub/Sub topic to publish notifications to. | 5337 * The Pub/Sub topic to publish notifications to. |
2887 * This topic must already exist and must give permission to | 5338 * This topic must already exist and must give permission to |
2888 * ad-exchange-buyside-reports@google.com to write to the topic. | 5339 * ad-exchange-buyside-reports@google.com to write to the topic. |
2889 * This should be the full resource name in | 5340 * This should be the full resource name in |
2890 * "projects/{project_id}/topics/{topic_id}" format. | 5341 * "projects/{project_id}/topics/{topic_id}" format. |
2891 */ | 5342 */ |
2892 core.String topic; | 5343 core.String topic; |
2893 | 5344 |
2894 WatchCreativeRequest(); | 5345 WatchCreativeRequest(); |
2895 | 5346 |
2896 WatchCreativeRequest.fromJson(core.Map _json) { | 5347 WatchCreativeRequest.fromJson(core.Map _json) { |
2897 if (_json.containsKey("topic")) { | 5348 if (_json.containsKey("topic")) { |
2898 topic = _json["topic"]; | 5349 topic = _json["topic"]; |
2899 } | 5350 } |
2900 } | 5351 } |
2901 | 5352 |
2902 core.Map toJson() { | 5353 core.Map<core.String, core.Object> toJson() { |
2903 var _json = new core.Map(); | 5354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2904 if (topic != null) { | 5355 if (topic != null) { |
2905 _json["topic"] = topic; | 5356 _json["topic"] = topic; |
2906 } | 5357 } |
2907 return _json; | 5358 return _json; |
2908 } | 5359 } |
2909 } | 5360 } |
OLD | NEW |