GET https://admanager.googleapis.com/v1/{parent}/roles
Path parameters
Parameters
parent
string
Required. The parent, which owns this collection of Roles. Format:networks/{networkCode}
Query parameters
Parameters
pageSize
integer
Optional. The maximum number ofRolesto return. The service may return fewer than this value. If unspecified, at most 50Roleswill 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 previousroles.listcall. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided toroles.listmust match the call that provided the page token.
A token, which can be sent aspageTokento retrieve the next page. If this field is omitted, there are no subsequent pages.
totalSize
integer
Total number ofRoleobjects. If a filter was included in the request, this reflects the total number after the filtering is applied.
totalSizewon't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter$fieldsorfields, or by using the HTTP/gRPC headerX-Goog-FieldMask.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[[["\u003cp\u003eRetrieves a list of \u003ccode\u003eRole\u003c/code\u003e objects for a given network using the \u003ccode\u003eGET\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eAllows for filtering, sorting, and pagination of results using query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of \u003ccode\u003eRole\u003c/code\u003e objects, a token for pagination, and the total number of roles.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/admanager\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This API uses a `GET` request to retrieve a list of `Role` objects via the URL `https://admanager.googleapis.com/v1/{parent}/roles`. The `parent` path parameter is required. Optional query parameters include `pageSize`, `pageToken`, `filter`, `orderBy`, and `skip` for pagination and filtering. The request body must be empty. The response contains an array of `Role` objects, a `nextPageToken` for pagination, and `totalSize`, all formatted in JSON. It requires the OAuth scope `https://www.googleapis.com/auth/admanager`.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListRolesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAPI to retrieve a list of `Role` objects.\n\nHTTP request\n\n`GET https://admanager.googleapis.com/v1/{parent}/roles`\n\nPath parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent, which owns this collection of Roles. Format: `networks/{networkCode}` |\n\nQuery parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of `Roles` to return. The service may return fewer than this value. If unspecified, at most 50 `Roles` will be returned. The maximum value is 1000; values greater than 1000 will be coerced to 1000. |\n| `pageToken` | `string` Optional. A page token, received from a previous `roles.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `roles.list` must match the call that provided the page token. |\n| `filter` | `string` Optional. Expression to filter the response. See syntax details at \u003chttps://developers.google.com/ad-manager/api/beta/filters\u003e |\n| `orderBy` | `string` Optional. Expression to specify sorting order. See syntax details at \u003chttps://developers.google.com/ad-manager/api/beta/filters#order\u003e |\n| `skip` | `integer` Optional. Number of individual resources to skip while paginating. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body Response object for `ListRolesRequest` containing matching `Role` objects.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"roles\": [ { object (/ad-manager/api/beta/reference/rest/v1/networks.roles#Role) } ], \"nextPageToken\": string, \"totalSize\": integer } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `roles[]` | `object (`[Role](/ad-manager/api/beta/reference/rest/v1/networks.roles#Role)`)` The `Role` objects from the specified network. |\n| `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. |\n| `totalSize` | `integer` Total number of `Role` objects. If a filter was included in the request, this reflects the total number after the filtering is applied. `totalSize` won't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC header `X-Goog-FieldMask`. For more information, see \u003chttps://developers.google.com/ad-manager/api/beta/field-masks\u003e |\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admanager`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]