---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/live/RetargetingCondition.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/live/RetargetingCondition.md
  - href: en/live/RetargetingCondition.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# RetargetingCondition (Live)
Creates, modifies, deletes, or returns a retargeting condition.

{% note alert %}

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions Live 4 and 5, see the [Migration guide](https://yandex.com/dev/direct/doc/migration/concepts/methods.md).

{% endnote %}


The type of action to perform is specified in the `Action` parameter:
- [Add](https://yandex.com/dev/direct/doc/dg-v4/en/live/RetargetingCondition_Add.md) — Creates a retargeting condition.
- [Update](https://yandex.com/dev/direct/doc/dg-v4/en/live/RetargetingCondition_Update.md) — Changes a retargeting condition.
- [Delete](https://yandex.com/dev/direct/doc/dg-v4/en/live/RetargetingCondition_Delete.md) — Removes a retargeting condition.
- [Get](https://yandex.com/dev/direct/doc/dg-v4/en/live/RetargetingCondition_Get.md) — Returns a retargeting condition.

## Restrictions

A maximum of 2000 retargeting conditions can be created per username.

A retargeting condition can contain a maximum of 50 groups. A group can contain a maximum of 250 goals or segments.

A retargeting condition that uses Yandex Metrica segments or Yandex Audience segments must contain at least one "all" or "or" type of group. A retargeting condition that consists solely of "not" groups can only use Yandex Metrica goals.

## Related information

- [Retargeting](https://yandex.com/dev/direct/doc/dg-v4/en/concepts/retargeting.md)

