Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog 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