Method: networks.pricingRules.list

API to retrieve a list of PricingRule objects.

HTTP request

GET https://admanager.googleapis.com/v1/{parent}/pricingRules

Path parameters

Parameters
parent

string

Required. The parent, which owns this collection of PricingRules. Format: networks/{networkCode}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of PricingRules to return. The service may return fewer than this value. If unspecified, at most 50 PricingRules will be returned. The maximum value is 1000; values greater than 1000 will be coerced to 1000.

pageToken

string

Optional. A page token, received from a previous pricingRules.list call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to pricingRules.list must match the call that provided the page token.

filter

string

Optional. Expression to filter the response. See syntax details at https://developers.google.com/ad-manager/api/beta/filters

Syntax summary: double-quoted "..." (never '...') strings and RFC 3339 timestamps, full resource names on reference fields (for example, order = "networks/123/orders/456", not *Id or bare IDs), prefix or suffix * wildcards with = (displayName = "foo*"), : for substring or repeated-field matching, unquoted enums and booleans, uppercase AND/OR/NOT, and standalone IN(field, SET(v1, v2)) (not field IN (...)).

Filterable fields:

  • displayName
  • name
  • status
orderBy

string

Optional. Expression to specify sorting order. See syntax details at https://developers.google.com/ad-manager/api/beta/filters#order

skip

integer

Optional. Number of individual resources to skip while paginating.

Request body

The request body must be empty.

Response body

Response object for ListPricingRulesRequest containing matching PricingRule objects.

If successful, the response body contains data with the following structure:

JSON representation
{
  "pricingRules": [
    {
      object (PricingRule)
    }
  ],
  "nextPageToken": string,
  "totalSize": integer
}
Fields
pricingRules[]

object (PricingRule)

The PricingRule objects from the specified network.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

totalSize

integer

Total number of PricingRule objects. If a filter was included in the request, this reflects the total number after the filtering is applied.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/admanager
  • https://www.googleapis.com/auth/admanager.readonly

For more information, see the OAuth 2.0 Overview.