免费软件应用程序的结构化数据

structured data for free SoftwareApplication

我在 HTML 页面中有 SoftwareApplication 的结构化数据,如下所示:
https://developers.google.com/structured-data/rich-snippets/sw-app

但是如果我检查我的结构化数据: https://developers.google.com/structured-data/testing-tool/

它有警告: 优惠:缺失和推荐

我的 Android 申请是免费的。我怎样才能写这个免费的应用程序?

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    Price: $<span itemprop="price">1.00</span>
    <meta itemprop="priceCurrency" content="USD" />
</div>

对于要约,0 美元的价格是有效的,Google SDT 在这种情况下的期望值。

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    Price: $<span itemprop="price">0.00</span>
    <meta itemprop="priceCurrency" content="USD" />
</div>

如果您不想显示价格,您可以再次使用元标记来显示价格。

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="price" content="0.00" />
    <meta itemprop="priceCurrency" content="USD" />
</div>

但一般来说,Google 希望您向用户显示价格,因为这可能会产生误导性或欺骗性的搜索体验。查看政策: https://developers.google.com/structured-data/policies#non-visible_content_and_machine-readable_alternative

有一个新软件数据类型(测试版)。

新的软件应用数据类型允许您使用优惠类型来设置是否免费,现在和这里的规则不同,请参考以下link以获取更多信息和警告不是 "banned":

https://developers.google.com/search/docs/data-types/software-app

免费应用与限时免费的付费应用之间存在差异:

如果应用程序是免费的,请将offers.price设置为0。例如:

"offers": {
  "@type": "Offer",
  "price": "0"
}

如果应用的价格大于 0,则必须包含 offers.currency。例如:

"offers": {
  "@type": "Offer",
  "price": "1.00",
  "priceCurrency": "USD"
}

问候。