---
title: /v2/publishers/{publisherId}/reports/spa/product/distinct-values
slug: campaign-reporting-apis/v2publisherspublisheridreportsspaproductdistinct-values
docTags: 
createdAt: 2026-03-25T10:57:30.256Z
---

{
  "id": "M9LFZAuN61b9_7dU5rFtC",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://<pcm-domain>/v2/publishers/{publisherId}/reports/spa/product/distinct-values",
    "servers": [
      {
        "url": "https://<pcm-domain>/v2/publishers/{publisherId}/reports/spa/product/distinct-values",
        "description": "Generated server url"
      }
    ],
    "name": "",
    "description": "<p>Retrieve distinct values for some of the SPA product performance report fields.</p>\n<p><strong>Rules:</strong></p>\n<ul>\n<li><code>endDate</code> is inclusive and should be greater than or equal to <code>startDate</code>.</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "publisherId",
          "type": "integer<int32>",
          "description": "",
          "format": "int32"
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "startDate",
          "type": "string<date>",
          "description": "",
          "format": "date"
        },
        {
          "kind": "required",
          "name": "endDate",
          "type": "string<date>",
          "description": "",
          "format": "date"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "PublisherSpaProductReportDistinctValues",
            "schema": [
              {
                "name": "brands",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "markets",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              }
            ],
            "modelRef": "#/components/schemas/PublisherSpaProductReportDistinctValues",
            "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
          }
        ]
      },
      {
        "statusCode": "422",
        "description": "Unprocessable Entity",
        "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": "dxDT6i94VXFy6OJ6XFABH",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://<pcm-domain>/v2/publishers/{publisherId}/reports/spa/product/distinct-values?startDate=string%3Cdate%3E&endDate=string%3Cdate%3E' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "NWNlUAr-97i9_fUnnxhEE",
          "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}/reports/spa/product/distinct-values?startDate=string<date>&endDate=string<date>\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "pf434MvDhEW1TRhLQOxes",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://<pcm-domain>/v2/publishers/{publisherId}/reports/spa/product/distinct-values?startDate=string<date>&endDate=string<date>\")\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": "C-LcX_FpK63Zx0ihdTjoU",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://<pcm-domain>/v2/publishers/{publisherId}/reports/spa/product/distinct-values?startDate=string<date>&endDate=string<date>\"\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": "dxDT6i94VXFy6OJ6XFABH"
    },
    "results": {
      "languages": [
        {
          "id": "8IO4EkUPx8ryItB62Pkue",
          "language": "200",
          "code": "// OK\n{\n  \"brands\": [\n    \"\"\n  ],\n  \"markets\": [\n    \"\"\n  ]\n}"
        },
        {
          "id": "u_bTlnGPWLhcNLhjkBsCw",
          "language": "401",
          "code": "// Unauthorized\n"
        },
        {
          "id": "S68q2OeK2PjqPOAwn6ETb",
          "language": "403",
          "code": "// Forbidden\n"
        },
        {
          "id": "MG6bMoG6HNIyC92o5Hue3",
          "language": "404",
          "code": "// Not Found\n{\n  \"messages\": [\n    \"\"\n  ]\n}"
        },
        {
          "id": "XtcbTY-bDn2xmVbiLBlrJ",
          "language": "422",
          "code": "// Unprocessable Entity\n{\n  \"messages\": [\n    \"\"\n  ]\n}"
        }
      ],
      "selectedLanguageId": "8IO4EkUPx8ryItB62Pkue"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}