Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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)