---
title: "GET /userprofiles/{userprofilesId}/contentCategories"
method: GET
path: "/userprofiles/{userprofilesId}/contentCategories"
tags: ["contentCategories"]
---

# GET /userprofiles/{userprofilesId}/contentCategories

`GET /userprofiles/{userprofilesId}/contentCategories`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/contentCategories`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/dfatrafficking`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dfatrafficking`
- TypeScript: <https://skmtc.dev/google/apis/dfareporting/docs/userprofiles/:userprofilesId/contentCategories/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of content categories, possibly filtered. This method supports paging.

## Path parameters

- `userprofilesId` string, required

## Query parameters

- `ids` string[]
- `maxResults` integer
- `pageToken` string
- `searchString` string
- `sortField` 'ID' | 'NAME'
- `sortOrder` 'ASCENDING' | 'DESCENDING'

## Response `200`

Successful response

- ContentCategoriesListResponse: Content Category List Response
  - `contentCategories` ContentCategory[]: Content category collection.
    - `accountId` string, int64: Account ID of this content category. This is a read-only field that can be left blank.
    - `id` string, int64: ID of this content category. This is a read-only, auto-generated field.
    - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#contentCategory".
    - `name` string: Name of this content category. This is a required field and must be less than 256 characters long and unique among content categories of the same account.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#contentCategoriesListResponse".
  - `nextPageToken` string: Pagination token to be used for the next list operation.

---

[API](https://skmtc.dev/google/apis/dfareporting.md) - [All operations](https://skmtc.dev/google/apis/dfareporting/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dfareporting/revisions/be73a9a450de?raw)
