如果你的新聞焦點提要符合我們的資格和可用性指南和下列技術規定,我們就能將其加入 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> |
必填。 新聞內容首頁的完整網址。 |
<description> |
必填。 你的新聞內容說明。 |
<image> |
必填。 與新聞內容相關的圖片。 圖片必須符合下列規定:
詳情請參閱以下示例: <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 播客等產品上公開。 如要啟用防護功能,請將 詳情請參閱以下範例:
|
<item> |
必填。 包含新聞簡報集數詳細資料的標記,例如標題、說明、媒體檔案和時間長度。 Google 助理的新聞焦點提要只會播放最新的新聞內容,例如最新 如需相關規格詳細資訊,請參閱新聞焦點提要集數 RSS 標記。 |
<item>
層級的新聞焦點提要集數 RSS 標記規格:
<item> 層級的新聞焦點提要集數 RSS 標記 |
|
---|---|
<title> |
必填。 新聞簡報集數的名稱。 |
<description> |
必填。 新聞簡報集數的說明。 |
<enclosure> |
必填。 新聞簡報集數的檔案大小、類型和位置。
詳情請參閱以下範例:
|
<guid> |
必填。 每個新聞簡報集數永久指派的全域專屬 ID (GUID),區分大小寫。 如果 ID 不是完整的網址,請將 詳情請參閱以下範例:
|
<pubDate> |
必填。 新聞簡報集數發布的日期和時間。 這些值僅支援日期和時間的 RFC 822 格式。詳情請參閱以下示例: <pubDate>Thu, 22 Sep 2016 21:11:46 GMT</pubDate> |
<itunes:duration> |
必填。 新聞簡報單集的長度,以小時、分鐘和秒為單位。 您可以指定下列任一格式,其中 H = 小時、M = 分鐘和 S = 秒:
詳情請參閱以下範例:
|
範例
以下範例說明 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>