update_ad_plan_group
Change many drafts of a group in one call, all or nothing.
Use this instead of one update_ad_plan per draft whenever a change touches several copies: the same value everywhere (“this headline for every location”) or each its own (“each location’s URL from the table”). edits = [{plan_id, expected_version, overrides?, source_row?, copies?}], one per plan, with overrides shaped {step_id: {parameter: value}} as in create_ad_plan_variants (whole values; null removes). source_row {table_id, row_id} re-records the copy’s table row: when a review reports “row changed since this draft was built”, read the row, state its new values in overrides and pass source_row in the same edit. copies {step_id: copy_id} attaches (again) a copy variant: its current text replaces the step’s, which clears “no longer the copy variant” once the copy is approved again; {step_id: null} detaches it, keeping the step’s text as the plan’s own. An edit may give copies without overrides. Read get_ad_plan_group first for plan IDs and versions. Any version conflict or invalid value saves none. Stores drafts only.
Parameters#
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
group_id | string | yes | ||
edits | array | yes |
Generated by generate_mcp_docs from the server tool. Add to this page below this block; the block is rewritten on every run.