Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google api 谷歌API更新产品详细信息_Google Api - Fatal编程技术网

Google api 谷歌API更新产品详细信息

Google api 谷歌API更新产品详细信息,google-api,Google Api,有没有办法更新产品 或者任何其他作用域,而不在JSON中再次插入所有细节 直到我知道我明白,只要我使用INSERT和条件 "channel": "online", "contentLanguage": "de", "offerId": "12345", "targetCountry": "de", "condition": "new" 与现有产品中的相同,它会更新产品 但是我想再次上传每个属性,我现在的程序中没有这些数据,所以每次我都要从谷歌那里得到它们 可以使用INSERT进行更新,但ID

有没有办法更新产品

或者任何其他作用域,而不在JSON中再次插入所有细节

直到我知道我明白,只要我使用INSERT和条件

"channel": "online",
"contentLanguage": "de",
"offerId": "12345",
"targetCountry": "de",
"condition": "new"
与现有产品中的相同,它会更新产品


但是我想再次上传每个属性,我现在的程序中没有这些数据,所以每次我都要从谷歌那里得到它们

可以使用INSERT进行更新,但ID不能是SKU本身,它必须包含JSON ID字符串(如):“online:de:de:12345”

因此,JSON类似于:

{
  "channel": "online",
  "contentLanguage": "de",
  "offerId": "online:de:DE:12345",
  "targetCountry": "DE",
  "price": {
    "value": "99.00",
    "currency": "EUR"
  }
}
将更新现有产品