---
title: /display/v2/publishers/{publisherId}/display/creative-sizes
slug: campaign-reporting-apis/displayv2publisherspublisheriddisplaycreative-sizes
docTags: 
createdAt: 2026-03-25T11:01:52.241Z
---

{
  "id": "nki_fw-KliWjPjKa81n-E",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://<pcm-domain>/display/v2/publishers/{publisherId}/display/creative-sizes",
    "servers": [
      {
        "url": "https://<pcm-domain>/display/v2/publishers/{publisherId}/display/creative-sizes",
        "description": "Generated server url"
      }
    ],
    "name": "",
    "description": "Retrieve all the creative sizes for a publisher",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "publisherId",
          "type": "integer<int32>",
          "description": "",
          "format": "int32"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "PublisherCreativeSizeResponse[]",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "format": "int32"
              },
              {
                "name": "height",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "format": "int32"
              },
              {
                "name": "width",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "format": "int32"
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "string<DISPLAY | SPONSORED_BRAND>",
                "description": "",
                "enum": [
                  "DISPLAY",
                  "SPONSORED_BRAND"
                ]
              }
            ],
            "modelRef": "#/components/schemas/PublisherCreativeSizeResponse",
            "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": "MessageResponse",
            "schema": [
              {
                "name": "messages",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/Message",
                "customType": "Message[]",
                "schema": [
                  {
                    "name": "text",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "level",
                    "kind": "optional",
                    "type": "string<ERROR | WARNING>",
                    "description": "",
                    "enum": [
                      "ERROR",
                      "WARNING"
                    ]
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/MessageResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "C8jt6EV1KqUMq7dqzan-2",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://<pcm-domain>/display/v2/publishers/{publisherId}/display/creative-sizes \\\n     --header 'accept: application/json'"
        },
        {
          "id": "YgDX7UeZW_Xc2kuulbocN",
          "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>/display/v2/publishers/{publisherId}/display/creative-sizes\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "5TXajeuQNfCsjOVDRTrLM",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://<pcm-domain>/display/v2/publishers/{publisherId}/display/creative-sizes\")\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": "hnGxg-Z3ViTDn9Zo9dw-I",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://<pcm-domain>/display/v2/publishers/{publisherId}/display/creative-sizes\"\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": "C8jt6EV1KqUMq7dqzan-2"
    },
    "results": {
      "languages": [
        {
          "id": "t11orj6b7IgP1A98kpX4C",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"id\": \"\",\n    \"height\": \"\",\n    \"width\": \"\",\n    \"type\": \"\"\n  }\n]"
        },
        {
          "id": "tgMnbU7WFcIzj2JvMkm5R",
          "language": "401",
          "code": "// Unauthorized\n"
        },
        {
          "id": "-2OnZpsuBxn-COhBsd_Yo",
          "language": "403",
          "code": "// Forbidden\n"
        },
        {
          "id": "8BB0hm3RJ4VQfUWkoPKRD",
          "language": "404",
          "code": "// Not Found\n{\n  \"messages\": [\n    {\n      \"text\": \"\",\n      \"level\": \"\"\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "t11orj6b7IgP1A98kpX4C"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}