如果你的新闻简报符合我们的资格与适用范围准则以及以下技术要求,我们就可以将其收录到 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> |
必填。 与您的新闻内容相关的图片。 图片需要满足以下要求:
如需了解详情,请参阅以下示例: <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 播客等产品中公开提供的标记。 如需启用保护,请将 如需了解详情,请参阅以下示例:
|
<item> |
必填。 一个标记,包含新闻简报分集的详细信息,例如标题、说明、媒体文件和时长。 Google 助理新闻简报仅播放最新的新闻内容,例如最新的 如需详细了解所需规范,请参阅新闻简报分集 RSS 标记。 |
<item>
级别的新闻简报分集 RSS 标记的规范:
<item> 级别的新闻简报分集 RSS 标记 |
|
---|---|
<title> |
必填。 新闻简报分集的名称。 |
<description> |
必填。 新闻简报分集的说明。 |
<enclosure> |
必填。 新闻简报分集的文件大小、类型和位置。
如需了解详情,请参阅以下示例:
|
<guid> |
必填。 为每个新闻简报分集永久分配且区分大小写的全局唯一标识符 (GUID)。 如果您的标识符不是完全限定网址,请将 如需了解详情,请参阅以下示例:
|
<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>