CssProductInput

此资源代表您为 CSS 商品提交的输入数据,而非您在 CSS Center、Google 购物广告或 Google 各平台上看到的经过处理的 CSS 商品。

JSON 表示法
{
  "name": string,
  "finalName": string,
  "rawProvidedId": string,
  "contentLanguage": string,
  "feedLabel": string,
  "freshnessTime": string,
  "attributes": {
    object (Attributes)
  },
  "customAttributes": [
    {
      object (CustomAttribute)
    }
  ]
}
字段
name

string

标识符。CSS 商品输入的名称。格式:accounts/{account}/cssProductInputs/{cssProductInput},其中最后一个部分 cssProductInput 由 3 部分组成:contentLanguage~feedLabel~offerId。示例:accounts/123/cssProductInputs/de~DE~rawProvidedId123

finalName

string

仅限输出。处理的 CSS 商品的名称。格式:accounts/{account}/cssProducts/{css_product} "

rawProvidedId

string

必需。CSS 商品的唯一标识符。这适用于 CSS 商品输入项和经过处理的 CSS 商品。我们仅允许使用字母数字、下划线和短划线。如需了解详情,请参阅商品 Feed 规范

contentLanguage

string

必需。CSS 商品的双字母 ISO 639-1 语言代码。

feedLabel

string

必需。CSS 商品的Feed 标签。Feed 标签与“目标国家/地区”同义,因此应始终是有效的地区代码。例如:德国为“DE”,法国为“FR”。

freshnessTime
(deprecated)

string (Timestamp format)

已弃用。请改用 expirationDate。表示 CSS 商品的现有版本(新鲜度),可用于在同时进行多项更新时保留正确的顺序。

此字段不得设为未来的时间。

如果已设置,则当系统中已有较新版本的商品时,系统会阻止更新(即现有 CSS 商品的上次更新时间晚于更新中设置的新鲜度时间)。如果发生更新,则上次更新时间会设置为此新鲜度时间。

如果未设置,系统将不会阻止更新,并且上次更新时间将默认为 CSS API 收到此请求的时间。

如果操作被阻止,系统会抛出中止异常。

attributes

object (Attributes)

CSS 商品属性列表。

customAttributes[]

object (CustomAttribute)

自定义(CSS 提供)属性的列表。它还可用于以通用形式(例如 { "name": "size type", "value": "regular" })提交 Feed 规范的任何属性。这对于提交 API 未明确公开的属性(例如用于“在 Google 上购买”的其他属性)非常有用。