新闻简报技术要求

如果你的新闻简报符合我们的资格与适用范围准则以及以下技术要求,我们就可以将其收录到 Google 助理中:

  • 公开一个符合 RSS 2.0 规范关于 Google 助理的新闻简报规范的有效 XML Feed。
  • 确保 GoogleBot 可以访问您的 RSS 新闻 Feed 和媒体文件(如音频或视频)。为了符合这一要求,您的所有 Feed 和文件都不得要求登录。此外,它们都无法使用 robots.txt 屏蔽 GoogleBot。

关于 Google 助理规范的新闻简报

请根据以下规范调整您的内容。如需查看音频和视频新闻简报的示例,请参阅示例部分。

我们要求使用 iTunes 扩展程序定义的标记,因此请务必在 Feed 顶部的 <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 方形宽高比图片,图片大小至少为 1400x1400。 不得阻止 Googlebot 访问此 <url> 值。
  • <title><link> 子元素的值,与 <channel> 级别的 <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>

不需要。

用于防止 Feed 在 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>

必填。

为每个新闻简报分集永久分配且区分大小写的全局唯一标识符 (GUID)。

如果您的标识符不是完全限定网址,请将 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>