{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab","admonition"]},"type":"markdown"},"seo":{"title":"Audience StudioからのFacebook Conversion Export","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":"audience-studioからのfacebook-conversion-export","__idx":0},"children":["Audience StudioからのFacebook Conversion Export"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このドキュメントでは、Audience StudioのFacebook Conversionコネクタを使用して、Facebook上でアクティベーションを作成する方法について説明します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールは、電話番号、メールアドレス、アイテムリスト、通貨などの情報を含むリクエストペイロードとともに、FacebookへのAPI呼び出しを送信することで、Facebook上でアクティベーションを開始します。以下はAPI呼び出しの例です。追加情報については、Metaのドキュメント",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/marketing-api/conversions-api/offline-events#2--sending-events"},"children":["Sending Offline Events Using the Conversions API"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST -F 'data=[{\"event_name\": \"Purchase\",  \"event_time\": 1674000041,  \"user_data\": {\"em\":[\"309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd\"],    \"ph\": [\"254aa248acb47dd654ca3ea53f48c2c26d641d23d7e2e93a1ec56258df7674c4\",\"6f4fcb9deaeadc8f9746ae76d97ce1239e98b404efe5da3ee0b7149740f89ad6\"]}, \"custom_data\": {\"currency\": \"usd\",\"value\": 123.45,\"contents\": [{\"id\": \"product123\",\"quantity\": 1}]},\"action_source\": \"physical_store\"}]' -F 'access_token=ACCESS_TOKEN' https://graph.facebook.com/v15.0/DATASET_ID/events\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-dataでのアクティベーションの作成","__idx":1},"children":["Treasure Dataでのアクティベーションの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data Audience StudioからFacebookにイベントを送信するには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Facebook Pixel IDとAccess Tokenを取得し、Treasure コンソールでFacebookの認証を作成します。(このステップの詳細な手順は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/facebook-conversions-api-export-integration#create-a-new-connection"},"children":["こちら"]},"を参照してください。)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールでバッチセグメントを作成します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下は、オフラインイベントを含むセグメントの例です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/segment.34bebc5db0ef2ed5ab7054ba95e00465013d246bec5853ee281c85c8b72c29c1.c13ed41d.png","alt":""},"children":[]}," ","3. アクティベーションの詳細を入力します。"," ","入力が必要な詳細は以下の通りです:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Facebookコネクタの認証"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Custom Fieldsエントリ—JSON形式でFacebookに送信されるリクエストペイロードを作成するために、カスタムフィールドエントリが必要です。ステップ5では、カスタムフィールドの設定方法を示します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/act1.71e1c98c306eac04e73b853a4c9df06c04bbddf75a1550840242df4f0b9b4915.c13ed41d.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["出力マッピングの詳細を入力します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/act2.9be43aa702a51359baf59b5f8c46020990b0219c76feab5fbe9162bff9aa404c.c13ed41d.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Custom Fieldsを設定します。"," ","Custom Fieldsは、出力カラムマッピングと整合するように設定する必要があります。これを実現するには2つのオプションがあります:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションA: カスタムクエリを使用し、custom_fieldsを使用してcustom_dataを定義します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションB: すべて選択し、custom_fieldsを使用してcustom_dataを定義します。"]}]}]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"オプションA","disable":false},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["カスタムクエリの例"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n   usd_currency as currency,\n   usd_amount as value,\n   ctype as content_type,\n   c1_id as \"contents[0].id\",\n   c1_pr as \"contents[0].item_price\",\n   c1_qt as \"contents[0].quantity\"\nFROM\n table_name;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Custom Fields (ステップ3用)"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"custom_fields=\ncurrency,\nvalue,\ncontent_type,\ncontents[0].id,\ncontents[0].item_price,\ncontents[0].quantity\n"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"オプションB","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべて選択し、custom_fieldsを使用してcustom_dataを定義します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n　*\nFROM\n table_name;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Custom Fields (ステップ3用)"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"custom_fields=\nusd_currency as currency,\nusd_amount as value,\nctype as content_type,\nc1_id as contents[0].id,\nc1_pr as contents[0].item_price,\nc1_qt as contents[0].quantity\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["idとquantity以外に追加の属性が必要な場合は、それに応じて追加してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"usd_currency as currency,\nusd_amount as value,\nc1_id as contents[0].id,\nc1_qt as contents[0].quantity,\nc1_id as contents[1].id,\nc1_qt as contents[1].quantity\n"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リストサイズについては、リストサイズ以上のインデックスを設定する必要があります。例えば、最大のアイテムリストに10個のアイテムがある場合は、contents[9].attributeまでリストを設定してください。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["アクティベーションをスケジュールして実行します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"facebookでの結果","__idx":2},"children":["Facebookでの結果"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["イベントがFacebookデータセットに表示されると、以下のようになります:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/result.42a38a07bec73c913808dcd0b06882ea93186c42a088daf0b860793ceb781b88.c13ed41d.png","alt":""},"children":[]}]}]},"headings":[{"value":"Audience StudioからのFacebook Conversion Export","id":"audience-studioからのfacebook-conversion-export","depth":1},{"value":"Treasure Dataでのアクティベーションの作成","id":"treasure-dataでのアクティベーションの作成","depth":2},{"value":"Facebookでの結果","id":"facebookでの結果","depth":2}],"frontmatter":{"seo":{"title":"Audience StudioからのFacebook Conversion Export"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/facebook-conversion-export-from-audience-studio","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}