list method
List the auction packages.
Buyers can use the URL path "/v1/buyers/{accountId}/auctionPackages" to list auction packages for the current buyer and its clients. Bidders can use the URL path "/v1/bidders/{accountId}/auctionPackages" to list auction packages for the bidder, its media planners, its buyers, and all their clients.
Request parameters:
parent
- Required. Name of the parent buyer that can access the auction
package. Format: buyers/{accountId}
. When used with a bidder account,
the auction packages that the bidder, its media planners, its buyers and
clients are subscribed to will be listed, in the format
bidders/{accountId}
.
Value must have pattern ^bidders/\[^/\]+$
.
filter
- Optional. Optional query string using the [Cloud API list
filtering syntax](/authorized-buyers/apis/guides/list-filters). Only
supported when parent is bidder. Supported columns for filtering are: *
displayName * createTime * updateTime * eligibleSeatIds
orderBy
- Optional. An optional query string to sort auction packages
using the
Cloud API sorting syntax.
If no sort order is specified, results will be returned in an arbitrary
order. Only supported when parent is bidder. Supported columns for sorting
are: * displayName * createTime * updateTime
pageSize
- Requested page size. The server may return fewer results than
requested. Max allowed page size is 500.
pageToken
- The page token as returned.
ListAuctionPackagesResponse.nextPageToken
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListAuctionPackagesResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<ListAuctionPackagesResponse> list(
core.String parent, {
core.String? filter,
core.String? orderBy,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (orderBy != null) 'orderBy': [orderBy],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/auctionPackages';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListAuctionPackagesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}