hermosodocs

record_shopify_marketing_activity

Record an ad or campaign in Shopify > Marketing

Area: SHOPIFY: the merchant's own storefront · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
titlestringwhat the merchant sees in Shopify > Marketing; required on the first recording
remoteUrlstringhttps link where this ad or campaign is managed or viewed; required on the first recording
remoteIdstringyour stable id for this activity (e.g. the ad platform campaign id); derived from platform + campaignId or the utm campaign when omitted
platformstringwhere it runs, e.g. meta, google_ads, tiktok_ads; only used to derive remoteId
campaignIdstringthe ad platform campaign id; only used to derive remoteId
utmobjectthe UTM the ad links carry; Shopify matches visits on all three
utm.campaignrequiredstringutm_campaign value the ad's links carry; Shopify matches visits on all three UTM fields
utm.sourcerequiredstringutm_source value the ad's links carry
utm.mediumrequiredstringutm_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
budgetobjectbudget object: {type DAILY or LIFETIME, amount, currency}
budget.type"DAILY" | "LIFETIME"DAILY or LIFETIME
budget.amountrequirednumberbudget amount, in the currency given
budget.currencyrequiredstringISO 4217 currency code, e.g. USD
adSpendobjectamount spent so far
adSpend.amountrequirednumberMAJOR units: 40 means 40.00
adSpend.currencyrequiredstring3-letter, e.g. USD
startstringISO date the ad started
endstringISO date it ended
scheduledEndstringISO date the activity is scheduled to end
previewImageUrlstringhttps 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.

All 728 Publishing & scheduling tools · tools.json