HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


Creates a temporary target group in Optimizely Campaign.

The target group becomes invalid after the end of the session.



Temporary target groups cannot be used for mailings. Use them to filter the results of a query.

Type: long


sessionIdStringID of the session
negateConditionbooleanSee Type conversion and formatting rules
attributeNameStringSee Type conversion and formatting rules
operationStringSee Available operators
operationParametersString[ ]See Attribute values

Return values

ID of the target group

Code structure

long createTemporary(String sessionId, boolean negateCondition, String attributeName, String operation, String[] operationParameters)

What’s Next
Did this page help you?