Problem Statement:When adding a product to a supplemental feed for the first time using the customBatch insert API, it works correctly. However, subsequent attempts to append additional data to the same supplemental feed for the same product ID do not update the feed as expected. The expected behavior was that the insert API would replace the old data with new data, but this does not seem to be happening. Even when retrieving the current data using the customBatch get API and then attempting to re-insert the updated data, the new data is not reflected in the supplemental feed in the Google Merchant Center UI.
Detailed Explanation- Initial Insertion: The first insertion of product details into the supplemental feed works as expected. The product details appear in the Google Merchant Center UI.
- Subsequent Updates: Attempts to append additional product details to the same product ID in the supplemental feed do not work. The supplemental feed does not show the updated data in the UI.
- Expected Behavior: It was initially thought that the customBatch insert API would append the data, but turns out it replaces the existing data with new data. Therefore, the approach was to retrieve the current data using the customBatch get API, frame the updated data, and then use the customBatch insert API again.
- Observed Behavior: The supplemental feed gets created only once with the initial product details. Further attempts to append or update data do not show the updated information in the Google Merchant Center UI.
JUST Fyi, i am using Custom batch insert and get , heres the api link
https://developers.google.com/shopping-content/reference/rest/v2.1/products/custombatch#ProductsCustomBatchRequestNOTE: Is it something to do with Update Mask property . "entries":[
{
"batchId":1,
"feedId":"XXXXXXX",
"merchantId":"XXXXXX",
"method":"insert",
"productId":"online:en:US:bag",
"product":{
"brand":"Test",
"channel":"online",
"offerId":"bag",
"contentLanguage":"en",
"targetCountry":"US",
"productDetails":[
{
"sectionName":"Attributes",
"attributeName":"Style",
"attributeValue":"ALine"
},
{
"sectionName":"Attributes",
"attributeName":"Test",
"attributeValue":"Test,Test"
}
]
},
"updateMask":"productDetail"
}
]
Example ScenarioFirst Insertion:
Product ID: 12345
Supplemental Feed Content:{
- {
"productDetails": [
{
"sectionName": "Section1",
"attributeName": "Color",
"attributeValue": "Red"
}
]
} - Result: Product details are successfully added to the supplemental feed.
Subsequent Update: New Data to Append
{
"productDetails": [
{
"sectionName": "Section2",
"attributeName": "Size",
"attributeValue": "Large"
}
]
}
- Expected Result: Supplemental feed should now contain both the original and new product details.
- Observed Result: Only the original product details are visible in the supplemental feed.