record_shopify_marketing_activity
Record an ad or campaign in Shopify > Marketing
Description
Record an ad or campaign the merchant is running (on Meta, Google, TikTok, email, anywhere) in their Shopify admin under Marketing, so Shopify's own reports attribute storefront visits and sales to it by its UTM. REPORTING ONLY: it publishes nothing and spends nothing. Pass title, remoteUrl (where the ad is managed, e.g. the Ads Manager link), the utm {campaign, source, medium} the ad's links carry, and optionally tactic (AD default, RETARGETING, POST, LINK, NEWSLETTER, …), channel (SOCIAL default, SEARCH, DISPLAY, EMAIL, REFERRAL), status (ACTIVE default, PAUSED, SCHEDULED, INACTIVE, DELETED_EXTERNALLY), budget {type DAILY|LIFETIME, amount, currency}, adSpend {amount, currency}, start / end / scheduledEnd dates and previewImageUrl. remoteId is YOUR stable id for the activity (the ad platform's campaign id is ideal); calling again with the same remoteId UPDATES that one row, and every field you leave out is KEPT from the existing record (Shopify's own upsert would erase it; the reply lists what was kept). Read back from Shopify. Needs the store to have approved Hermoso's marketing permission: if it has not, the reply says to open Hermoso once from the Shopify admin to approve it. Works for the Shopify store connected to this brand (Connectors > Shopify, or connect_shopify_store) or the store this account was installed on. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
title | string | what the merchant sees in Shopify > Marketing; required on the first recording |
remoteUrl | string | https link where this ad or campaign is managed or viewed; required on the first recording |
remoteId | string | your stable id for this activity (e.g. the ad platform campaign id); derived from platform + campaignId or the utm campaign when omitted |
platform | string | where it runs, e.g. meta, google_ads, tiktok_ads; only used to derive remoteId |
campaignId | string | the ad platform campaign id; only used to derive remoteId |
utm | object | the UTM the ad links carry; Shopify matches visits on all three |
utm.campaignrequired | string | utm_campaign value the ad's links carry; Shopify matches visits on all three UTM fields |
utm.sourcerequired | string | utm_source value the ad's links carry |
utm.mediumrequired | string | utm_medium value the ad's links carry |
tactic | "AD" | "RETARGETING" | "POST" | "LINK" | "AFFILIATE" | "MESSAGE" | "NEWSLETTER" | "ABANDONED_CART" | "LOYALTY" | "NOTIFICATION" | "SEO" | "STOREFRONT_APP" | "TRANSACTIONAL" | Shopify marketing tactic, e.g. AD, RETARGETING, POST, NEWSLETTER; default AD |
channel | "SOCIAL" | "SEARCH" | "DISPLAY" | "EMAIL" | "REFERRAL" | SOCIAL, SEARCH, DISPLAY, EMAIL or REFERRAL; default SOCIAL |
status | "ACTIVE" | "PAUSED" | "SCHEDULED" | "INACTIVE" | "DELETED_EXTERNALLY" | "UNDEFINED" | ACTIVE, PAUSED, SCHEDULED, INACTIVE, DELETED_EXTERNALLY or UNDEFINED; default ACTIVE |
budget | object | budget object: {type DAILY or LIFETIME, amount, currency} |
budget.type | "DAILY" | "LIFETIME" | DAILY or LIFETIME |
budget.amountrequired | number | budget amount, in the currency given |
budget.currencyrequired | string | ISO 4217 currency code, e.g. USD |
adSpend | object | amount spent so far |
adSpend.amountrequired | number | MAJOR units: 40 means 40.00 |
adSpend.currencyrequired | string | 3-letter, e.g. USD |
start | string | ISO date the ad started |
end | string | ISO date it ended |
scheduledEnd | string | ISO date the activity is scheduled to end |
previewImageUrl | string | https image shown next to the activity (the ad creative works) |
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/record_shopify_marketing_activity.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"record_shopify_marketing_activity","arguments":{}}}
CLI
hermoso call record_shopify_marketing_activity --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
connect_shopify_storeConnect a Shopify storepublish_to_shopify_productPublish an image or video onto a Shopify productlist_shopify_marketing_activitiesList Shopify marketing activitieslist_shopify_productsList the Shopify catalogdelete_shopify_marketing_activityDelete a Shopify marketing activitylist_shopify_storesWhich Shopify store this brand works withcreate_shopify_discount_codeCreate a Shopify discount codelist_shopify_discount_codesList Shopify discount codesdisable_shopify_discount_codeDisable a Shopify discount codelist_shopify_ordersList Shopify orders