list method
Lists publisher connections for a given bidder.
Request parameters:
parent
- Required. Name of the bidder for which publishers have
initiated connections. The pattern for this resource is bidders/{bidder}
where {bidder}
represents the account ID of the bidder.
Value must have pattern ^bidders/\[^/\]+$
.
filter
- Query string to filter publisher connections. Connections can
be filtered by displayName
, publisherPlatform
, and biddingState
. If
no filter is specified, all publisher connections will be returned.
Example: 'displayName="Great Publisher*" AND publisherPlatform=ADMOB AND
biddingState != PENDING' See https://google.aip.dev/160 for more
information about filtering syntax.
orderBy
- Order specification by which results should be sorted. If no
sort order is specified, the results will be returned in alphabetic order
based on the publisher's publisher code. Results can be sorted by
createTime
. Example: 'createTime DESC'.
pageSize
- Requested page size. The server may return fewer results than
requested (due to timeout constraint) even if more are available through
another call. If unspecified, the server will pick an appropriate default.
Acceptable values are 1 to 5000, inclusive.
pageToken
- A token identifying a page of results the server should
return. Typically, this is the value of
ListPublisherConnectionsResponse.nextPageToken returned from the previous
call to the 'ListPublisherConnections' method.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListPublisherConnectionsResponse.
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<ListPublisherConnectionsResponse> 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') + '/publisherConnections';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListPublisherConnectionsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}