> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/guides-and-best-practices/orchestration/how-to-exclude-an-audience-from-your-targeting.md).

# How to exclude an audience from your targeting?

You can exclude a list of users' IDs from your targeting with audiences.

### 1. Create an Audience

There are three different ways to create an [audience](https://doc.batch.com/getting-started/features/customer-engagement-platform/profiles/audiences):

* Using the [**Audience API**](https://doc.batch.com/developer/api/cep/audiences/create)
* By [uploading a .CSV or .TXT file to Batch](https://doc.batch.com/guides-and-best-practices/profiles/how-to-import-an-audience-to-target-specific-users) from the dashboard **Data → Audiences** tab.
* Via the **Audience Importer**. The importer automatically imports audiences from your data stores via (S)FTPs *(Audience Importer setup is upon request. Reach support or your CSM to know more).*

{% hint style="info" %}
An audience can contain **Customer User IDs**, **Emails**, or **Install IDs**.
{% endhint %}

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2F7SZzV6YkAjm6f0C3Z9PC%2FCleanShot%202026-08-13%20at%2011.58.29%402x.png?alt=media&amp;token=d259405a-98f9-457a-9860-2cec9fe182eb" alt=""><figcaption></figcaption></figure>

The dashboard will **automatically** **display the number of IDs** that match your audience:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FPM3Ee6sDJVJMZF24T3T5%2FCleanShot%202025-04-28%20at%2017.08.35%402x.png?alt=media&amp;token=b0347519-987d-4f2c-852f-89036dd2bf64" alt=""><figcaption></figcaption></figure>

### 2. Exclude it from your targeting

In your campaign/automation creation form, in the **Segmentation** part, click on **Use audience**:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2F91qFZR0414b112bEXzAw%2FCleanShot%202025-04-28%20at%2017.14.22%402x.png?alt=media&amp;token=636398cc-982d-4ddd-9cb1-4e10470061e4" alt=""><figcaption></figcaption></figure>

Choose the audience you want to exclude in the dropdown menu:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FDpKDAQ3DHuTVQ7cf5Jq2%2FCleanShot%202025-04-28%20at%2017.16.12%402x.png?alt=media&amp;token=464b8559-c788-49b8-bb24-51666de175e7" alt=""><figcaption></figcaption></figure>

Select "**contains none of**", so that the segmentation now excludes the audience you picked:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2F8EBcNo2wRuYVVoKiD3en%2FCleanShot%202025-04-28%20at%2017.17.15%402x.png?alt=media&amp;token=4ff366a0-f895-4a51-9335-3295bb306ebc" alt=""><figcaption></figcaption></figure>

You can exclude as many audiences as you want:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FVaxBy3wogKa43ynZReTI%2FCleanShot%202025-04-28%20at%2017.19.20%402x.png?alt=media&amp;token=e3364e3e-480d-4e26-9bb8-448ecbe61f25" alt=""><figcaption></figcaption></figure>

You can now exclude audiences from your campaigns targeting! :sparkles:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.batch.com/guides-and-best-practices/orchestration/how-to-exclude-an-audience-from-your-targeting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
