---
title: getAssignedCodeCount
slug: campaign/docs/getassignedcodecount
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

**Type**: long

**Parameters**

| Name      | Type   | Value                     |
| --------- | ------ | ------------------------- |
| sessionId | String | ID of the current session |
| blockId   | long   | ID of the coupon block    |

**Return values**

The number of assigned codes in this block

**Code structure**

```javascript
long getAssignedCodeCount(String sessionId, long blockId)
```
