{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Braze Currents Import Integration","description":"Brazeデータを簡単にTreasure AIにストリーミングするためのネイティブコネクタ設定方法を解説。リアルタイムデータ連携の手順と注意点を詳しく説明します。","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/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"braze-currents-import-integration","__idx":0},"children":["Braze Currents Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Brazeプラットフォームは、新しい成長機会やブランドインタラクションに関する洞察を提供し、革新的なキャンペーンの構築や戦略的なアクションの実行を支援します。Braze Currentsを使用すると、データをTreasure Dataにプッシュし、成長スタック全体で活用可能にすることができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Braze Streaming Ingress Connectorは、BrazeからTreasure Dataへのリアルタイムデータストリーミングを可能にするネイティブ入力コネクタです。このコネクタは、顧客の信頼を高め、以前のPostback API統合方法の制限を解決します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["適切な権限を持つアクティブなBrazeアカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure アカウントでBraze Currents Streamingコネクタを有効化(Treasure サポートチームにリクエスト)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["テーブルにイベントを書き込むためのTreasure API Write Key"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"設定","__idx":2},"children":["設定"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-コンソールでの設定","__idx":3},"children":["Treasure コンソールでの設定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Connections > New Connectionに移動"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コネクタのリストから「Braze Currents Streaming」を選択"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-04-14-at-12.00.07.d5c9d9649d355179a64b24597b65c6d6a52668310dc73d033cf90c13df800591.98d35268.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下の認証設定を構成:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Authentication:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD Write Key(必須)"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-04-14-at-12.00.12.b61785dbf82a372f75d9fcba5628d802262814012105e44243d2600c4d946709.98d35268.png","alt":""},"children":[]}]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のSource設定を構成:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Connection",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Source Name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-04-14-at-17.36.54.0d1bc3506319b83de9aca605f0653b8c796fe2b098dde709eac85c67cb64b009.98d35268.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Settings",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-04-14-at-17.37.29.b72820dd8372d515d1546246beee23b760d58da0d9c058d1780605b81719a4db.98d35268.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Datastore: Plazma"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tags(オプション): このソースを検索するために使用できるタグです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Database(必須): インポート先のデータベース"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Table(必須): インポート先のテーブル"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Multiple Tablesオプション(チェックボックス):",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["有効にすると、Currentsの設定に基づいて、イベントが異なるテーブルに振り分けられます(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.braze.com/docs/user_guide/data/distribution/braze_currents/setting_up_currents/#requirements"},"children":["リンク"]},")"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Braze設定用のtask_idとしてUnique IDをSourceからコピー",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-07-21-at-23.45.17.38db8408685ac8f35037b449bd3a5a13f5ed79f45baa0da13e2a5147cf42103b.98d35268.png","alt":""},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"brazeプラットフォームでの設定","__idx":4},"children":["Brazeプラットフォームでの設定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Partner Integration → Data Exportに移動"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいCustom Currentを作成(Treasure Dataを選択するとレガシー連携が使用されます)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD設定時に提供されたTreasure DataエンドポイントURLを入力",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["USリージョン: https://braze-in-streaming.treasuredata.com/v1/task/{task_id}"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["EU01リージョン: https://braze-in-streaming.eu01.treasuredata.com/v1/task/{task_id}"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["AP02リージョン: https://braze-in-streaming.ap02.treasuredata.com/v1/task/{task_id}"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tokyoリージョン: https://braze-in-streaming.treasuredata.co.jp/task/v1/{task_id}"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bearer Tokenとして「YOUR_WRITE_APIKEY」を入力"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-04-15-at-13.54.35.df00bf9bd51cbae952178a51af79f72e6defaa85be431e2aa52fbcb5f797d552.98d35268.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["エクスポートするイベントタイプを選択"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データ取り込み","__idx":5},"children":["データ取り込み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタは、JSONデータを自動的に2階層までフラット化します。イベントは、設定に基づいて指定されたテーブルに保存されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データタイプマッピング","__idx":6},"children":["データタイプマッピング"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"JSON Data Type"},"children":["JSON Data Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Schema Data Type"},"children":["Schema Data Type"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フラット化（レベル2まで）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["無視"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"カラム命名規則","__idx":7},"children":["カラム命名規則"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["小文字とアンダースコアのみ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レベル1フィールド: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["field_name"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レベル2フィールド: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parent_field_name_field_name"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データのクエリ","__idx":8},"children":["データのクエリ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["取り込まれたデータをクエリするには、SQLクエリを使用します。例:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  id AS event_id,\n  event_type,\n  time AS event_time,\n  user_user_id,\n  user_external_user_id,\n  properties_dispatch_id,\n  properties_campaign_id,\n  properties_message_variation_id,\n  properties_email_address,\n  properties_user_agent,\n  properties_campaign_name,\n  properties_message_variation_name\nFROM\n  your_database.your_table\nWHERE\n  TD_INTERVAL(\n    time,\n    '-1d',\n    'JST'\n  )\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限事項と考慮事項","__idx":9},"children":["制限事項と考慮事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["最大ペイロードサイズ: 1 MB"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["イベントはデフォルトで100件のバッチにグループ化されます"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"details","attributes":{},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":["レガシー統合ドキュメント"]},"\n#### この統合で何ができますか？\n",{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Braze Currentsから Treasure Data にデータを移動する推奨アプローチは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/postback/quickstart"},"children":["Postback API"]},"を使用することです。この方法では、すぐに使えるコネクタは必要ありません。代わりに、Treasure Data は Postback RESTful API を通じてデータを受信します。1つのデータバッチで送信されるすべてのイベントは、JSON配列の1つの行の1つのフィールド内にあり、必要なデータを取得するためにパースする必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件-1","__idx":10},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/streaming/postback-api"},"children":["Postback API"]},"を含む Treasure Data の基礎知識。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.braze.com/"},"children":["Braze"]},"の基礎知識。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"統合","__idx":11},"children":["統合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Braze Currentインテグレーションの作成手順は、Brazeのウェブサイト ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.braze.com/docs/partners/data_and_analytics/customer_data_platform/treasure_data/treasure_data_for_currents/"},"children":["Treasure Data for Currents"]}," に記載されています。Brazeは、更新されたイベントをリアルタイムでTreasure Dataに直接送信します。ただし、event-collectorを使用したデータ取り込みには数分かかる場合があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Braze CurrentsがTreasure Dataにデータをプッシュした後、次のようなクエリを使用してTreasure コンソールからデータを抽出できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| 注意 | 本番環境で使用する前に、クエリの出力結果が有効であることを必ず確認してください。 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| --- | --- |"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"SELECT  json_extract_scalar(event, '$.id') AS event_id,  json_extract_scalar(event, '$.event_type') AS event_type,  json_extract_scalar(event, '$.time') AS event_time,  json_extract_scalar(json_extract(event, '$.user'), '$.user_id') AS user_id,  json_extract_scalar(json_extract(event, '$.user'), '$.external_user_id') AS external_user_id,  json_extract_scalar(json_extract(event, '$.properties'), '$.dispatch_id') AS dispatch_id,  json_extract_scalar(json_extract(event, '$.properties'), '$.campaign_id') AS campaign_id,  json_extract_scalar(json_extract(event, '$.properties'), '$.message_variation_id') AS message_variation_id,  json_extract_scalar(json_extract(event, '$.properties'), '$.email_address') AS email_address,  json_extract_scalar(json_extract(event, '$.properties'), '$.user_agent') AS user_agent,  json_extract_scalar(json_extract(event, '$.properties'), '$.device_class') AS device_class,  json_extract_scalar(json_extract(event, '$.properties'), '$.device_os') AS device_os,  json_extract_scalar(json_extract(event, '$.properties'), '$.browser') AS browser,  json_extract_scalar(json_extract(event, '$.properties'), '$.ip_pool') AS ip_pool,  json_extract_scalar(json_extract(event, '$.properties'), '$.machine_open') AS machine_open,  json_extract_scalar(json_extract(event, '$.properties'), '$.esp') AS esp,  json_extract_scalar(json_extract(event, '$.properties'), '$.from_domain') AS from_domain,  json_extract_scalar(json_extract(event, '$.properties'), '$.is_amp') AS is_amp,  json_extract_scalar(json_extract(event, '$.properties'), '$.campaign_name') AS campaign_name,  json_extract_scalar(json_extract(event, '$.properties'), '$.message_variation_name') AS message_variation_nameFROM  your_tableCROSS JOIN UNNEST(cast(JSON_PARSE(events) AS array(json))) AS t (event)\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"例","__idx":12},"children":["例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Eventsフィールドの例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n    \"events\": [\n        {\n            \"event_type\": \"users.message.email.Open\",\n            \"id\": \"a1234567-89ab-cdef-0123-456789abcdef\",\n            \"time\": 1477502783,\n            \"user\": {\n                \"user_id\": \"user_id\",\n                \"timezone\": \"America/Chicago\"\n        },\n            \"properties\": {\n                \"campaign_id\": \"11234567-89ab-cdef-0123-456789abcdef\",\n                \"campaign_name\": \"Test Campaign\",\n                \"dispatch_id\": \"12345qwert\",\n                \"message_variation_id\": \"c1234567-89ab-cdef-0123-456789abcdef\",\n                \"email_address\": \"test@example.com\",\n                \"send_id\": \"f123456789abcdef01234567\",\n                \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36\"\n            }\n        }\n    ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["取り込まれたBraze Currents EventsのTreasure コンソールビューの例"]},{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20220314-023753.24d1a19d8a5a50aed86afbf23ab4d4b277ed0cbf3b716e0b65a6aab091814ef9.98d35268.png","alt":""},"children":[]}]}]}]},"headings":[{"value":"Braze Currents Import Integration","id":"braze-currents-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"設定","id":"設定","depth":2},{"value":"Treasure コンソールでの設定","id":"treasure-コンソールでの設定","depth":3},{"value":"Brazeプラットフォームでの設定","id":"brazeプラットフォームでの設定","depth":3},{"value":"データ取り込み","id":"データ取り込み","depth":2},{"value":"データタイプマッピング","id":"データタイプマッピング","depth":3},{"value":"カラム命名規則","id":"カラム命名規則","depth":3},{"value":"データのクエリ","id":"データのクエリ","depth":2},{"value":"制限事項と考慮事項","id":"制限事項と考慮事項","depth":2},{"value":"前提条件","id":"前提条件-1","depth":1},{"value":"統合","id":"統合","depth":1},{"value":"例","id":"例","depth":1}],"frontmatter":{"seo":{"title":"Braze Currents Import Integration","description":"Brazeデータを簡単にTreasure AIにストリーミングするためのネイティブコネクタ設定方法を解説。リアルタイムデータ連携の手順と注意点を詳しく説明します。"}},"lastModified":"2026-07-22T03:22:33.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/braze-currents-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}