HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

getCodeCount

Counts the coupon codes contained in a coupon block in Optimizely Campaign.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block

Return values

The number of coupon codes in this block

Code structure

long getCodeCount(String sessionId, long blockId)

What’s Next
Did this page help you?