---
title: /v2/publishers/{publisherId}/markets/{marketId}/products/categories
slug: campaign-reporting-apis/v2publisherspublisheridmarketsmarketidproductscategories
docTags: 
createdAt: 2026-03-25T10:57:30.256Z
---

{
  "id": "JSGtgvpBttX2SrujYPJmd",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://<pcm-domain>/v2/publishers/{publisherId}/markets/{marketId}/products/categories",
    "servers": [
      {
        "url": "https://<pcm-domain>/v2/publishers/{publisherId}/markets/{marketId}/products/categories",
        "description": "Generated server url"
      }
    ],
    "name": "",
    "description": "Retrieves the product categories defined for the given publisher and market.\nThe result can be used for filtering products in the search API endpoint.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "publisherId",
          "type": "integer<int32>",
          "description": "",
          "format": "int32"
        },
        {
          "kind": "required",
          "name": "marketId",
          "type": "integer<int32>",
          "description": "",
          "format": "int32"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "IdNameResponse[]",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "example": 0,
                "format": "int32"
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/IdNameResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ExceptionResponse",
            "schema": [
              {
                "name": "messages",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              }
            ],
            "modelRef": "#/components/schemas/ExceptionResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "_3g04Rroyn7ig8uba3tI4",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://<pcm-domain>/v2/publishers/{publisherId}/markets/{marketId}/products/categories \\\n     --header 'accept: application/json'"
        },
        {
          "id": "HJMqlGgRBDSY96n7w63PH",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://<pcm-domain>/v2/publishers/{publisherId}/markets/{marketId}/products/categories\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "ikH0Zt8ss1TeneW1wVSqH",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://<pcm-domain>/v2/publishers/{publisherId}/markets/{marketId}/products/categories\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "A44qh4UqI3_esdKQ0DuMw",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://<pcm-domain>/v2/publishers/{publisherId}/markets/{marketId}/products/categories\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "_3g04Rroyn7ig8uba3tI4"
    },
    "results": {
      "languages": [
        {
          "id": "fXZpG6o9x_W1FpRvpOyQ4",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
        },
        {
          "id": "kmZ87F8NfV9nIedUq4zgC",
          "language": "401",
          "code": "// Unauthorized\n"
        },
        {
          "id": "WC5mNFi3AtED1RcEoDhcY",
          "language": "403",
          "code": "// Forbidden\n"
        },
        {
          "id": "UVddpQOSRF3kikgyNUbsl",
          "language": "404",
          "code": "// Not Found\n{\n  \"messages\": [\n    \"\"\n  ]\n}"
        }
      ],
      "selectedLanguageId": "fXZpG6o9x_W1FpRvpOyQ4"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}