新聞焦點提要技術相關規定

只要遵循我們的 資格條件和適用範圍 指南及下列技術相關規定:

  • 公開符合 RSS 2.0 規格Google 助理的新聞焦點提要
  • 確認「GoogleBot」GoogleBot 可存取 RSS 新聞動態消息和媒體檔案 (例如音訊或影片)。為遵守上述規定, 的動態饋給和檔案都不可要求登入。而且皆無法使用 robots.txt即可封鎖 GoogleBot。

Google 助理新聞焦點提要

請符合下列規格的內容。範例:語音和影片新聞 請參閱「範例」一節。

我們需要使用 iTunes 擴充功能所定義的標記,因此請務必加入 可以在 <rss> 標記使用正確的 xmlns 命名空間宣告 顯示在動態消息頁面頂端詳情請參閱以下範例:

<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
敬上 下表提供新聞焦點提要 RSS 標記的規格 <channel>等級:
<channel> 層級的新聞焦點提要出版品 RSS 標記
<title>

必填。

新聞內容的名稱。

<link>

必填。

新聞內容首頁的完整網址。

請擇一使用 模擬器 Google適合行動裝置 測試首頁是否可供存取 Googlebot

<description>

必填。

你的新聞內容說明。

<image>

必填。

與您的新聞內容相關聯的圖片。

圖片必須符合下列規定:

  • <url> 子元素指向清晰可辨識的 GIF。 大小至少為 1,400 x 1,400 像素的 JPEG 或 PNG 正方形圖片。 這個 <url> 值不得在下列位置封鎖: Googlebot
  • 下列的 <title><link> 子元素值: 與下方的 <title><link> 元素相同 <channel>層級。

詳情請參閱以下範例:

<image>
  <url>http://www.example.com/theexampletimes/logo.png?s=1400</url>
  <title>The Example Times</title>
  <link>http://www.example.com/theexampletimes</link>
</image>
<itunes:block>

非必要。

這個標記可防止動態消息在 iTunes 或 Google 等產品上公開提供 Podcast。

如要啟用防護功能,請將 <itunes:block> 的值設為 yes。其他值不會有任何作用。如需詳細資訊,請參閱 Apple 的 A Podcast 創作者的 RSS 指南

詳情請參閱下列範例:

  • <itunes:block>yes<itunes:block>
    
  • <itunes:block>Yes<itunes:block>
    
<item>

必填。

包含新聞焦點提要集數詳情的標記,例如標題 說明、媒體檔案和時間長度

Google 助理的新聞焦點提要只會播放最新的新聞內容,例如 最新 <item> 元素中的內容。如要讓使用者存取 先前的新聞焦點提要集,建議你使用 Google 播客

如要進一步瞭解必要規格,請參閱 新聞焦點提要單集節目 RSS 標記

,瞭解如何調查及移除這項存取權。 下表提供新聞焦點提要單集節目 RSS 標記的規格 於 <item> 層級:
<item> 層級的新聞焦點提要單集節目 RSS 標記
<title>

必填。

新聞焦點提要節目的名稱。

<description>

必填。

新聞焦點提要節目的說明。

<enclosure>

必填。

新聞焦點提要節目的檔案大小、類型和位置。

<enclosure> 元素必須包含下列屬性:

  • length:媒體檔案大小,以位元組為單位
  • type:音訊或影片新聞內容的檔案類型
    • 針對音訊檔案,我們支援下列標準 MIME 類型:.aac.m4a.mp4.mpeg.wav
    • 對於影片檔案,我們支援 .mp4 副檔名和影片檔案大小 必須小於 100 MB。Google Nest Hub 和 Nest Hub Max 支援影片新聞焦點提要。
    • 如需進一步瞭解支援的媒體類型,請參閱 Google Cast 支援的媒體,因為這項功能適用 。
  • url:新聞的完整網址 焦點提要單集的音訊或影片檔案

