hermosodocs

create_google_ads_rule

Create a Google Ads automated rule (created switched OFF)

Area: AUTOMATED AD RULES · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

AUTOMATED RULES ON GOOGLE ADS — "pause ad groups whose CPA is over $50 over the last 7 days", "raise the budget 20% when ROAS > 4, never above $300", on a schedule with optional quiet hours. Google's API has NO rules resource (its UI rules are not reachable by any API), so HERMOSO runs these: every run reads the metrics, applies the caps against real numbers, writes through Google's own mutates, reads the result back, and logs it (google_ads_rule_history); a live run can be undone (undo_google_ads_rule_action). EVERY RULE IS CREATED SWITCHED OFF; dry-run it with run_google_ads_rule, then switch it on with set_google_ads_rule_status. OPTIONAL approval step (approval): a scheduled run then PROPOSES its changes and waits for a person (google_ads_rule_approvals, or the one-click link in the brand's alerts); off unless asked for. Conditions take derived metrics or any metrics.<field> Google reports; actions pause / enable / notify / change a budget (campaign) or the manual CPC bid (ad group) by percent, amount or to a value. An increase needs a limit. Free.

Parameters

ParameterTypeDescription
customerIdstringGoogle Ads customer id from list_google_ads_campaigns; omit when only one is shared with this brand
loginCustomerIdstringmanager (MCC) id, only when the account is reached through a manager; stored on the rule
namerequiredstring
scoperequiredobjectwhat the rule looks at
scope.level"campaign" | "adGroup" | "ad"campaign, adGroup or ad. Budgets live on campaigns, the manual CPC bid on ad groups
scope.idsstring[]a FIXED list of ids at that level; leave out for every object at the level (re-read every run)
scope.campaignIdsstring[]only ad groups / ads under these campaigns
scope.adGroupIdsstring[]only ads under these ad groups
scope.nameContainsstringonly objects whose name contains this
scope.statusesstring[]ENABLED and/or PAUSED; default ENABLED (PAUSED for an enable rule)
conditionsobject[]when it acts. A value that cannot be measured (e.g. cpa with no conversions) never matches
conditions[].metricstringcost, impressions, clicks, conversions, conversions_value, ctr, cpc, cpm, cpa (= cost_per_conversion = cost_per_result), roas, conversion_rate, budget, bid — or ANY Google report metric as metrics.<field>, e.g. metrics.search_impression_share. Money is in the account currency
conditions[].operatorstring>, <, >=, <=, =, !=, between, not_between (Meta's names work too)
conditions[].valuestring | number | string | number[]a number, or [low, high] for between
conditions[].windowstringTODAY, YESTERDAY, LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH … or "DAYS:N"; defaults to the rule's window
match"all" | "any"all (default) or any
windowstringdefault window for conditions (LAST_7_DAYS)
unconditionalbooleantrue to act on everything in scope every run (no conditions); never inferred
actionsrequiredobject[]what it does on each match
actions[].type"pause" | "enable" | "budget" | "bid" | "notify"pause, enable, budget, bid or notify
actions[].change"increase" | "decrease" | "set"increase, decrease or set
actions[].byobjectexactly one, for increase/decrease
actions[].by.percentnumber
actions[].by.amountnumberin the account currency
actions[].tonumberfor set: the new value in the account currency
actions[].limitnumberREQUIRED for an increase: the highest value it may ever reach. A floor for a decrease
actions[].allowSharedBudgetbooleanallow changing a budget shared by several campaigns
scheduleobjectwhen Hermoso runs it
schedule.everyMinutesnumber15 to 10080; default 60
schedule.daysnumber[]weekdays 0-6 (0 = Sunday); default every day
schedule.quietHoursobjecta window in which it never acts, e.g. 22:00-07:00
schedule.quietHours.startstringHH:MM
schedule.quietHours.endstringHH:MM
schedule.timezonestringIANA name; default the ad account's
capsobjectthis rule's own caps
caps.maxChangesPerDaynumberhow often this rule may change the same object in a day, 1-48 (default 1)
caps.maxRaisePerDaynumberthe most this rule may add to budgets in a day, account currency
approvalobject | nullOPTIONAL approval step: a scheduled run proposes instead of acting and the brand's alert channels get a one-click approval link; decide with google_ads_rule_approvals. null removes it. A run by hand is never held. Off unless set
approval.requiredbooleantrue (default when approval is given) holds every SCHEDULED change for a person's approval; false removes the step
approval.timeoutMinutesnumber15-10080, default 1440 (a day): how long a proposal waits
approval.onTimeout"skip" | "apply"skip (default: nothing changes) or apply (applied as if approved)

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_google_ads_rule.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_google_ads_rule","arguments":{"name":"<string>","scope":"<object>","actions":"<array>"}}}

CLI

hermoso call create_google_ads_rule --json '{"name":"<string>","scope":"<object>","actions":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json