POST /api/v2/buyer/advertisers/{advertiserId}/test-cohorts
Creates a test cohort — a flexible audience definition (geo, segment, zip code, or custom) that fills one arm of an incrementality test. Incrementality tests compare a TREATMENT cohort against a matched CONTROL.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
advertiserId | string | Yes | Path parameter — the owning advertiser |
name | string | Yes | Cohort label (max 255) |
cohortType | string | Yes | Free-form classification (e.g. geographic, demographic, behavioral) |
definition | object | Yes | Targeting definition. type is required (zip_code, user_segment, geo_region, custom); additional fields vary by type |
description | string | No | Free-text description (max 1000) |
role | enum | No | TREATMENT, CONTROL, OBSERVATION (default TREATMENT) |
estimatedSize | integer | No | Size estimate for power analysis |
Response
id is the cohortId you pass to Get, Update, and Delete.
Errors
400 VALIDATION_ERROR— missingname,cohortType, ordefinition.type, or invalidrole.404 NOT_FOUND—advertiserIddoes not exist or is not visible to the authenticated customer.
Related
Measurement tasks
All measurement operations
Measurement overview
Pipeline, belief state, and concepts
List test cohorts
See defined cohorts