HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

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)

What’s Next
Did this page help you?