---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com/docs/en/mobile-reports/segment-creation.md
  - https://appmetrica.yandex.com/docs/ru/mobile-reports/segment-creation.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/en/llms.txt

# Creating a segment

{% note alert "" %}

You can configure targeting for Yandex Direct ad campaigns based on AppMetrica segments. To do this, save a segment in AppMetrica and add it to [Yandex Audience](https://yandex.ru/support/audience/segments/app-metrica.html). For more information, see [How to set up retargeting](https://yandex.com/adv/news/how-to-set-up-retargeting-for-ads-for-mobile-apps).

{% endnote %}

To create a new segment:

1. Go to one of the reports in the AppMetrica interface.
2. Click **Segment not selected** → **Any segment** and add conditions. Conditions can be enabled and disabled.

   ![create a new segment](../../_images/segment-en.png){style="border: solid 1px #cccccc; max-width: 800px;"}

3. Click **Apply**. To save the resulting segment, click **Save as...** and enter the segment's name.

Use the same button to add report-level filters for the corresponding reports.

## Example of segmentation {#example}

Obtain session statistics with the following criteria:

- User installed the app while located in Russia.
- User starts the app on a tablet connected via Wi-Fi.
- User completed the **New event** event while located in a different country.

Follow these steps in the AppMetrica interface:

1. Go to the **Audience** report.
2. Click **Segment not selected** → **Any segment**
3. Set custom conditions:
   1. First condition **Installation** → **Geography of installation** → **Russia** → **Apply**.
   2. Second condition **Device** → **Device type** → **Tablet** → **Apply**.

4. Set the report conditions:

   1. First condition → **Events** → **New event** → **Apply**.
   2. Second condition → **Geography** → **Exclude** → **Russia** → **Apply**.
   3. Third condition → **Network** → **Connection type** → **Wi-Fi** → **Apply**.

5. To save a segment, click **Saved segments** → **Save segment**.

This will give you statistics about users who meet your criteria.

<!-- source: en/_includes/feedback-button.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button.md -->
