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

getAssignedCodeCount

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

Type: long

Parameters

NameTypeValue
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)