---
title: /v2/advertisers
slug: campaign-reporting-apis/3DOs-v2advertisers
docTags: 
createdAt: 2026-03-25T10:57:30.256Z
---

{
  "id": "Kh7-WE9annHXCTltPBJQ1",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://<pcm-domain>/v2/advertisers",
    "servers": [
      {
        "url": "https://<pcm-domain>/v2/advertisers",
        "description": "Generated server url"
      }
    ],
    "name": "",
    "description": "<p>Creates an advertiser under the organization of the user.</p>\n<p><strong>Rules:</strong></p>\n<ul>\n<li>Advertiser <em>name</em> must be unique under an organization.</li>\n<li>Brands must belong to the passed publishers. Brands of multiple publishers can be retrieved from API endpoint\n<a href=\"#/Publisher/getProductBrandsByPublisherIds\" target=\"_blank\">GET /v2/publishers/products/brands</a>.</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "ExternalAdvertiserRequest",
          "schema": [
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": "",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^(?!\\s*$).+"
            },
            {
              "name": "brands",
              "kind": "optional",
              "type": "array",
              "description": "",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "attributionProfiles",
              "kind": "optional",
              "type": "array",
              "description": "",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "archived",
              "kind": "optional",
              "type": "boolean",
              "description": "",
              "example": ""
            },
            {
              "name": "publisherIds",
              "kind": "optional",
              "type": "array",
              "description": "",
              "example": "",
              "itemType": "integer",
              "customType": "integer[]",
              "itemExample": "",
              "itemDefault": ""
            }
          ],
          "modelRef": "#/components/schemas/ExternalAdvertiserRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "AdvertiserBrandOverlapResponse",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "example": 0,
                "format": "int32"
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "organizationId",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "example": 0,
                "format": "int32"
              },
              {
                "name": "organizationName",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "publishers",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/IdNameResponse",
                "customType": "IdNameResponse[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "description": "",
                    "example": 0,
                    "format": "int32"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  }
                ]
              },
              {
                "name": "brands",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "attributionProfiles",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "createdAt",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "modifiedAt",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "archived",
                "kind": "optional",
                "type": "boolean",
                "description": "",
                "example": ""
              },
              {
                "name": "brandAdvertiserOverlap",
                "kind": "optional",
                "type": "map",
                "description": "",
                "example": "",
                "customType": "map<string, string[]>",
                "schema": []
              }
            ],
            "modelRef": "#/components/schemas/AdvertiserBrandOverlapResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "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": "pWPkKDyN7rgzy0kR8hOQF",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://<pcm-domain>/v2/advertisers \\\n     --header 'accept: application/json'"
        },
        {
          "id": "lghhp3iIDGRSyBpXGp7tz",
          "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: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://<pcm-domain>/v2/advertisers\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "YpLjAmybZeyVT3vfVZFmb",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://<pcm-domain>/v2/advertisers\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "hkIMB0SnoEAno2DyMwcjb",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://<pcm-domain>/v2/advertisers\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "pWPkKDyN7rgzy0kR8hOQF"
    },
    "results": {
      "languages": [
        {
          "id": "8zpM0v-V-TqaP8rt_an_3",
          "language": "200",
          "code": "// OK\n{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"organizationId\": \"\",\n  \"organizationName\": \"\",\n  \"publishers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"brands\": [\n    \"\"\n  ],\n  \"attributionProfiles\": [\n    \"\"\n  ],\n  \"createdAt\": \"\",\n  \"modifiedAt\": \"\",\n  \"archived\": false,\n  \"brandAdvertiserOverlap\": \"\"\n}"
        },
        {
          "id": "W9n4iSnrDsZETmAXhFqgp",
          "language": "401",
          "code": "// Unauthorized\n"
        },
        {
          "id": "Ry4d5mxS_TXQf_PRwGz5Q",
          "language": "403",
          "code": "// Forbidden\n"
        },
        {
          "id": "CUKiR3-6ynUSmM5JVOfRi",
          "language": "422",
          "code": "// Unprocessable Entity\n{\n  \"messages\": [\n    \"\"\n  ]\n}"
        }
      ],
      "selectedLanguageId": "8zpM0v-V-TqaP8rt_an_3"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}