# Hermoso: upsert_merchant_product · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/upsert_merchant_product/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / upsert_merchant_product

# `upsert_merchant_product`

Create or replace a Merchant Center product destructive

Area: MERCHANT SETTINGS, THE WRITE HALF · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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

`merchantCenterId` required `string` from list_merchant_accounts

`offerId` required `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.currencyCode` required `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.currencyCode` required `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[].name` required `string` attribute name

`customAttributes[].value` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [create_merchant_data_source](https://hermoso.ai/docs/reference/ads/create_merchant_data_source/) Create a Merchant Center product feed
- [delete_merchant_product](https://hermoso.ai/docs/reference/ads/delete_merchant_product/) Delete a Merchant Center product
- [list_merchant_data_sources](https://hermoso.ai/docs/reference/ads/list_merchant_data_sources/) List Merchant Center product feeds
- [update_merchant_product](https://hermoso.ai/docs/reference/ads/update_merchant_product/) Update fields on a Merchant Center product
- [manage_merchant_conversion_source](https://hermoso.ai/docs/reference/ads/manage_merchant_conversion_source/) Merchant Center conversion sources
- [delete_merchant_data_source](https://hermoso.ai/docs/reference/ads/delete_merchant_data_source/) Delete a Merchant Center product feed
- [manage_merchant_notifications](https://hermoso.ai/docs/reference/ads/manage_merchant_notifications/) Merchant Center push notifications
- [list_google_ads_campaigns](https://hermoso.ai/docs/reference/ads/list_google_ads_campaigns/) List Google Ads accounts / campaigns
- [merchant_quota](https://hermoso.ai/docs/reference/ads/merchant_quota/) Merchant Center quota and limits
- [google_ads_report](https://hermoso.ai/docs/reference/ads/google_ads_report/) Google Ads GAQL report

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
