{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Marketo Export Integration","description":"Treasure AIからMarketoへのデータエクスポート方法を解説。APIを使用してリードリストの追加や更新を行う接続設定と手順を詳しく説明します。","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":"marketo-export-integration","__idx":0},"children":["Marketo Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/marketo-import-integration"},"children":["Marketo Import Integrationについて詳しく見る"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのジョブ結果をMarketoアカウントのレコードに直接書き込むコネクタを作成できます。TDクエリジョブの結果により、Marketoターゲットリストへの追加や既存ユーザーの更新などのユーザー追加が可能です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Marketoへのエクスポートのサンプルワークフローについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td/marketo"},"children":["Treasure Boxes"]},"をご覧ください。"]},{"$$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":["TD Toolbelt"]},"を含むTreasure Dataの基本知識。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["APIアクセスが有効化されたMarketoアカウント（Marketoコンソールから実行）。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"新しい接続を作成する","__idx":2},"children":["新しい接続を作成する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Marketo"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/marketotile.663647a59e2e9da836a3819264228b9fb05248cf52749853c826f09ab25de70f.fbe2a812.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ダイアログが開きます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/marketoimport.aefe5bd733c9ee00014b97821d7e477b303fff29a96821bd4ca9e5e88d12d779.fbe2a812.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Marketoの認証情報を入力して、新しい接続情報を完成させます。"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Marketo Account ID"]},"（必須）：MarketoサービスID/Munchkin ID。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Marketo Client ID"]},"（必須）：サービス固有のクライアントID。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Marketo Client Secret"]},"（必須）：サービス固有のクライアントシークレット。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しく作成した接続の名前を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"marketo接続への結果出力を設定する","__idx":3},"children":["Marketo接続への結果出力を設定する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリエディタの上部にある",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["output results"]},"を確認し、Marketo接続を選択します。"]}]},{"$$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":"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":["Mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタモードは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["upload_leads"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["delete_leads"]},"になります。デフォルトはupload_leadsです。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Marketo Target List ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新しいリードがインポートされるリストのID。リストは既存のリストから選択する必要があります。そうでない場合、新しいリードはMarketoの中央データベースに格納されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Headers for importing data"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポート対象フィールドとしてヘッダーを指定します。クエリに加えて、ここでフィールド名を指定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Marketo Partition Name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新しいリードが属するパーティションの名前。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lookup Field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このフィールドの値はこのデータセットにバインドされ、データセットの検索や重複排除に使用できます。デフォルトはemailです。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタが接続とデータ送信を試みるのを停止するまでの再試行回数。デフォルトの再試行制限は6です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry initial wait in milliseconds"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["回復可能なエラーが発生した場合の再試行間隔（ミリ秒）。デフォルトは1000です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry Max wait in milliseconds"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$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":["Max HTTP waiting time in milliseconds"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最大HTTP待機時間。デフォルトは3000000です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Max upload chunk size (in bytes)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アップロードする最大チャンクサイズ。デフォルトは10000000です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Batch max wait in milliseconds"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["バッチの最大待機時間。デフォルトは3600000です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ignore Invalid Records"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["削除時に無効なレコードを無視します。デフォルトはfalseです。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip Invalid Records"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アップロードデータ中の無効なレコードを無視します。デフォルトはtrueです。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サンプル設定","__idx":4},"children":["サンプル設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-01-10-at-00.14.27.f723816021568bda17f3091968a0004e685bf385fac145ed94e7f263607e7ab0.fbe2a812.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リストIDはMarketoコンソールで確認できます："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-145434.f0f29d1e9d8a6473de9a9b30395771d9702bcdbd82fb5c0d666946c7af3c7733.fbe2a812.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"audience-studioでセグメントをアクティベートする","__idx":5},"children":["Audience Studioでセグメントをアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studioでアクティベーションを作成することで、ターゲットプラットフォームにセグメントデータを送信することもできます。"]},{"$$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":["親セグメントを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲットセグメントを開き、右クリックして",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]},"パネルで、アクティベーション名を入力し、前のセクションの設定パラメータに従ってアクティベーションを設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]},"パネルでアクティベーション出力をカスタマイズします。"]}]},{"$$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"]},"を選択し続けます。"]}]}]},{"$$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：セグメントID番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name：セグメント名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id：親セグメント番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"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":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"オプションcliを使用したexport-integration","__idx":6},"children":["（オプション）CLIを使用したExport Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を使用して、CLIからMarketoへのクエリ結果のエクスポートをトリガーできます。td queryコマンドの--resultオプションを使用して、エクスポートジョブのパラメータを指定する必要があります。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/querying-and-importing-data-to-treasure-data-from-the-command-line"},"children":["Querying and Importing Data to Treasure Data from the Command Line"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションの形式はJSONで、一般的な構造は次のとおりです："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For upload lead mode"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\"type\": \"marketo\",  \"account_id\": \"account id\",  \"client_id\": \"client id\",  \"client_secret\": \"client secret\",  \"mode\": \"upload_leads\",  \"list_id\": \"list id\",  \"batch_max_wait_msec\": 3600000,  \"upload_chunk_size_in_bytes\": 10000000,  \"retry_limit\": 7,  \"retry_initial_wait_msec\": 1000,  \"max_retry_wait_msec\": 32000,  \"http_timeout_millis\": 300000,  \"skips_invalid_records\": true}# For delete mode{  \"type\": \"marketo\",  \"account_id\": \"account id\",  \"client_id\": \"client id\",  \"client_secret\": \"client secret\",  \"mode\": \"delete_leads\",  \"list_id\": \"list id\",  \"batch_max_wait_msec\": 3600000,  \"upload_chunk_size_in_bytes\": 10000000,  \"retry_limit\": 7,  \"retry_initial_wait_msec\": 1000,  \"max_retry_wait_msec\": 32000,  \"http_timeout_millis\": 300000,  \"ignore_invalid_records\": false}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cliパラメータ","__idx":7},"children":["CLIパラメータ"]},{"$$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":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポートタイプ。正確な値として「marketo」である必要があります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["account_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このサービス/アカウントに必要な特定のMarketo Munchkin ID。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントID。Marketoコンソールから取得可能。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントシークレット。Marketo コンソールから取得できます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクターモードは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["upload_leads"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["delete_leads"]}," のいずれかです。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["list_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新しいリードがインポートされるリストの ID。リストは既存のリストである必要があります。そうでない場合、新しいリードは Marketo の中央データベースに送られます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["file_format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用するファイル形式。デフォルト形式は CSV です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["headers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポート対象フィールドとしてヘッダーを指定します。クエリに加えて、ここでフィールド名を指定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["partition_name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新しいリードが属するパーティションの名前。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["lookup_field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このフィールドの値はこのデータセットに関連付けられ、データセットの検索または重複排除に使用できます。デフォルトは email です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクターが接続とデータ送信を試行するのを停止するまでの再試行回数。再試行制限のデフォルトは 6 です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_initial_wait_msec"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["回復可能なエラーが発生した場合の再試行間隔（ミリ秒）。デフォルトは 1000 です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["max_retry_wait_msec"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$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":["http_timeout_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP の最大待機時間。デフォルトは 3000000 です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["upload_chunk_size_in_bytes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アップロードする最大チャンクサイズ。デフォルトは 10000000 です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["batch_max_wait_msec"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["バッチの最大待機時間。デフォルトは 3600000 です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ignore_invalid_records"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["削除時に無効なレコードを無視します。デフォルトは false です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["skip_invalid_records"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データアップロード時に無効なレコードを無視します。デフォルトは true です。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"例","__idx":8},"children":["例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d [database] -w 'SELECT id, email, company FROM marketo' --type presto --result '{\"type\":\"marketo\", \"account_id\":\"[account id]\", \"client_id\":\"[client id]\", \"client_secret\":\"[client secret]\", \"mode\":\"upload_leads\", \"list_id\":\"[list id]\", \"retry_limit\": 3}';\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"リードリストを設定するクエリの記述","__idx":9},"children":["リードリストを設定するクエリの記述"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール で、以下のクエリを実行し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Output results"]}," を Marketo との接続に出力します。このクエリは実際のユーザーと一致せず、デモンストレーション目的のみです。列名の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/marketo-export-integration"},"children":["Appendix"]}," を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  td_global_id as tdglobalid,\n  firstname,\n  lastname,\n  email,\n  company\nFROM (\n  VALUES\n    ('b1b065f5-1222-4a14-b151-379d49ec39e3', 'John', 'Doe', 'name+test1@treasure-data.com', 'Marketo Dummy Lead - DO NOT USE'),\n    ('x1b065f5-1222-4a14-b151-379d49ec39e3', 'Janes', 'Doe', 'name+test2@treasure-data.com', 'Marketo Dummy Lead - DO NOT USE'),\n    ('p1b065f5-1222-4a14-b151-379d49ec39e3', 'Tony', 'Doe', 'name+test3@treasure-data.com', 'Marketo Dummy Lead - DO NOT USE'),\n    ('o1b065f5-1222-4a14-b151-379d49ec39e3', 'Bill', 'Adam', 'name+test4@treasure-data.com', 'Marketo Dummy Lead - DO NOT USE'),\n  ('t1b065f5-1222-4a14-b151-379d49ec39e3', 'Dan', 'Steve', 'name+test5@treasure-data.com', 'Marketo Dummy Lead - DO NOT USE')\n) tbl\n  (\n    td_global_id,\n    firstname,\n    lastname,\n    email,\n    company\n)\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このデモクエリには、ソーステーブルは必要ありません（この機能のテストを容易にするため）が、データベースを選択する必要があるため、\"sample_datasets\" または他の任意のテーブルを選択してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定でデータヘッダーを指定したくない場合は、クエリでエイリアスを使用してクエリ結果の列名を変更できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"例-1","__idx":10},"children":["例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  an_email_column AS EMAIL,\n  another_phone_column AS PHONE\nFROM\n  your_table;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["前のコードサンプルでは、EMAIL と PHONE のヘッダーを持つ新しいデータセットを作成しています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["列名は大文字と小文字を区別しません。たとえば、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EMAIL"]}," のいずれかを使用できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリは数秒で完了するはずです。完了したら、Marketo Console で新しいリードを確認してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-145325.e5c9ae872920dc020631e83011f1760ce267fd991e014ae7485b3e4ea03f3fc8.fbe2a812.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"appendix","__idx":11},"children":["Appendix"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"marketo-leads-data","__idx":12},"children":["Marketo Leads Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力結果データは ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://developers.marketo.com/rest-api/lead-database/fields/field-types/"},"children":["Marketo のデータ仕様"]}," に従う必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、フィールドが Integer として設定されている場合、Treasure Data が Marketo に送信するデータは int に変換可能でなければなりません（1001aa は有効な整数ではありません）。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"munchkin-account-information","__idx":13},"children":["Munchkin Account Information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Marketo リストをアップロードする前に、API 対応アカウントへのアクセスが必要です。Munchkin Account ID は Marketo の Admin ページから取得できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["API アクセス用の新しいアカウントを有効化して作成する手順"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.marketo.com/display/public/DOCS/Create+an+API+Only+User"},"children":["API-Only User"]}," を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.marketo.com/display/public/DOCS/Create+an+API+Only+User+Role"},"children":["API-Only User Role"]}," を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.marketo.com/display/public/DOCS/Enable+the+Advanced+List+Import+Permission+on+a+Role"},"children":["Advanced List Import Permission on a Role"]}," を有効にします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.marketo.com/display/public/DOCS/Create+a+Custom+Service+for+Use+with+ReST+API"},"children":["Custom Service for Use with REST API"]}," を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"Web Service\" メニューで Rest API のエンドポイントを確認します。そこで、API を使用するための client ID と client secret を見つけることができます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-145135.ba4107f8ad71bae8a1ad1f8738693333fee194aea9346a87f01fb0bece8a593f.fbe2a812.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"preparing-data-for-marketo-leads---reference","__idx":14},"children":["Preparing Data for Marketo Leads - Reference"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://developers.marketo.com/rest-api/error-codes/"},"children":["Error code"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://developers.marketo.com/blog/how-to-specify-lead-partitions-using-the-rest-api/"},"children":["Partition Name"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://developers.marketo.com/rest-api/lead-database/leads/#query"},"children":["FilterType/LookupField"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://developers.marketo.com/rest-api/lead-database/fields/field-types/"},"children":["Data Type for Marketo Lead fields"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://developers.marketo.com/rest-api/lead-database/fields/list-of-standard-fields/"},"children":["Standard Lead fields"]}," (API アクセスから利用可能)"]}]}]},"headings":[{"value":"Marketo Export Integration","id":"marketo-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"新しい接続を作成する","id":"新しい接続を作成する","depth":1},{"value":"Marketo接続への結果出力を設定する","id":"marketo接続への結果出力を設定する","depth":1},{"value":"サンプル設定","id":"サンプル設定","depth":2},{"value":"Audience Studioでセグメントをアクティベートする","id":"audience-studioでセグメントをアクティベートする","depth":1},{"value":"（オプション）CLIを使用したExport Integration","id":"オプションcliを使用したexport-integration","depth":1},{"value":"CLIパラメータ","id":"cliパラメータ","depth":3},{"value":"例","id":"例","depth":3},{"value":"リードリストを設定するクエリの記述","id":"リードリストを設定するクエリの記述","depth":1},{"value":"例","id":"例-1","depth":3},{"value":"Appendix","id":"appendix","depth":1},{"value":"Marketo Leads Data","id":"marketo-leads-data","depth":2},{"value":"Munchkin Account Information","id":"munchkin-account-information","depth":2},{"value":"Preparing Data for Marketo Leads - Reference","id":"preparing-data-for-marketo-leads---reference","depth":2}],"frontmatter":{"seo":{"title":"Marketo Export Integration","description":"Treasure AIからMarketoへのデータエクスポート方法を解説。APIを使用してリードリストの追加や更新を行う接続設定と手順を詳しく説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/marketo-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}