---
title: "Get an advertising category"
type: reference
method: GET
path: /rest-api/categories/advertising/{categoryId}.do
tag: "Categories"
---

# Get an advertising category

`GET https://YOUR-NETWORK-DOMAIN/rest-api/categories/advertising/{categoryId}.do`

One advertising category, with every field a create or an update accepts. Fields: id, name, and type - PUBLIC, offered to every account, or INTERNAL, offered only to roles granted the internal categories. The whole list is GET /rest-api/categories/advertising.do.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `categoryId` | integer | yes | `5` | Advertising category id |

## Responses

- `200` — {success, category: {id, name, type}}
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions
- `404` — No advertising category with this id

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/categories/advertising/5.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/categories/get-categories-advertising