---
title: isInUse
slug: campaign/dev-docs/isinuse
createdAt: 2026-08-06T15:53:40.513Z
---

Temporary target groups are excluded.

**Type**: Boolean

**Parameters**

| Name      | Type   | Value                  |
| --------- | ------ | ---------------------- |
| sessionId | String | ID of the session      |
| filterId  | long   | ID of the target group |

**Return values**

- true: Target group is used
- false: Target group is not used

**Code structure**

```javascript
boolean isInUse(String sessionId, long filterId)
```
