ニュース ピックアップが Google の資格と提供状況のガイドラインと次の技術要件の両方を満たしている場合は、Google アシスタントにオンボーディングできます。
- RSS 2.0 仕様とアシスタント仕様のニュース ピックアップを満たす有効な XML フィードを公開します。
- GoogleBot が RSS ニュース フィードとメディア ファイル(音声や動画など)にアクセスできることを確認します。遵守するため、すべてのフィードとファイルでログインを必須としないでください。さらに、そのいずれも
robots.txt
を使用して GoogleBot をブロックすることはできません。
アシスタントの仕様に関するニュース ピックアップ
コンテンツを次の仕様に適合させてください。音声と動画のニュース ピックアップの例については、例のセクションをご覧ください。
iTunes の拡張機能で定義されたタグを使用する必要があるため、フィードの上部にある <rss>
タグに適切な xmlns
名前空間宣言を含めます。詳しくは次の例をご覧ください。
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
レベルのニュース ピックアップの RSS タグの仕様を次の表に示します。
<channel> レベルのニュース ピックアップのパブリケーションの RSS タグ |
|
---|---|
<title> |
必須。 ニュース コンテンツの名前。 |
<link> |
必須。 ニュース コンテンツのホームページの完全修飾 URL。 Fetch as 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> |
不要。 iTunes や Google Podcasts などのサービスでのフィードが一般公開されないように保護するタグ。 保護を有効にするには、 詳しくは、次の例をご覧ください。
|
<item> |
必須。 タイトル、説明、メディア ファイル、再生時間など、ニュース ピックアップのエピソードの詳細を含むタグ。 Google アシスタントのニュース ピックアップでは、利用可能な最新のニュース コンテンツ(最新の 必要な仕様の詳細については、ニュース ピックアップのエピソード RSS タグをご覧ください。 |
<item>
レベルのニュース ピックアップのエピソード RSS タグの仕様を示します。ニュース ピックアップのエピソードの RSS タグ(<item> レベルの) |
|
---|---|
<title> |
必須。 ニュース ピックアップのエピソードの名前。 |
<description> |
必須。 ニュース ピックアップのエピソードの説明。 |
<enclosure> |
必須。 ニュース ピックアップのエピソードのファイルサイズ、タイプ、場所。
詳しくは、次の例をご覧ください。
|
<guid> |
必須。 ニュース ピックアップのエピソードごとに永続的に割り当てられたグローバル固有 ID(GUID)。大文字と小文字を区別します。 ID が完全修飾 URL でない場合は、 詳しくは、次の例をご覧ください。
|
<pubDate> |
必須。 ニュース ピックアップのエピソードが公開された日時。 これらの値は、日時に関して RFC 822 形式でのみサポートされます。詳しくは次の例をご覧ください。 <pubDate>Thu, 22 Sep 2016 21:11:46 GMT</pubDate> |
<itunes:duration> |
必須。 ニュース ピックアップのエピソードの長さ(時間、分、秒)。 次のいずれかの形式を指定できます。H は時間、M は分、S は秒です。
詳しくは、次の例をご覧ください。
|
例
次の例は、Google アシスタントでのニュース ピックアップ用の音声コンテンツと動画コンテンツに必要な最小限のデータセットを示しています。RSS 2.0 に準拠し、Google のすべての技術要件に準拠しています。
音声のニュース ピックアップの例
音声のニュース ピックアップの例を次に示します。
<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>