Campaigns V2
Create Campaign
Creates a new campaign. placements and audiences are both optional — omit them (or send empty arrays) to create a campaign with just a name, as in the legacy dashboard, and configure it later; when no audiences are supplied the server creates a single default control audience (a 0% holdout). Audience targeting is set with a structured rule_conditions rule, which is compiled into the audience's expression and drives expression_cel for modern SDKs; omit it to match all users. The legacy raw expression field is no longer accepted. Requires campaigns:write scope.
post/v2/campaigns
Request body
Example request
{
"audiences": [
{
"rule_conditions": {
"operator": "and",
"conditions": [
{
"type": "condition",
"lhs": {
"type": "property",
"value": "device.appVersion"
},
"operator": "gte",
"rhs": {
"type": "string",
"value": "1.2.3"
}
}
]
}
}
]
}Response
Success
Changes
No recorded changes to this endpoint across all 1 revision of this API.