{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial"]},"type":"markdown"},"seo":{"title":"Firebase Cloud Messaging Export Integration","description":"Treasure AIでFirebase Cloud Messagingを使用してモバイルアプリやWebサイトに通知を送信する方法を解説します。認証設定と統合手順を詳しく説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"firebase-cloud-messaging-export-integration","__idx":0},"children":["Firebase Cloud Messaging Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Firebaseは、より豊かなアプリ体験を提供するのに役立つモバイルおよびWebアプリケーション開発プラットフォームです。Firebase Cloud Messagingを通じて、モバイルアプリやWebサイトに直接通知を送信できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Realtime DatabaseとCloud Firestoreは、ドキュメント構造のデータを保存し、データ変換が発生するたびに対応するアプリをミリ秒単位で同期できます。アプリとデータベースは相互にリッスンし合い、顧客により反応性の高いアプリ体験を提供します。Firebase ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cloud Functions"]},"を使用すると、サーバーを管理することなく、Firebaseプラットフォームで発生するイベントに応答するバックエンドコードを記述できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基礎知識。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Firebaseプロジェクト。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["置換の場合、NULL値は\"\"(空文字列)に切り詰められます。数値列への置換の場合、警告が表示され、レコードはスキップされます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["メッセージは個別に送信されるため、セッション全体はロールバックされません。エラーメッセージはTreasure コンソールに記録されますが、ジョブは続行されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Firebaseメッセージテンプレート構造についての十分な知識。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用して接続を作成する","__idx":2},"children":["Treasure コンソールを使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続を作成する","__idx":3},"children":["新しい接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ連携を設定する場合、統合にアクセスするための認証を提供します。Treasure Dataでは、認証を設定してからソース情報を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Integrations Hub > Catalogに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Firebaseを検索して選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200519-215903.52e326f47355487197798de2bf799b978ede99fd43793a96f2bf4f3963567dfb.0991c1f0.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200519-220112.b3533425c4b5b067b33da54249c7783ede22ec31f9adcac96cf169b3a4617631.0991c1f0.png","alt":""},"children":[]}," ","4. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://firebase.google.com/docs/cloud-messaging/auth-server"},"children":["Google Developer Consoleサービスアカウント"]},"から取得した認証情報を入力または貼り付けます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200608-200049.7b4d29c1032bfd3d5b58712d5bdaaa6e1fab724027656cd2a19f8f3d48307243.0991c1f0.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいサービスアカウントキーを作成するには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://firebase.google.com/docs/admin/setup#:~:text=To%20authenticate%20a%20service%20account,confirm%20by%20clicking%20Generate%20Key"},"children":["Firebaseドキュメント"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データ連携でエクスポート結果を設定する","__idx":4},"children":["データ連携でエクスポート結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップでは、クエリを作成または再利用します。クエリ内で、データ連携を設定します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"パラメータを指定して接続を設定する","__idx":5},"children":["パラメータを指定して接続を設定する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データのエクスポートに使用する予定のクエリを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリエディタの上部にある",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択します。Choose Integrationダイアログが開きます。結果のエクスポートに使用する接続を選択する際には、既存の接続を使用するか、新しい接続を作成するかの2つのオプションがあります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200605-093602.2443bc93d261fe564b0e947b2b2acd38be82163c057edda478c09aea5fda086d.0991c1f0.png","alt":""},"children":[]}," ","5. 既存の接続を使用する"]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検索ボックスに接続名を入力してフィルタリングします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続を選択します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["エクスポートの詳細を指定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200623-143430.add8062f0f004dba41178f8e97657c7c3123612a52ebc7b68215fbc4e3da6ebb.0991c1f0.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Project Id:"]}," Firebaseプロジェクトのプロジェクト ID。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Message Template:"]}," コネクタは、テンプレート内のすべての置換列とエイリアス(___column_name___)を、Firebaseメッセージに送信する個別のメッセージに置き換えます。すべての置換列とエイリアスは、エクスポートデータに存在する必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fast Mode:"]}," 検証、エラーログ、リトライなしで並列実行を有効にします。Default: false."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection Timeout in Seconds:"]}," HTTP接続/読み取り/書き込みのタイムアウト秒数 (Default: 30, Min: 10, Max: 300)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max retries (オプション):"]}," システムが諦めるまでのリトライ回数。Default: 7."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Initial retry time wait in milliseconds (オプション):"]}," 最初と2回目の試行の間の時間 (ミリ秒)。Default: 500 (0.5秒に相当)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max retry wait in milliseconds (オプション):"]}," 2回目以降のすべての試行の間の時間 (ミリ秒)。Default: 300000 (5分に相当)."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下はテンプレート設定のサンプルです:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n\t\"message\": {\n\t\t\"notification\": {\n\t\t\t\"title\": \"___title___\",\n\t\t\t\"body\": \"___body___\"\n\t\t},\n\t\t\"topic\": \"weather\"\n\t}\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200623-144229.ff804776278f933981cc42f8a32c5537339dba469ea75ad3e62ef36ed0126ad7.0991c1f0.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"firebaseにデータを投入するクエリの例","__idx":6},"children":["Firebaseにデータを投入するクエリの例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataから次のクエリを実行し、Firebase用の接続に結果をエクスポートします:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"SQL","header":{"controls":{"copy":{}}},"source":"Select 'test_body' as body, 'test_title' as title\n","lang":"SQL"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-エクスポート用のscheduled-jobsを使用する","__idx":7},"children":["オプション: エクスポート用のScheduled Jobsを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Result Exportと共にScheduled Jobsを使用して、指定した宛先に定期的に出力結果を書き込むことができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":8},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["i"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプション-workflowでエクスポート結果を設定する","__idx":9},"children":["オプション: Workflowでエクスポート結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー内で、このデータコネクタを使用してデータをエクスポートすることを指定できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n_export:\n  td:\n database: sample_datasets\n\n+td-result-into-firebase:\n  td>: queries/sample.sql\n  result_connection: your_connections_name\n  result_settings:\n    service_account_json: '{\"type\":\"service_account\",\"project_id\":\"project_id\",\"private_key_id\":\"####\"}'\n    project_id: project_id\n    message_template: {\"message\":{\"notification\":{\"title\":\"___title___\",\"body\":\"___body___\"},\"topic\":\"weather\"}}\n    fast_mode: true\n    connection_timeout_seconds: 30\n    retry_count: 7\n    retry_initial_wait_millis: 500\n    max_retry_wait_millis: 300000\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションとして、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/treasure-data-data-exchange-export-integration"},"children":["workflowでデータコネクタを使用してデータをエクスポートする"]},"方法について詳しくお読みください。"]}]},"headings":[{"value":"Firebase Cloud Messaging Export Integration","id":"firebase-cloud-messaging-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure コンソールを使用して接続を作成する","id":"treasure-コンソールを使用して接続を作成する","depth":2},{"value":"新しい接続を作成する","id":"新しい接続を作成する","depth":3},{"value":"データ連携でエクスポート結果を設定する","id":"データ連携でエクスポート結果を設定する","depth":2},{"value":"パラメータを指定して接続を設定する","id":"パラメータを指定して接続を設定する","depth":3},{"value":"Firebaseにデータを投入するクエリの例","id":"firebaseにデータを投入するクエリの例","depth":3},{"value":"オプション: エクスポート用のScheduled Jobsを使用する","id":"オプション-エクスポート用のscheduled-jobsを使用する","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"オプション: Workflowでエクスポート結果を設定する","id":"オプション-workflowでエクスポート結果を設定する","depth":2}],"frontmatter":{"seo":{"title":"Firebase Cloud Messaging Export Integration","description":"Treasure AIでFirebase Cloud Messagingを使用してモバイルアプリやWebサイトに通知を送信する方法を解説します。認証設定と統合手順を詳しく説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/firebase-cloud-messaging-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}