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

getUnAssignedCodeCount

Counts the coupon codes of a coupon block that are still available in Optimizely Campaign.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block

Return values

The number of available (unassigned) coupon codes in this block

Code structure

long getUnAssignedCodeCount(String sessionId, long blockId)

Next