upsert_merchant_product
Create or replace a Merchant Center product destructive
Description
Create or replace a product in a Merchant Center feed — this is how a merchant's catalogue gets populated, and it is what Shopping ads, free listings and retail Performance Max actually serve. It is an UPSERT and a WHOLE-ROW write: calling it again for the same offerId REPLACES the product rather than patching it, so send every field you want kept each time. You do not have to find a feed first — omit dataSource and it resolves the account's one writable feed, creates one if there is none, and REFUSES by name if there are several rather than putting the product in a market the campaigns may not target. offerId, contentLanguage and feedLabel together ARE the product's identity and are all immutable; contentLanguage and feedLabel are taken from the feed when the feed declares them. For the product to serve at all Google needs title, description, link, imageLink, availability and price — a row missing any of them is stored and then disapproved, and the reply says so rather than letting you believe it published. The reply reports what GOOGLE STORED, not what was sent. Free: a feed edit cannot spend.
Parameters
| Parameter | Type | Description |
|---|---|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
offerIdrequired | string | your own unique id for the product — IMMUTABLE, and what you update or delete it by later |
dataSource | string | the feed to write into, from list_merchant_data_sources. Omit to resolve the account's one writable feed (created if there is none, refused by name if there are several) |
dataSourceName | string | display name for a feed created on the fly |
contentLanguage | string | two-letter, e.g. "en" — taken from the feed when the feed declares one |
feedLabel | string | market bucket, e.g. "US" — taken from the feed when the feed declares one |
title | string | product title; Google needs it for the product to serve |
description | string | product description; Google needs it for the product to serve |
link | string | the product page URL on the merchant's store |
imageLink | string | main product image URL (https); Google needs it for the product to serve |
additionalImageLinks | string[] | extra product image URLs, as a list |
availability | string | in_stock | out_of_stock | preorder | backorder |
condition | string | new | refurbished | used |
price | object | price object: {value in major units or amountMicros, currencyCode} |
price.value | number | major units, e.g. 19.99 |
price.amountMicros | string | micros, if you already have them — 1 unit = 1000000 |
price.currencyCoderequired | string | three-letter ISO 4217, e.g. USD |
salePrice | object | sale price, same shape as price |
salePrice.value | number | major units, e.g. 19.99 |
salePrice.amountMicros | string | micros, if you already have them — 1 unit = 1000000 |
salePrice.currencyCoderequired | string | three-letter ISO 4217, e.g. USD |
brand | string | brand name |
gtin | string | GTIN barcode (UPC, EAN or similar) |
mpn | string | manufacturer part number |
identifierExists | boolean | false for a product with no GTIN/MPN/brand, such as a service or a bundle |
googleProductCategory | string | Google product taxonomy category |
productTypes | string[] | merchant-defined category labels for the product, as a list |
color | string | product colour |
size | string | product size |
material | string | product material |
ageGroup | string | newborn, infant, toddler, kids or adult |
gender | string | male, female or unisex |
itemGroupId | string | shared id that groups the variants of one product, e.g. colours or sizes |
attributes | object | any other product attribute by its Merchant API name — there are 145 and only the common ones are named above |
customAttributes | object[] | extra attributes as a list of {name, value} objects |
customAttributes[].namerequired | string | attribute name |
customAttributes[].valuerequired | string | attribute value |
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/upsert_merchant_product.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"upsert_merchant_product","arguments":{"merchantCenterId":"<string>","offerId":"<string>"}}}
CLI
hermoso call upsert_merchant_product --json '{"merchantCenterId":"<string>","offerId":"<string>"}'
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
create_merchant_data_sourceCreate a Merchant Center product feeddelete_merchant_productDelete a Merchant Center productlist_merchant_data_sourcesList Merchant Center product feedsupdate_merchant_productUpdate fields on a Merchant Center productmanage_merchant_conversion_sourceMerchant Center conversion sourcesdelete_merchant_data_sourceDelete a Merchant Center product feedmanage_merchant_notificationsMerchant Center push notificationslist_google_ads_campaignsList Google Ads accounts / campaignsmerchant_quotaMerchant Center quota and limitsgoogle_ads_reportGoogle Ads GAQL report