list method
Lists publisher profiles.
The returned publisher profiles aren't in any defined order. The order of the results might change. A new publisher profile can appear in any place in the list of returned results.
Request parameters:
parent - Required. Parent that owns the collection of publisher profiles
Format: buyers/{buyerId}
Value must have pattern ^buyers/\[^/\]+$.
filter - Optional query string using the
Cloud API list filtering
syntax.
pageSize - Requested page size. The server may return fewer results than
requested. If requested more than 500, the server will return 500 results
per page. If unspecified, the server will pick a default page size of 100.
pageToken - The page token as returned from a previous
ListPublisherProfilesResponse.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ListPublisherProfilesResponse.
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<ListPublisherProfilesResponse> list(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'filter': ?filter == null ? null : [filter],
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/publisherProfiles';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListPublisherProfilesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}