Cut underperforming zones
cut_zonesIdentify and blacklist underperforming campaign zones that fail to meet conversion rate, spend, or ROI thresholds. Dry-run preview shows zones to cut; set confirm=true to apply.
Instructions
Blacklist underperforming zones on a campaign based on thresholds (CR, spend, ROI). Evaluates zone stats over the given window and adds matching zones to the campaign's zone blacklist. DRY-RUN by default: it shows which zones would be cut and how the blacklist changes. Pass confirm=true to actually apply. spend means media_cost (your traffic cost). A zone is cut only if it matches ALL provided thresholds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Explicit end bound: YYYY-MM-DD (tenant-local end of day), ISO timestamp with Z/UTC offset, or epoch ms. | |
| from | No | Explicit start bound: YYYY-MM-DD (tenant-local start of day), ISO timestamp with Z/UTC offset, or epoch ms. | |
| range | No | Evaluation window. Ignored if from/to are given. Defaults to last 7 days. | |
| cr_max | No | Cut zones with conversion rate BELOW this fraction (e.g. 0.002 = 0.2%). | |
| confirm | No | false = dry-run preview (default). true = apply the blacklist changes. | |
| roi_max | No | Cut zones with ROI BELOW this fraction (e.g. -0.3 = -30%). Needs cost data. | |
| spend_min | No | Cut zones with media_cost ABOVE this many dollars (e.g. 5 = $5). | |
| min_clicks | No | Ignore zones with fewer clicks than this (significance guard). Default 10. | |
| campaign_id | Yes | Campaign whose zone blacklist to edit. |