詳情請參閱下列範例:

  • <enclosure length="187000" type="audio/mpeg"
    url="http://www.example.com/theexampletimes/sample.mp3"/>
    
  • <enclosure length="200000" type="application/x-mpegurl"
    url="http://www.example.com/theexampletimes/sample.m3u8"/>
    
  • <enclosure length="9000000" type="video/mp4"
    url="http://www.example.com/theexampletimes/sample.mp4"/>
    
<guid>

必填。

每則新聞永久指派且區分大小寫的全域專屬 ID (GUID) 焦點提要。

如果 ID 不是完整網址,請設定 isPermaLink 屬性 至 false

詳情請參閱下列範例:

  • <guid>http://www.example.com/theexampletimes/id/1234567891</guid>
    
  • <guid isPermaLink="false">abcde-1234567891</guid>
    
<pubDate>

必填。

新聞焦點提要單集的發布日期。

這些值僅適用於 日期的 RFC 822 格式 時間與地點。詳情請參閱以下範例:

<pubDate>Thu, 22 Sep 2016 21:11:46 GMT</pubDate>
<itunes:duration>

必填。

新聞焦點提要,以小時、分鐘和秒鐘的時間長度。

您可以指定下列其中一種格式,其中 H = 小時、M = 分鐘、S = 秒:

  • HH:MM:SS
  • H:MM:SS
  • MM:SS
  • M:SS
  • S、SS、SSS
,瞭解如何調查及移除這項存取權。

詳情請參閱下列範例:

  • <itunes:duration>1:10:00</itunes:duration>
    
  • <itunes:duration>10:00</itunes:duration>
    
  • <itunes:duration>180</itunes:duration>
    

範例

以下範例顯示新聞內容所需的音訊和影片內容最低資料集 Google 助理的焦點提要。他們追蹤 RSS 2.0 技術相關規定

語音新聞焦點提要範例

以下是語音新聞焦點提要的範例:

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
version="2.0">
  <channel>
   <title>The Example Times</title>
   <link>http://www.example.com/theexampletimes</link>
   <description>The latest news from The Example Times.</description>
   <language>en-us</language>
   <copyright>Copyright 2018 The Example Times  For Personal Use Only</copyright>
   <image>
     <url>http://www.example.com/theexampletimes/logo.png?s=1400</url>
     <title>The Example Times</title>
     <link>http://www.example.com/theexampletimes</link>
   </image>
   <itunes:block>yes</itunes:block>
   <item>
     <title>The Example Times Daily News Briefing</title>
     <itunes:title>The Example Times Daily News Briefing</itunes:title>
     <description>Your daily dose of news from The Example Times.</description>
     <guid>http://www.example.com/theexampletimes/id/1234567893</guid>
     <enclosure length="4500000" type="audio/mpeg" url="http://www.example.com/theexampletimes/sample.mp3"/>
     <pubDate>Thu, 8 Jun 2018 11:11:00 GMT</pubDate>
     <itunes:duration>300</itunes:duration>
   </item>
  </channel>
</rss>

影片新聞焦點提要範例

以下是影片新聞焦點提要的範例:

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
version="2.0">
  <channel>
   <title>The Example Times</title>
   <link>http://www.example.com/theexampletimes</link>
   <description>The latest news from The Example Times.</description>
   <language>en-us</language>
   <copyright>Copyright 2018 The Example Times  For Personal Use Only</copyright>
   <image>
     <url>http://www.example.com/theexampletimes/logo.png?s=1400</url>
     <title>The Example Times</title>
     <link>http://www.example.com/theexampletimes</link>
   </image>
   <itunes:block>yes</itunes:block>
   <item>
     <title>The Example Times Daily News Briefing</title>
     <itunes:title>The Example Times Daily News Briefing</itunes:title>
     <description>Your daily dose of news from The Example Times.</description>
     <guid isPermaLink="false">sample-id-2345678901</guid>
     <enclosure length="9000000" type="video/mp4" url="http://www.example.com/theexampletimes/sample.mp4"/>
     <pubDate>Thu, 8 Jun 2018 11:12:00 GMT</pubDate>
     <itunes:duration>300</itunes:duration>
   </item>
  </channel>
</rss>