---
updatedAt: 2026-09-24T11:53:05.000Z
agentTools:
  projectIndex: https://developers.taboola.com/backstage-api/llms.txt
---

# Update Marketplace Audience Targeting

Update *Marketplace Audience* Targeting (aka *Audience Segment* Targeting) for the specified campaign.

<div class="not-prose mt-4 pt-4 border-t border-gray-100 text-sm text-gray-700"><strong class="font-semibold">Rate limit:</strong> <a href="#rate-limit">Tier 1</a></div>

### VALID request examples:

```json Target ALL
{
   "collection": []
}
```
```json Include Specified Segments
{
    "collection": [
        {
            "collection": [
                158354,
                84965,
                15495,
                167,
                1687024,
                3119
            ],
            "type": "INCLUDE"
        }
    ]
}
```

> 🚧 Audience Targeting does *not* support a PATCH operation - the submitted values *overwrite* the old ones.

> 📘 For a successful request, the *same* object is returned in the *response*.

The following code snippets depict an initial, default state of the Campaign *without* targeting - followed by its updated state *with* targeting:

```json Campaign Object (Default)
{
   // other Campaign fields..
   "audience_segments_multi_targeting": {
      "state": "ALL",
      "value": null,
      "href": "https://backstage.taboola.com/backstage/api/1.0/demo-account/campaigns/1234/targeting/audience_segments"
   }
}
```
```json Campaign Object (Updated)
{
   // other Campaign fields..
   "audience_segments_multi_targeting": {
      "state": "EXISTS",
      "value": null,
      "href": "https://backstage.taboola.com/backstage/api/1.0/demo-account/campaigns/1234/targeting/audience_segments"
   }
}
```

### INVALID request example:

```json Exclude Specified Segments
{
    "collection": [
        {
            "collection": [
                158354,
                84965,
                15495,
                167,
                1687024,
                3119
            ],
            "type": "EXCLUDE"
        }
    ]
}
```

```json 400 (Bad Request)
{
    "http_status": 400,
    "message": "This configuration is not allowed. Contact support to change the campaign's audience targeting settings",
    "offending_field": "audience_segments_targeting.collection[0].type"
}
```

> 🚧 *Marketplace* Audience Targeting does not support EXCLUDE.

> 📘 Remove An Audience
>
> To *remove* an audience, re-submit a *new* collection (omitting any relevant audiences).

> 📘 Remove All Audiences
>
> To remove *all* audiences, submit an *empty* collection.

## Rate limit

> 🚧 Rate limit
>
> **Tier 1.** Audience segment targeting has its own write budget, separate both from its reads and from every other targeting type.
>
> See [Rate limits](https://developers.taboola.com/backstage-api/reference/rate-limits) for the request allowance each tier carries.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "backstage-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://backstage.taboola.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://backstage.taboola.com/backstage/oauth/token",
            "scopes": {}
          },
          "password": {
            "tokenUrl": "https://backstage.taboola.com/backstage/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "paths": {
    "/backstage/api/1.0/{account_id}/campaigns/{campaign_id}/targeting/audience_segments": {
      "post": {
        "summary": "Update Marketplace Audience Targeting",
        "description": "Update *Marketplace Audience* Targeting (aka *Audience Segment* Targeting) for the specified campaign.\n\n<div class=\"not-prose mt-4 pt-4 border-t border-gray-100 text-sm text-gray-700\"><strong class=\"font-semibold\">Rate limit:</strong> <a href=\"#rate-limit\">Tier 1</a></div>",
        "operationId": "update-audience-segment-targeting",
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "description": "An *alphabetic* ID. See [Get Account Details](ref:get-account-details).",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "A *numeric* ID.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "string",
                    "description": "An [Audience Targeting Object](ref:audience-targeting-object)",
                    "default": "{     \"collection\": [         {             \"collection\": [                 158354,                 84965,                 15495,                 167,                 1687024,                 3119             ],             \"type\": \"INCLUDE\"         }     ] }",
                    "format": "json"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"collection\": [\n        {\n            \"collection\": [\n                158354,\n                84965,\n                15495,\n                167,\n                1687024,\n                3119\n            ],\n            \"type\": \"INCLUDE\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "collection": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "collection": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "example": 158354,
                              "default": 0
                            }
                          },
                          "type": {
                            "type": "string",
                            "example": "INCLUDE"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  }
}
```