{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Facebook Offline Conversions Export Integration CLI","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":"facebook-offline-conversions-export-integration-cli","__idx":0},"children":["Facebook Offline Conversions Export Integration CLI"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この機能はベータ版です。詳細については、カスタマーサクセス担当者にお問い合わせください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Facebook Offline Conversions BETAを使用して、Treasure Dataから直接FacebookにジョブResult(オフラインイベントデータの形式)を送信し、Facebookの広告が店舗での購入、電話注文、予約など、実世界でどの程度の成果をもたらしているかを測定できます。"]},{"$$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":"p","attributes":{},"children":["Treasure Dataの基本的な知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Facebook Offline ConversionsとFacebook Offline Eventの基本的な知識"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["イベントデータをアップロードするには、Facebook上で以下のいずれかへのアクセスが必要です:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Business Manager管理者"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Offline Event Setを作成したAdmin System User"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Offline Event Setに接続されている",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ad_account"]},"の管理者"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインからの接続の作成","__idx":2},"children":["コマンドラインからの接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIを使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query --database your_database --result configuration query\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","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":"strong","attributes":{},"children":["Config Key"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["facebook_offline_conversions"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["システムユーザーまたはlong-livedアクセストークン"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["app_secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebookアプリシークレット"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["event_set_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook offline event set ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["upload_tag"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["イベントアップロードを追跡するために使用"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["match_keys"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook上でユーザーとマッチングするために使用される識別情報。カンマ区切りの文字列で指定します。例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email,phone,fn,ln,st,country…"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["extern_id"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tpid"]},"を解決するために使用されるスコープ。別のデータセットまたはデータパートナーIDを指定できます。例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12345"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["skip_invalid"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["無効なレコードが検出された場合にジョブを終了する(revertなし)ために使用。例えば、レコードに必須列(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["event_name"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["event_time"]},"など)が欠けている場合"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["retry_limit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各API呼び出しの最大リトライ回数。デフォルト: 6"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initial_retry_wait_msecs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最初のリトライの待機時間。デフォルト: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["60000"]},"ミリ秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["max_retry_wait_msecs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リトライ間の最大待機時間。デフォルト:",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["30000"]},"ミリ秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connection_timeout_secs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["API呼び出し時の接続タイムアウト時間。デフォルト: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["300"]},"秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["write_timeout_secs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リクエストへのデータ書き込みの待機時間。デフォルト: 180"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_timeout_secs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["レスポンスからのデータ読み取りの待機時間。デフォルト: 60"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"例-クエリの実行とoffline-event-setへの結果のエクスポート","__idx":3},"children":["例: クエリの実行とOffline Event Setへの結果のエクスポート"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query --database my_db \\\n--result '{\n           \"type\": \"facebook_offline_conversions\",\n           \"access_token\": \"xxx\"\n           \"app_secret\": \"yyy\"\n           \"event_set_id: 361738844830373,\n           \"upload_tag\": \"store_data\"\n         }' \\\n'SELECT email, fn, ln, event_time, event_name, value, currency from your_table'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サポートされている",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/trino/troubleshooting"},"children":["クエリカラム名"]},"について詳しく学んでください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"実行のスケジュール設定","__idx":4},"children":["実行のスケジュール設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下を必ずご確認ください:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/scheduling-a-data-connector-job-execution-from-the-cli"},"children":["Scheduling Data Connector Job Execution from the CLI"]}]}]}]},"headings":[{"value":"Facebook Offline Conversions Export Integration CLI","id":"facebook-offline-conversions-export-integration-cli","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"コマンドラインからの接続の作成","id":"コマンドラインからの接続の作成","depth":2},{"value":"例: クエリの実行とOffline Event Setへの結果のエクスポート","id":"例-クエリの実行とoffline-event-setへの結果のエクスポート","depth":3},{"value":"実行のスケジュール設定","id":"実行のスケジュール設定","depth":2}],"frontmatter":{"seo":{"title":"Facebook Offline Conversions Export Integration CLI"}},"lastModified":"2026-03-10T06:17:28.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/facebook-offline-conversions-export-integration-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}