{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Karte Export Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","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":"karte-export-integration","__idx":0},"children":["Karte Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/karte-import-integration"},"children":["Learn more about KARTE Import Integration"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Karteコネクタを使用して、Treasure Dataで実行したクエリのジョブ結果をGoogle Cloud Storageに書き込むことができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"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":["Toolbelt"]},"を含むTreasure Dataの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud Platformアカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-cloud-platformの認証情報を取得する","__idx":2},"children":["Google Cloud Platformの認証情報を取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタを作成する前に、以下の情報を収集する必要があります：",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Project ID"]},"と",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["JSON Credential"]},"です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"json-credential","__idx":3},"children":["JSON Credential"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Cloud Storageとの統合は、サーバー間API認証に基づいています。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Google Developer Console"]},"に移動し、左側のメニューの",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["APIs & auth"]},"の下にある",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credentials"]},"を選択します。次に、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Service account"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191002-134701.439a883f70e8d8d23edfb7dd8443b07cbf84c337e1e83b8fc34d613648729db6.45d33724.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["JSON"]},"ベースのキータイプを選択してください。これはGoogleの推奨設定です。キーはブラウザによって自動的にダウンロードされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191002-135027.40548c465aab9c1206e754feddfea9ce75b35a6f1758bbc448c6058fca0f710d.45d33724.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JSON Credentialsを生成したService Accountの所有者は、宛先バケットに対する書き込み権限を持っている必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"karteコネクタで出力を指定する","__idx":4},"children":["KARTEコネクタで出力を指定する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用する","__idx":5},"children":["Treasure コンソールを使用する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-cloud-storageに宛先バケットを作成する","__idx":6},"children":["Google Cloud Storageに宛先バケットを作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Cloud Storageコンソールから",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["バケット"]},"を作成します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを記述する","__idx":7},"children":["クエリを記述する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.treasuredata.com/app/queries/editor"},"children":["Treasure コンソールクエリエディタページ"]},"に移動し、クエリをコンパイルします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"result-exportターゲットを指定する","__idx":8},"children":["Result Exportターゲットを指定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["同じウィンドウで、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Result Export"]},"の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Connection"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191002-134829.388713a639208dedf7274c5ce4a5635d96a085dd5638e16ad520b5441ecd6da2.45d33724.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["開いたダイアログで、接続タイプ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["KARTE"]},"を検索して選択します。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["KARTE"]},"接続の名前を指定します。JSON Credential、Bucket name、Pathを含む情報を入力します："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191002-134857.656a9f0de46cfb1fd35ed35b84c57cdb29c512644f868b21f9d063d1ebca8c9f.45d33724.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191002-134934.06e85952c6070679f8d059ac8fe564d9ebe46f729e3420d08d3abbc1efe88dda.45d33724.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを実行する","__idx":9},"children":["クエリを実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最後に、クエリに名前を付けて保存するか、単にクエリを実行します。クエリが正常に完了すると、結果は指定されたGoogle Cloud Storageの宛先に自動的に送信されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191002-134949.40e5f9cff9bab28ade6ce38bc95fec50f470b84b0c1c75dae446b32e80489edd.45d33724.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":10},"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":"Heading","attributes":{"level":2,"id":"cliを使用する","__idx":11},"children":["CLIを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["KARTEを使用してジョブ結果をGoogle Cloud Storageに送信するように、スケジュール済みクエリを設定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["json_keyを指定し、改行をバックスラッシュでエスケープします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td sched:create scheduled_karte \"10 6 * * *\" \\\n-d dataconnector_db \"SELECT id,account,purchase,comment,time FROM data_connectors\" \\\n-r '{\"type\":\"karte\",\"bucket\":\"samplebucket\",\"path_prefix\":\"/output/test.csv\",\"format\":\"csv\",\"compression\":\"\",\"header_line\":false,\"delimiter\":\",\",\"null_string\":\"\",\"newline\":\"CRLF\",  \"json_keyfile\":\"{\\\"private_key_id\\\": \\\"ABCDEFGHIJ\\\", \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----\\\\nABCDEFGHIJ\\\\ABCDEFGHIJ\\\\n-----END PRIVATE KEY-----\\\\n\\\", \\\"client_email\\\": \\\"ABCDEFGHIJ@developer.gserviceaccount.com\\\", \\\"client_id\\\": \\\"ABCDEFGHIJ.apps.googleusercontent.com\\\", \\\"type\\\": \\\"service_account\\\"}\"}'\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプション-workflowでエクスポート結果を設定する","__idx":12},"children":["(オプション) Workflowでエクスポート結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー内で、このデータコネクタを使用してデータを出力することを指定できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n_export:\n  td:\n    database: sample_datasets\n\n+td-result-into-target:\n  td>: queries/sample.sql\n  result_connection: karte_integration\n  result_settings:\n    bucket: your_bucket\n    path_prefix: dir/example.csv.gz\n    format: csv\n    compression: gz\n    newline: CR\n    ....\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフローでデータコネクタを使用してデータをエクスポートする方法の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows/exporting-data-with-parameters"},"children":["Exporting Data with Parameters"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"karteコネクタのパラメータ","__idx":13},"children":["KARTEコネクタのパラメータ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["KARTEコネクタを設定する際に、以下のパラメータを使用できます。"]},{"$$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":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["bucket"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"バケット名"},"children":["バケット名"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["path_prefix"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイルパス"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["format"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"csv\"または\"tsv\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["compression"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\"または\"gz\"、\"encryption_pgp\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["public key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイルをアップロードする前に暗号化するために使用される公開鍵"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Key Identifier"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイルを保護するために使用される暗号化サブキーのKey IDを指定します。マスターキーは暗号化プロセスから除外されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Amor"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ASCII armorを使用するかどうか"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Compression Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ファイルを圧縮するために使用される圧縮アルゴリズムを定義します。ファイルはSFTPサーバーへのアップロードのために暗号化される前に圧縮されます。- ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意：ファイルは暗号化してアップロードする前に圧縮してください。復号化すると、ファイルは.gzや.bz2などの圧縮形式に戻ります。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["header_line"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["trueまたはfalse"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["delimiter"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\",\"または\"\\t\"または\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["null_string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\"または\"\\N\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["newline"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"CRLF\"または\"CR\"または\"LF\""]}]}]}]}]}]},"headings":[{"value":"Karte Export Integration","id":"karte-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"Google Cloud Platformの認証情報を取得する","id":"google-cloud-platformの認証情報を取得する","depth":1},{"value":"JSON Credential","id":"json-credential","depth":2},{"value":"KARTEコネクタで出力を指定する","id":"karteコネクタで出力を指定する","depth":1},{"value":"Treasure コンソールを使用する","id":"treasure-コンソールを使用する","depth":2},{"value":"Google Cloud Storageに宛先バケットを作成する","id":"google-cloud-storageに宛先バケットを作成する","depth":3},{"value":"クエリを記述する","id":"クエリを記述する","depth":3},{"value":"Result Exportターゲットを指定する","id":"result-exportターゲットを指定する","depth":3},{"value":"クエリを実行する","id":"クエリを実行する","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"CLIを使用する","id":"cliを使用する","depth":2},{"value":"(オプション) Workflowでエクスポート結果を設定する","id":"オプション-workflowでエクスポート結果を設定する","depth":2},{"value":"KARTEコネクタのパラメータ","id":"karteコネクタのパラメータ","depth":2}],"frontmatter":{"seo":{"title":"Karte Export Integration"}},"lastModified":"2026-06-01T09:47:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/karte-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}