Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


Counts the coupon codes of a coupon block that are assigned to an email in any sent mailing in Optimizely Campaign.

Type: long


sessionIdStringID of the current session
blockIdlongID of the coupon block

Return values

The number of assigned codes in this block

Code structure

long getAssignedCodeCount(String sessionId, long blockId)