{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Google Cloud Storage 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":"google-cloud-storage-export-integration","__idx":0},"children":["Google Cloud Storage Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブ結果をGoogle Cloud Storageに直接書き込むことができます。Import Integrationについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/google-cloud-storage-import-integration"},"children":["Google Cloud Storage Import Integration"]},"を参照してください。"]},{"$$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 Cloud Platformアカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":2},"children":["Treasure Data Integration の静的 IP アドレス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティポリシーで IP ホワイトリストが必要な場合は、接続を成功させるために Treasure Data の IP アドレスを許可リストに追加する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リージョンごとに整理された静的 IP アドレスの完全なリストは、次のリンクにあります:"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["IP Addresses for Integrations"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"必要なgoogle-cloud-platform認証情報の取得","__idx":3},"children":["必要なGoogle Cloud Platform認証情報の取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この機能を使用するには、以下が必要です。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Project ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["JSON認証情報"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GCSバケットにオブジェクトを作成するためのStorage Object Creatorロール"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GCSバケット内のオブジェクトをリストするためのStorage Object Viewerロール"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-cloud-storageで宛先バケットを取得する","__idx":4},"children":["Google Cloud Storageで宛先バケットを取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cloud Storageバケットをリストします。これらは名前の辞書順にリストされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロジェクト内のバケットをリストするには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud ConsoleでCloud Storageブラウザを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要に応じて、フィルタリングを使用してリスト内の結果を絞り込みます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["現在選択されているプロジェクトの一部であるバケットがブラウザリストに表示されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-cloud-storageで宛先バケットをオプションで作成する","__idx":5},"children":["Google Cloud Storageで宛先バケットをオプションで作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいストレージバケットを作成するには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud ConsoleでCloud Storageブラウザを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create bucket"]},"を選択してバケット作成フォームを開きます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-3-30_12-5-39.f85b2072cd53edff38ce47c1486e908014d84b076a06266368cabfd1f17f9752.d7746214.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["バケット情報を入力し、各ステップを完了するために",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バケット名の要件に従って",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Name"]},"を指定します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バケットデータが永続的に保存される",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Location type"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Location"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バケットの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Default storage class"]},"を選択します。デフォルトのストレージクラスは、バケットにアップロードされるすべてのオブジェクトにデフォルトで割り当てられます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["右側のペインの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monthly cost estimate"]},"パネルは、選択したストレージクラスとロケーション、および予想されるデータサイズと操作に基づいて、バケットの月間コストを見積もります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Access control"]},"モデルを選択して、バケットのオブジェクトへのアクセスを制御する方法を決定します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["必要に応じて、バケットラベルの追加、保持ポリシーの設定、暗号化方法の選択ができます。"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-json認証情報を取得する","__idx":6},"children":["Google JSON認証情報を取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Cloud Storageとの統合は、サーバー間API認証に基づいています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JSON認証情報の生成に使用されるService Accountには、宛先バケットに対するStorage Object Creator権限とStorage Object Viewer権限が必要です。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Developer Consoleにアクセスします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["左側のメニューのAPIs & authの下にあるCredentialsを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Service accountを選択します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191107-183125.bff0af4ff0b2d698ddac8f767fff865e734555f5d3d52c97ddd40f2e132142b2.d7746214.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Googleが推奨するJSON形式のキータイプを選択します。キーはブラウザによって自動的にダウンロードされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191107-183435.4040ec4b0f373fc49ce9988f50924b047dee9b7774609f68f26894f5fc6fcc8a.d7746214.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用して接続を作成する","__idx":7},"children":["Treasure コンソールを使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しいauthenticationを作成する","__idx":8},"children":["新しいAuthenticationを作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataでは、クエリを実行する前にデータ接続を作成して設定する必要があります。データ接続の一部として、統合にアクセスするための認証を提供します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]},"を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Cloud Storageを検索して選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-3-30_12-15-11.ab3a79a166262d667599558e54d20a5c7fb976dc8c51d698c1fc8a5415c2b8d8.d7746214.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証するための認証情報を入力します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-3-30_12-21-43.cfd52597fdb9c849b4dcd1b589fd0d2ca3a0787495ba62c69ef078c3b011a037.d7746214.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続の名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"クエリを定義する","__idx":9},"children":["クエリを定義する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/export/creating-a-destination-integration"},"children":["Creating a Destination Integration"]},"の手順を完了します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをエクスポートするクエリを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリを実行して結果セットを検証します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["既存の統合認証を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/google-cloud-storage-export-integration-2024-08-13.1c74570eefcf79f633e3ab3bec247ede3394d9cc9a5255a108c797b55dfeed2e.d7746214.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["追加のExport Resultsの詳細を定義します。エクスポート統合コンテンツで、統合パラメータを確認してください。たとえば、Export Results画面が異なる場合や、入力する追加の詳細がない場合があります。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/google-cloud-storage-export-integration-2024-08-13-1.8d763bbfd78f9cf1d1cc3e7e2916ad78d532bce9da38669ab0b28904e28ae233.d7746214.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリを実行します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["指定した宛先にデータが移動したことを検証します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"google-cloud-storageの統合パラメータ","__idx":10},"children":["Google Cloud Storageの統合パラメータ"]},{"$$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":"th","attributes":{"data-label":"値"},"children":["値"]},{"$$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":"code","attributes":{},"children":["bucket"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["宛先Google Cloud Storageバケット名(文字列、必須)。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path_prefix"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイル名を含むオブジェクトパスプレフィックス(文字列、必須)。例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/filename.csv"]},"。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content_type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["出力ファイルのMIMEタイプ(文字列、オプション)。デフォルト: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/octet-stream"]},"。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["format"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["csv"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tsv"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["出力ファイル形式(文字列、必須)。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["compression"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["none"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["gz"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bzip2"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["zip_builtin"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["zlib_builtin"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bzip2_builtin"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポートされたファイルに適用される圧縮(文字列、オプション)。デフォルト: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["none"]},"。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["header_line"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最初の行として列名を持つヘッダー行を書き込む(ブール値、オプション)。デフォルト: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},"。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["delimiter"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[","]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\t"]},", `"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["`, 1バイト文字"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null_string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL値の置換文字列(文字列、オプション)。デフォルト: CSVの場合は空文字列、TSVの場合は",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\N"]},"。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_of_line_character"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CRLF"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LF"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["行終端文字(文字列、オプション)。デフォルト: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CRLF"]},"。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリの例","__idx":11},"children":["クエリの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  c0 AS EMAIL\nFROM\n  e_1000\nWHERE c0 != 'email'\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"export-resultsの検証","__idx":12},"children":["Export Resultsの検証"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリが正常に完了すると、結果は指定したGoogle Cloud Storageの宛先に自動的にインポートされます:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191107-183557.20e88d749df90fa6376351d0cdbe4e628d255ab5d27d0a0d06ed8b0c7c529b71.d7746214.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":13},"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":"google-cloud-storage-cliからのデータエクスポート","__idx":14},"children":["Google Cloud Storage CLIからのデータエクスポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のコマンドを使用すると、クエリ結果をGoogle Cloud Storageに送信するスケジュールされたクエリを設定できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["次のサンプル構文でJSONキーを指定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コード構文を壊さずに行を分割するにはバックスラッシュを使用します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"'{\"type\":\"gcs\",\"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","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td sched:create scheduled_gcs \"10 6 * * *\" \\\n-d dataconnector_db \"SELECT id,account,purchase,comment,time FROM data_connectors\" \\\n-r '{\"type\":\"gcs\",\"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","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"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":"オプション"},"children":["オプション"]},{"$$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":"code","attributes":{},"children":["format"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["csv"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tsv"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["compression"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"\""]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["gz"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null_string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"\""]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\N"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["newline"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CRLF"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CR"]},"、または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LF"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["json_keyfile"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["改行",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\n"]},"をバックスラッシュでエスケープ"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"その他の設定","__idx":15},"children":["その他の設定"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Result Exportは、ターゲットの宛先に定期的にデータをアップロードするために",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/scheduled/scheduling-a-query"},"children":["スケジュール"]},"できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべてのimportおよびexport integrationは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows"},"children":["Treasure ワークフロー"]},"に追加できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td"]},"オペレーターを使用して、クエリ結果を指定したコネクタにエクスポートできます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows/operators"},"children":["Workflow Operators"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"参考資料","__idx":16},"children":["参考資料"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/embulk-encoder-encryption-pgp"},"children":["The Embulk-encoder-Encryption document"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"gcs-data-connectorのfaq","__idx":17},"children":["GCS Data ConnectorのFAQ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["注意: 暗号化してアップロードする前に、ファイルを圧縮してください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["非ビルトイン暗号化を使用して復号化する場合、ファイルは.gzや.bz2などの圧縮形式に戻ります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ビルトイン暗号化を使用して復号化する場合、ファイルは生データに戻ります。"]}]}]}]},"headings":[{"value":"Google Cloud Storage Export Integration","id":"google-cloud-storage-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"必要なGoogle Cloud Platform認証情報の取得","id":"必要なgoogle-cloud-platform認証情報の取得","depth":2},{"value":"Google Cloud Storageで宛先バケットを取得する","id":"google-cloud-storageで宛先バケットを取得する","depth":3},{"value":"Google Cloud Storageで宛先バケットをオプションで作成する","id":"google-cloud-storageで宛先バケットをオプションで作成する","depth":3},{"value":"Google JSON認証情報を取得する","id":"google-json認証情報を取得する","depth":3},{"value":"Treasure コンソールを使用して接続を作成する","id":"treasure-コンソールを使用して接続を作成する","depth":2},{"value":"新しいAuthenticationを作成する","id":"新しいauthenticationを作成する","depth":3},{"value":"クエリを定義する","id":"クエリを定義する","depth":2},{"value":"Google Cloud Storageの統合パラメータ","id":"google-cloud-storageの統合パラメータ","depth":3},{"value":"クエリの例","id":"クエリの例","depth":3},{"value":"Export Resultsの検証","id":"export-resultsの検証","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"Google Cloud Storage CLIからのデータエクスポート","id":"google-cloud-storage-cliからのデータエクスポート","depth":2},{"value":"その他の設定","id":"その他の設定","depth":2},{"value":"参考資料","id":"参考資料","depth":2},{"value":"GCS Data ConnectorのFAQ","id":"gcs-data-connectorのfaq","depth":2}],"frontmatter":{"seo":{"title":"Google Cloud Storage Export Integration"}},"lastModified":"2026-06-01T09:47:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-cloud-storage-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}