Set Contribution Groups
set_contribution_groupsConfigure contribution driver groupings once and persist them so every dashboard viewer sees the same setup. Supports colors and base adjustments with validation against model factors.
Instructions
Persist the driver groupings the dashboard contributions view renders (#436) — configure grouping once and every viewer sees it.
Each group: {"name": str, "drivers": [column names], "color": "#hex"?, "baseAdjustments": {driver: "min"|"max"|"none"}?}. Driver names are validated against the model's media/control/halo/trademark factors (400 with a did-you-mean hint on typos); each driver may belong to at most one group; baseAdjustments must reference the group's own drivers. The special "_channel_color_overrides" pseudo-group carries a channelColors map instead of drivers.
NOTE: this is the CONTRIBUTIONS-VIEW grouping. create_model's channel_groups is the unrelated adstock parameter-sharing feature — do not confuse them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_hash | Yes | ||
| contribution_groups | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||