set_google_ads_tracking
Set UTMs / tracking on a Google Ads campaign, ad group or ad destructive
Description
Set the FINAL URL SUFFIX (the UTMs added to every click), tracking template and custom parameters on a Google Ads campaign, ad group or ad; a lower level overrides a higher one. "" clears a field; utmDefault:true applies our standard UTMs (utm_source=google, utm_medium, utm_campaign=<name>, utm_id={campaignid}, utm_content={creative}). New campaigns already get those unless you say otherwise. Read back from Google.
Parameters
| Parameter | Type | Description |
|---|---|---|
customerId | string | 10-digit account id; omit to use the brand's selected default account |
campaignId | string | campaign to set tracking on; use with level campaign |
adGroupId | string | ad group to set tracking on; use with level adGroup |
adId | string | ad to set tracking on; use with level ad |
level | "campaign" | "adGroup" | "ad" | follows the id you pass |
finalUrlSuffix | string | UTM string appended to every click, e.g. utm_source=google&utm_medium=cpc; empty string clears it |
trackingUrlTemplate | string | click-tracking redirect template, e.g. {lpurl}?src=x; empty string clears it |
urlCustomParameters | object | up to 8 custom URL parameters as a key/value object, used in URLs as {_key} |
utmDefault | boolean | true = apply the standard UTMs (utm_source, utm_medium, utm_campaign, utm_id, utm_content) |
confirm | boolean | needed to change the tracking redirect on a LIVE campaign |
dryRun | boolean | true = validate with Google and change nothing |
loginCustomerId | string | manager (MCC) account id when acting through a manager account; omit otherwise |
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/set_google_ads_tracking.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_google_ads_tracking","arguments":{}}}
CLI
hermoso call set_google_ads_tracking --json '{}'
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.
Related tools
manage_google_ads_assetsList, edit, pause or detach Google Ads assetsmanage_google_ads_audienceFind or build Google Ads audiencesgoogle_ads_policy_issuesWhy Google rejected or limited an adset_google_ads_audiencesTarget or exclude audiences on Google Adspreview_google_ads_adShareable Google Ads preview linkupload_google_ads_videoUpload a video straight into Google Adsmanage_google_ads_recommendationsApply / dismiss Google Ads recommendations, or set auto-applycreate_google_ads_demand_gen_campaignCreate a Google Demand Gen video campaign (YouTube Shorts, in-feed, in-stream)google_ads_recommendationsGoogle Ads recommendations + optimization scoreset_google_ads_asset_automationRead or change what Google may make from the creative (text on videos, video cuts, written text)