hermosodocs

set_merchant_inventory

Set store or region price and stock destructive

Area: MERCHANT LOCAL + REGIONAL INVENTORY, REVIEWS, QUOTA · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

SET the price, availability or stock level of one Shopping product at ONE physical store (kind:"local", keyed by storeCode) or in ONE region (kind:"regional", keyed by region). This is what stops a Shopping ad advertising something the nearest store has sold out of. Google's insert REPLACES the whole entry, so this tool reads what is already stored, merges your fields over it, and reports which stored fields it preserved; pass an explicit null to CLEAR one. The API publishes no enum for availability, so it accepts anything and only Google's local inventory data specification says which values actually serve: In stock, Limited availability, On display to order, Out of stock, submitted in English. An unrecognised value is warned about here rather than refused, because refusing would mean inventing an enum Google does not publish. Google states it can take up to 30 minutes before the product itself reflects the change, so a product read straight afterwards can still show the old value and be correct. Free.

Parameters

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdrequiredstringthe product's own id in the feed
contentLanguagerequiredstringtwo-letter feed language, e.g. "en"
feedLabelrequiredstringusually the feed target country, e.g. "US"
kindrequired"local" | "regional"local = one physical store (storeCode), regional = one Google region (region)
storeCodestringrequired for kind:'local' — the store ID from the merchant's Business Profile. Immutable
regionstringrequired for kind:'regional' — the Merchant Center region id. Immutable
availabilitystring | nullno API enum exists; Google's local spec publishes In stock, Limited availability, On display to order, Out of stock, in English. Anything else is warned about, not refused. null clears it
pricestring | null"12.99 USD". A bare number is refused because a price with no currency is not a price. null clears it
salePricestring | null"9.99 USD". Google requires salePriceEffectiveDate alongside it if that is set. null clears it
quantitynumber | nulllocal only. null clears it
pickupMethodstring | nulllocal only. Must be sent WITH pickupSla unless the value is "not supported"
pickupSlastring | nulllocal only
instoreProductLocationstring | nulllocal only, max 20 bytes

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_merchant_inventory.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_merchant_inventory","arguments":{"merchantCenterId":"<string>","offerId":"<string>","contentLanguage":"<string>","feedLabel":"<string>","kind":"<one of the listed values>"}}}

CLI

hermoso call set_merchant_inventory --json '{"merchantCenterId":"<string>","offerId":"<string>","contentLanguage":"<string>","feedLabel":"<string>","kind":"<one of the listed values>"}'

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