You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Google结构化数据:OfferShippingDetails的deliveryTime与transitTime是否必填?

关于OfferShippingDetails结构化数据的问题解答

1. 与shippingRate一同实现时,deliveryTime和transitTime是否为必填项?

分两个层面明确:

  • Schema.org通用定义层面:OfferShippingDetails类型本身没有强制要求deliveryTime和transitTime为必填属性,它们属于可选的增强型属性,用来补充配送时效信息。
  • Google搜索展示要求层面:如果是为了适配Google商品搜索的富媒体展示,核心必填的是shippingRate(运费金额)+shippingDestination(配送区域),这两个是确保运费信息被Google识别的基础。而deliveryTime和transitTime属于推荐添加但非强制的属性——添加后能让搜索结果展示具体的配送时效(比如1-5天送达),提升用户点击率,但不填不会导致结构化数据被判定为无效。

2. 如何判断Schema.org中OfferShippingDetails的属性必填/可选?

直接在Schema.org平台上按以下方式查看:

  • 进入Schema.org官网,搜索并打开OfferShippingDetails的类型页面
  • 在页面的「Properties」(属性)区域,每个属性的说明里会明确标注:
    • 带有「Required」标识的属性是该类型的核心必填项(但Schema.org的必填属性极少,大部分属性都是可选)
    • 没有标注「Required」的就是可选属性
  • 注意:Schema.org的定义是通用规范,如果你是针对Google搜索做结构化数据,还需要结合Google官方的结构化数据指南来确认额外的展示要求,部分属性可能在Google的规则里是必填,但Schema.org本身没有强制。

示例代码

<html>
  <head>
    <title>Nice trinket</title>
  </head>
  <body>
  <div>
    <div itemtype="https://schema.org/Product" itemscope>
      <meta itemprop="sku" content="trinket-12345" />
      <meta itemprop="gtin14" content="12345678901234" />
      <meta itemprop="name" content="Nice trinket" />
      <link itemprop="image" href="https://example.com/photos/16x9/trinket.jpg" />
      <link itemprop="image" href="https://example.com/photos/4x3/trinket.jpg" />
      <link itemprop="image" href="https://example.com/photos/1x1/trinket.jpg" />
      <meta itemprop="description" content="Trinket with clean lines" />
      <div itemprop="brand" itemtype="https://schema.org/Brand" itemscope>
        <meta itemprop="name" content="MyBrand" />
      </div>
      <div itemprop="offers" itemtype="https://schema.org/Offer" itemscope>
        <link itemprop="url" href="https://www.example.com/trinket_offer" />
        <meta itemprop="itemCondition" content="https://schema.org/NewCondition" />
        <meta itemprop="availability" content="https://schema.org/InStock" />
        <meta itemprop="price" content="39.99" />
        <meta itemprop="priceCurrency" content="USD" />
        <meta itemprop="priceValidUntil" content="2020-11-20" />
        <div itemprop="shippingDetails" itemtype="https://schema.org/OfferShippingDetails" itemscope>
          <div itemprop="shippingRate" itemtype="https://schema.org/MonetaryAmount" itemscope>
            <meta itemprop="value" content="3.49" />
            <meta itemprop="currency" content="USD" />
          </div>
          <div itemprop="shippingDestination" itemtype="https://schema.org/DefinedRegion" itemscope>
            <meta itemprop="addressCountry" content="US" />
          </div>
          <div itemprop="deliveryTime" itemtype="https://schema.org/ShippingDeliveryTime" itemscope>
            <div itemprop="handlingTime" itemtype="https://schema.org/QuantitativeValue" itemscope>
              <meta itemprop="minValue" content="0" />
              <meta itemprop="maxValue" content="1" />
              <meta itemprop="unitCode" content="DAY" />
            </div>
            <div itemprop="transitTime" itemtype="https://schema.org/QuantitativeValue" itemscope>
              <meta itemprop="minValue" content="1" />
              <meta itemprop="maxValue" content="5" />
              <meta itemprop="unitCode" content="DAY" />
            </div>
          </div>
        </div>
      </div>
      <div itemprop="review" itemtype="https://schema.org/Review" itemscope>
        <div itemprop="author" itemtype="https://schema.org/Person" itemscope>
          <meta itemprop="name" content="Fred Benson" />
        </div>
        <div itemprop="reviewRating" itemtype="https://schema.org/Rating" itemscope>
          <meta itemprop="ratingValue" content="4" />
          <meta itemprop="bestRating" content="5" />
        </div>
      </div>
      <div itemprop="aggregateRating" itemtype="https://schema.org/AggregateRating" itemscope>
        <meta itemprop="reviewCount" content="89" />
        <meta itemprop="ratingValue" content="4.4" />
      </div>
    </div>
  </div>
  </body>
</html>

内容的提问来源于stack exchange,提问作者mlodhi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 01:40:06