0

我想测试我们的新代码而不引起谷歌的愤怒,但谷歌的文档还有很多不足之处......

一位前员工曾经使用 GShoppingContent.php 库,但它不支持版本 2 api。所以现在我需要学习api...

https://support.google.com/merchants/answer/188494 似乎表明我们对该mpn字段的使用很好,因为它被认为是唯一标识符。然而,它也说id是必需的,就代码所暗示的而言,从未设置过......产品的GShoppingContentNOsetProductIdsetId功能,我们只使用过mpn,所以我假设这是一个新要求...此外, https://developers.google.com/shopping-content/v2/reference/v2/inventory/custombatch没有提及使用mpn他们提供的任何其他唯一 ID 的可能性...

我在哪里可以找到所需更改的列表?(包括例如id属性的使用......)如果库存更新不需要产品 ID,那么批量库存方法的准确和完整文档在哪里?

作为替代方案,有一种方法可以测试我们的新代码,而不会因不正确的产品数据而被谷歌禁止......(当我们过去进行更改时,它几乎被禁止,即使是最小的问题...... .)

4

1 回答 1

0

Can't be certain, but it seems GShoppingContent sets the id to online:en:US:*SKU* where *SKU* is what was passed into GSC_Product::setSKU.

Managed to learn this by OAuthing on https://developers.google.com/shopping-content/v2/reference/v2/products/list

they have a dry-run option so I felt safe running this without worry of damaging our product data, even temporarily. (plus list doesn't sound very likely to cause data corruption, but you never know...)

于 2015-02-18T20:12:31.150 回答