HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


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

Type: long


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)

What’s Next