list method

Future<FloodlightActivityGroupsListResponse> list(
  1. String profileId, {
  2. String? advertiserId,
  3. String? floodlightConfigurationId,
  4. List<String>? ids,
  5. int? maxResults,
  6. String? pageToken,
  7. String? searchString,
  8. String? sortField,
  9. String? sortOrder,
  10. String? type,
  11. String? $fields,
})

Retrieves a list of floodlight activity groups, possibly filtered.

This method supports paging.

Request parameters:

profileId - User profile ID associated with this request. Value must have pattern ^\[^/\]+$.

advertiserId - Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.

floodlightConfigurationId - Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.

ids - Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.

maxResults - Maximum number of results to return.

pageToken - Value of the nextPageToken from the previous result page.

searchString - Allows searching for objects by name or ID. Wildcards () are allowed. For example, "floodlightactivitygroup2015" will return objects with names like "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "floodlightactivitygroup" will match objects with name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply "floodlightactivitygroup".

sortField - Field by which to sort the list. Possible string values are:

  • "ID"
  • "NAME"

sortOrder - Order of sorted results. Possible string values are:

  • "ASCENDING" : Ascending order.
  • "DESCENDING" : Descending order.

type - Select only floodlight activity groups with the specified floodlight activity group type. Possible string values are:

  • "COUNTER"
  • "SALE"

$fields - Selector specifying which fields to include in a partial response.

Completes with a FloodlightActivityGroupsListResponse.

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<FloodlightActivityGroupsListResponse> list(
  core.String profileId, {
  core.String? advertiserId,
  core.String? floodlightConfigurationId,
  core.List<core.String>? ids,
  core.int? maxResults,
  core.String? pageToken,
  core.String? searchString,
  core.String? sortField,
  core.String? sortOrder,
  core.String? type,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (advertiserId != null) 'advertiserId': [advertiserId],
    if (floodlightConfigurationId != null)
      'floodlightConfigurationId': [floodlightConfigurationId],
    if (ids != null) 'ids': ids,
    if (maxResults != null) 'maxResults': ['${maxResults}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (searchString != null) 'searchString': [searchString],
    if (sortField != null) 'sortField': [sortField],
    if (sortOrder != null) 'sortOrder': [sortOrder],
    if (type != null) 'type': [type],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'userprofiles/' +
      core.Uri.encodeFull('$profileId') +
      '/floodlightActivityGroups';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return FloodlightActivityGroupsListResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}