maton google-ads campaign create
maton google-ads campaign create [flags]
Create a campaign by POSTing a single create operation to customers/{id}/campaigns:mutate. New campaigns default to PAUSED — pass –status ENABLED to start serving immediately.
–budget-id is the numeric campaign budget ID; the resource name is built for you (customers/{id}/campaignBudgets/{budgetId}).
A campaign always needs a bidding strategy; –bidding-strategy defaults to MANUAL_CPC. Pass another (e.g. TARGET_CPA, TARGET_ROAS) to override — TARGET_CPA additionally requires –target-cpa-micros and TARGET_ROAS requires –target-roas.
Options
-
--bidding-strategy <string> (default "MANUAL_CPC") - Bidding strategy: MANUAL_CPC, TARGET_CPA, TARGET_ROAS, MAXIMIZE_CONVERSIONS, etc.
-
--budget-id <string> - Numeric campaign budget ID (required)
-
--channel <string> - Advertising channel type: SEARCH, DISPLAY, VIDEO, SHOPPING, PERFORMANCE_MAX, etc. (required, e.g. SEARCH/DISPLAY/PERFORMANCE_MAX)
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--contains-eu-political-advertising - Whether the campaign contains EU political advertising
-c,--customer-id <string>- Google Ads customer ID (required)
-
--dry-run - Print the request that would be sent without executing it
-q,--jq <expression>- Filter JSON output using a jq expression
-
--json - Output raw JSON
-
--name <string> - Campaign name (required)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--status <string> (default "PAUSED") - Initial status: ENABLED, PAUSED
-
--target-cpa-micros <int> (default 0) - Target CPA in micros (required for TARGET_CPA)
-
--target-roas <float> (default 0) - Target ROAS (required for TARGET_ROAS)
-t,--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 create -c 1234567890 --name "Launch" --channel SEARCH --budget-id 5555
$ maton google-ads campaign create -c 1234567890 --name "Launch" --channel SEARCH --budget-id 5555 --bidding-strategy TARGET_CPA --target-cpa-micros 5000000
$ maton google-ads campaign create -c 1234567890 --name "Launch" --channel SEARCH --budget-id 5555 --status ENABLED