简体   繁体   English

如何使用Google Content API for Shopping更新所有产品详细信息?

[英]How to update all product details using Google Content API for Shopping?

In the documentation for the Google Content API for Shopping, I found a section on updating products: Inventory: set . 在Google Content API for Shopping的文档中,我找到了有关更新产品的部分: 库存:set

However, it only seems to update price, availability and quantity: 但是,它似乎只会更新价格,可用性和数量:

{
  "price": {
    "value": string,
    "currency": string
  },
  "availability": string,
  "salePrice": {
    "value": string,
    "currency": string
  },
  "salePriceEffectiveDate": string,
  "quantity": unsigned integer
}

How do I update the product name, product website link, product image link and all the details that can be inputted using the Products: insert API call? 如何更新产品名称,产品网站链接,产品图片链接以及可以使用“ 产品:插入 API调用”输入的所有详细信息?

The Google Service library seems only to allow the update of price, availability and quantity. Google服务库似乎仅允许更新价格,可用性和数量。 Does Google restrict updating the other data or have I not found the correct documentation? Google是否限制更新其他数据,或者我没有找到正确的文档?

From what I understand the documentation is out of date and in parts incorrect. 据我了解,该文档已过时且部分错误。 I have yet to find someone with dependable documentation so far. 到目前为止,我还没有找到具有可靠文档的人。 Maybe one day Google will go Pro and treat their documentation with more importance. 也许有一天Google会选择Pro并更加重视他们的文档。 People rely on this technology, but it's just an experiment to Google. 人们依靠这项技术,但这只是Google的一项实验。 That wouldn't be so bad if it wasn't absolutely required in today's market to compete. 如果在当今市场上并非绝对需要竞争的话,那还不错。

I queried a google person yesterday who works around the api and she stated that they didn't know when it would be updated to what is current. 我昨天询问了一个使用api的Google人员,她说他们不知道何时将其更新为最新版本。

You can use the products.insert endpoint to also update products and products with the same offerId will be overwritten. 您可以使用products.insert端点来更新产品,并且具有相同offerId将被覆盖。

As I haven't tried it yet and the documentation seems not to explain this, I don't know whether the provided attributes will be merged with the existing ones, or whether you actually need to provide the full representation (because the new insert might be equivalent to a delete + insert). 由于我还没有尝试过,文档似乎也没有对此进行解释,所以我不知道所提供的属性是否将与现有属性合并,或者您是否真正需要提供完整的表示形式(因为新的插入可能等同于删除+插入)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM