2011-10-17 13 views
4

我已在我的網站上爲我的iPhone應用程序yycParking設置Google豐富網頁代碼。相關的HTML看起來像這樣:適用於iPhone應用程序的Google豐富網頁代碼段無法使用

<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"
  • URL:itemprop="url"
  • 圖片:itemprop="image"

從閱讀rich snippet software application specs我相信我已經擊中了4個必需項目,並正確地確定了我遵循的模式。

運行它通過Rich Snippet testing tool我得到一個結果,不會將代碼段標識爲iPhone應用程序,並跳出像「剪切繩」那樣的漂亮圖像。

我錯過了什麼嗎?我想主宰卡爾加里停車場 - 但谷歌讓我退縮!1:P

回答

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:我不是這方面的專家,我只是編輯的割繩子頁面,並保持測試,直到代碼是最小的,但它仍然工作。 :P

+0

輝煌!這真棒,我非常欣賞這一努力。我完全沒有想到創建另一個頁面,並配對降低繩子來測試它。賞金很好賺! –

+0

耶,剛剛贏得了我的第二個賞金!謝謝! :d –

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"> 
+0

我會用你的代碼更新我的html,看看是否改變了任何東西。 –

+0

它似乎沒有開放圖表代碼有所作爲。 –

+0

切割繩子不使用單個og:... –

相關問題