generic_mutate
Create, update, or remove Google Ads resources without a dedicated write tool. Default dry run shows preview; pass confirm=True to apply.
Instructions
Generic mutate operation for advanced use cases not covered by specific tools.
Use this when you need to modify a resource type that doesn't have a dedicated write tool. Requires understanding the Google Ads API proto structure.
Default is DRY RUN — shows preview. Pass confirm=True to execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set True to execute. Default False (dry run). | |
| customer_id | Yes | Google Ads account ID. | |
| resource_data | Yes | Dict of fields to set on the resource. For 'remove', just pass {"resource_name": "customers/.../..."} | |
| resource_type | Yes | API resource type, e.g. 'campaign', 'ad_group', 'ad_group_criterion', 'ad_group_ad', 'campaign_budget', 'campaign_criterion'. | |
| update_fields | No | For 'update' only — list of field paths to update (e.g. ['status', 'cpc_bid_micros']). Required for updates. | |
| operation_type | Yes | 'create', 'update', or 'remove'. | |
| login_customer_id | No | Optional MCC ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||