适用于iPhone应用的Google Rich Snippets无效

时间:2011-10-17 15:06:55

标签: iphone html rich-snippets

我已经在我的网站上为我的iPhone应用yycParking设置了Google的Rich Snippets代码。相关的HTML如下所示:

<div itemscope itemtype="http://schema.org/SoftwareApplication">
  <!-- ... -->
  <h2 class="txt-align-center" itemprop="description">
    <strong>yycParking</strong> provides real time updates of parking in downtown Calgary
  </h2>
  <!-- ... -->
  <div class="two-column last">
    <!-- ... -->
      <p>We created <strong itemprop="name">yycParking</strong> to enhance a service provided by ...</p>
    <!-- ... -->
  </div>
  <div class="two-column last txt-align-right">
    <!-- ... -->
      <a title="Download the YYC Parking App from the iTunes store now" href="http://itunes.apple.com/ca/app/yycparking/id460852653?mt=8" target="_blank" itemprop="url">
        <img class="alignnone size-full wp-image-436" title="app-store-badge" src="http://randomtype.ca/cms/assets/app-store-badge.png" alt="" />
      </a>
    <!-- ... -->
  </div>
  <p>
    <meta itemprop="image" content="http://randomtype.ca/cms/assets/app-icon-124x124.png" />
  </p>
</div>

您将从上面的HTML中看到我已经包含以下元素:

  • 架构:itemscope itemtype="http://schema.org/SoftwareApplication"
  • 说明:itemprop="description"
  • 姓名:itemprop="name"
  • 网址:itemprop="url"
  • 图片:itemprop="image"

从阅读rich snippet software application specs开始,我相信我已经点击了4个必需项目,并正确识别了我正在关注的模式。

通过Rich Snippet testing tool运行它我得到的结果不会将该片段识别为iPhone应用,并且会跳过像“Cut the Rope”这样的漂亮图像。

我错过了什么吗?我想主宰卡尔加里停车市场 - 但谷歌正在阻止我!1:P

2 个答案:

答案 0 :(得分:1)

看起来,您错过了价格平均评分。 我不知道是否有严格的要求是什么,什么不是,但加上这两个解决了我的问题。

您可能还想考虑添加更多信息,例如操作系统和版本。

您可以看到一个有效的例子here

<dl>
    <dt>Updated:</dt>
    <dd><time itemprop="datePublished">September 29, 2011</time></dd>

    <dt>Current Version:</dt>
    <dd itemprop="softwareVersion">1.1.1</dd>

    <dt itemprop="operatingSystems" content="iOS">Requires iOS:</dt>
    <dd>4.0 and up</dd>

    <dt>Size:</dt>
    <dd itemprop="fileSize">14.2 MB</dd>

    <dt>Price:</dt>
    <dd itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        <span itemprop="price">9.99$</span>
    </dd>

    <dt>Average Rating:</dt>
    <dd itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <span itemprop="ratingValue">3.6</span>
        (in <span itemprop="ratingCount">931728</span> ratings)
    </dd>
</dl>

PS:我不是这个主题的专家,我刚刚编辑了Cut the Rope页面并继续测试,直到代码很小但仍然有效。 :P

答案 1 :(得分:0)

实际的“错误”似乎是测试工具的错误。但是,我看了你提到的“切断绳子”的例子,实际上拉动图像和其他格式的是Open Graph protocol

<meta property="og:title" content="Cut the Rope" />
<meta property="og:type" content="game" />
<meta property="og:image" content="http://chillingo.com/media/games/small/240x100_cuttherope.png" />
<meta property="og:site_name" content="Chillingo">
相关问题