新聞焦點提要技術規定

如果你的新聞焦點提要符合我們的資格和可用性指南和下列技術規定,我們就能將其加入 Google 助理:

  • 公開符合 RSS 2.0 規格Google 助理新聞簡報規格的有效 XML 動態饋給。
  • 確認 GoogleBot 可以存取 RSS 動態消息和媒體檔案,例如音訊或影片。為遵守規定,所有動態饋給和檔案都不得要求登入。此外,這些方法都無法使用 robots.txt 封鎖 GoogleBot。

使用 Google 助理功能的新聞焦點提要

請讓內容符合下列規格。如需語音和影片新聞焦點提要的範例,請參閱「範例」一節。

我們要求使用 iTunes 擴充功能定義的標記,因此請務必在動態消息頂端的 <rss> 標記中加入適當的 xmlns 命名空間宣告。詳情請參閱以下示例:

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

必填。

新聞內容的名稱。

<link>

必填。

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

使用Google 擷取行動裝置相容性測試,測試 Googlebot 是否能存取首頁。

<description>

必填。

你的新聞內容說明。

<image>

必填。

與新聞內容相關的圖片。

圖片必須符合下列規定:

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

詳情請參閱以下示例:

<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 播客等產品上公開。

如要啟用防護功能,請將 <itunes:block> 的值設為 yes。其他值則不會有任何影響。詳情請參閱 Apple 的「播客 RSS 指南」。

詳情請參閱以下範例:

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

必填。

包含新聞簡報集數詳細資料的標記,例如標題、說明、媒體檔案和時間長度。

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

如需相關規格詳細資訊,請參閱新聞焦點提要集數 RSS 標記

下表列出 <item> 層級的新聞焦點提要集數 RSS 標記規格:
<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>