Set per-product field values (custom labels, new fields, fixes)
update_product_fieldsWrites field values onto individual products, the same per-product overrides the web UI's product editor writes. The served XML puts each value into the item (a tag the item lacks is added, g: prefixed, e.g. custom_label_0 → <g:custom_label_0>), and image templates read it as {{field}}. Use it to enrich a catalog: custom_label_0–4 for product sets in Meta or Google, a new field such as irradiance shown on the image, or a fix for one product. Merges with what the product already has: a string sets the field, null or "" removes the value set here (the source value shows again). Take values from the product data (get_product rawData) or a source the user names, never guess. Up to 100 products and 20 fields per product per call; all or nothing — an unknown product or a bad field name saves nothing. The id field cannot be changed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"feedId": "<feedId>",
"items": "<items>"
},
"name": "update_product_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| feedId | Yes |