maton google-ads campaign update
maton google-ads campaign update [flags]
Update one or more fields on a campaign by POSTing an update operation to customers/{id}/campaigns:mutate. The update mask is built from whichever mutating flags you pass — fields you omit are left untouched.
At least one mutating flag (–name, –status) must be set.
Options
-
--campaign-id <string> - Campaign ID to update (required)
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-c,--customer-id <string>- Google Ads customer ID (required)
-
--dry-run - Print the request that would be sent without executing it
-
--format <string> - Output format: 'json' (default) or 'text' on supported commands
-q,--jq <expression>- Filter JSON output using a jq expression
-
--name <string> - New campaign name
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--status <string> - New status: ENABLED, PAUSED, REMOVED
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
Options inherited from parent commands
-
--login-customer-id <string> - Manager account ID for MCC access (forwarded as login-customer-id header)
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton google-ads campaign update -c 1234567890 --campaign-id 99999 --status ENABLED
$ maton google-ads campaign update -c 1234567890 --campaign-id 99999 --name "Launch (renamed)"