2015-09-25 47 views
1

结构化数据我已经在HTML页面结构化数据SoftwareApplication这样的:
https://developers.google.com/structured-data/rich-snippets/sw-app免费SoftwareApplication

但是,如果我检查我的结构化数据: 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> 

回答

3

对于此优惠,价格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> 

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

+0

好的,但在我的HTML页面中为开源Android应用程序添加'价格:$ 0.00'看起来很愚蠢.. – sytolk

+0

我更新了答案以显示如何做到这一点 – vberkel