{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Salesforce Marketing Cloud Import Integration CLI","description":"Salesforce Marketing Cloud からデータをインポートするための Treasure AI CLI コマンドの設定と使用方法を解説する技術ドキュメントページです。","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":"salesforce-marketing-cloud-import-integration-cli","__idx":0},"children":["Salesforce Marketing Cloud Import Integration CLI"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-コマンド-v0119-以降をインストール","__idx":1},"children":["'td' コマンド v0.11.9 以降をインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]}," をインストールできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td --version\n0.15.3\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"設定ファイルの作成","__idx":2},"children":["設定ファイルの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Salesforce Marketing Cloud アカウントのアクセス情報を使用して、次の例のように設定ファイル(例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]},")を準備します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: salesforce_marketing_cloud_v2\n  client_id: client_id\n  client_secret: client_secret\n  auth_type: v2\n  auth_uri: auth_uri\n  account_id: account_id\n  target: target_name\n  data_extension_names: data_extension_names\n  shared_data_extension: false\n  incremental: false\n  maximum_retries: 7\n  initial_retry_interval_millis: 1000\n  maximum_retry_interval_millis: 120000\n\nfilters:\n- type: add_time\n  to_column:\n    name: time\n    type: timestamp\n  from_value:\n    mode: upload_time\n- type: rename\n  rules:\n  - rule: upper_to_lower\n  - rule: character_types\n    pass_types: [ \"a-z\", \"0-9\" ]\n    pass_characters: \"_\"\n    replace: \"_\"\n\nout:\n  type: td\n  apikey: td_api_key\n  endpoint: td_endpoint\n  database: database\n  table: table\n  time_column: time\n  mode: replace\n  default_timestamp_format: '%d/%m/%Y'\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Campaign"]}," Data Source をダンプします:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_id"]},": Salesforce Marketing Cloud のクライアント ID。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_secret"]},": Salesforce Marketing Cloud のクライアントシークレット。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["target"]},": インポートする Salesforce Marketing Cloud のエンティティオブジェクト。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"インポートするデータのプレビューオプション","__idx":3},"children":["インポートするデータのプレビュー(オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:preview"]}," コマンドを使用して、インポートされるデータをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ロードジョブの実行","__idx":4},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データサイズによっては数時間かかることがあります。ユーザーは、データが保存されるデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のストレージは時間でパーティショニングされているため、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--time-column"]}," オプションを指定することをお勧めします(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"も参照してください)。このオプションが指定されていない場合、データコネクタは最初の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["long"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timestamp"]}," カラムをパーティショニング時間として選択します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--time-column"]}," で指定するカラムのタイプは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["long"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timestamp"]}," タイプのいずれかである必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時間カラムがない場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["add_time"]}," フィルターオプションを使用して追加できます。詳細は ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_time filter plugin"]}," を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column modifieddate\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上記のコマンドは、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)"]}," と ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["table(td_sample_table)"]}," がすでに作成されていることを前提としています。データベースまたはテーブルが TD に存在しない場合、このコマンドは成功しません。したがって、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["データベースとテーブルを手動で作成"]},"するか、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:issue"]}," コマンドで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--auto-create-table"]}," オプションを使用して、データベースとテーブルを自動作成します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column modifieddate --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["\"--time-column\" オプションを使用して、Time Format カラムを \"Partitioning Key\" に割り当てることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジュール実行","__idx":5},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的な Salesforce Marketing Cloud インポートのために、データコネクタの定期実行をスケジュールできます。高可用性を確保するために、スケジューラーを注意深く設定しています。この機能を使用することで、ローカルデータセンターに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," デーモンを用意する必要がなくなります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジュールの作成","__idx":6},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいスケジュールは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:create"]}," コマンドを使用して作成できます。スケジュールの名前、cron スタイルのスケジュール、データが保存されるデータベースとテーブル、Data Connector 設定ファイルが必要です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_salesforce_marketing_cloud_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," パラメータは、次の3つのオプションも受け入れます: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"。| デフォルトでは、スケジュールは UTC タイムゾーンで設定されます。-t または --timezone オプションを使用して、タイムゾーンでスケジュールを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]}," オプションは、'Asia/Tokyo'、'America/Los_Angeles' などの拡張タイムゾーン形式のみをサポートします。PST、CST などのタイムゾーン略語は*サポートされておらず*、予期しないスケジュールにつながる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"増分ロード","__idx":7},"children":["増分ロード"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-extensions-の場合","__idx":8},"children":["Data Extensions の場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data は、日付フィールドを持つ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Extensions"]}," の増分ロードをサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: true"]}," が設定されている場合、データコネクタは、指定された日付フィールドの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from_date"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fetch_days"]}," で指定された範囲に従ってレコードをロードします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"  incremental_column_name: mydatefield\n  from_date: \"2016-09-01T00:00:00.000Z\"\n  fetch_days: 2\n"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1回目のイテレーション: データコネクタは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2016年9月1日 00:00:00 UTC"]}," から ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2016年9月3日 00:00:00 UTC"]}," までのレコードを取得します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2回目のイテレーション: データコネクタは次に利用可能な2日間の期間のレコードを取得します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2016年9月3日 00:00:00 UTC"]}," から ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2016年9月5日 00:00:00 UTC"]}," まで。このプロセスは、以降の各イテレーションで繰り返されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["増分に現在の日付が含まれる場合、各完全な期間が利用可能になると、追加のレコードが取得されます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: false"]}," が設定されている場合、データコネクタは指定されたターゲットのすべてのレコードをロードします。これは1回限りのアクティビティです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"email-events-の場合","__idx":9},"children":["Email Events の場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data は、イベント日付に基づく ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Email Events"]}," の増分ロードをサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: true"]}," が設定されている場合"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1回目の実行: コネクタは指定された開始時刻（設定されていない場合は全期間）から指定された終了時刻（設定されていない場合はジョブが実行予定の時刻）までのデータを読み込みます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2回目の実行: コネクタは前回の終了時刻からジョブが予定されている時刻までのデータを読み込みます"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: false"]}," が設定されている場合、データコネクタは指定されたターゲットのすべてのレコードを読み込みます。これは1回限りの処理です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"各ターゲットのサンプル設定","__idx":10},"children":["各ターゲットのサンプル設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Campaign"]}," ターゲットの場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n type: salesforce_marketing_cloud\n client_id: XXXXXX\n client_secret: XXXXXX\n target: campaign\nout:\n ...\n"},"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":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"デフォルト値"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"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":["salesforce_marketing_cloud である必要があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client Secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["campaign である必要があります（この場合）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Contact"]}," ターゲットの場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n type: salesforce_marketing_cloud\n client_id: XXXXXX\n client_secret: XXXXXX\n target: contact\n contact_page_size: 50\n contact_attributes_request_limit: 100\n contact_multiple_requests: true\n ignore_attribute_set_names:\n - attribute_1\n - attribute_2\nout:\n ...\n"},"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":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"デフォルト値"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"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":["salesforce_marketing_cloud である必要があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client Secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["contact である必要があります（この場合）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["contact_page_size"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターゲット ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contact"]}," のページあたりのレコード数。このオプションは大量のデータがある場合に役立ちます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1000"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["contact_attributes_request_limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1回のリクエストで各コンタクトに対して取得する属性の数。属性の数がこの値より大きい場合、複数のリクエストに分割されます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["100"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["contact_multiple_requests"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プラグインが非常に多くの属性を持つコンタクト詳細を複数のリクエストで取得できるようにします（これは属性の数が100を超える場合にのみ影響します）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ignore_attribute_set_names"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["無視される属性のリスト。不要な属性を除外したい場合に役立ちます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Data Extension"]}," ターゲットの場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: salesforce_marketing_cloud_v2\n  client_id: client_id\n  client_secret: client_secret\n  auth_type: v2\n  auth_uri: auth_uri\n  account_id: account_id\n\n  target: data_extension\n  data_extension_names:\n  - data_extension_1\n  - data_extension_2\n  incremental: true\n  shared_data_extension: true\n  incremental_column_name: date\n  from_date: \"2016-09-01T00:00:00.000Z\"\n  fetch_days: 1\n\n\nout:\n  type: td\n  apikey: td_api_key\n  endpoint: td_endpoint\n  database: database\n  table: table\n  time_column: time\n  mode: replace\n  default_timestamp_format: '%d/%m/%Y'\n"},"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":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"デフォルト値"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"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":["salesforce_marketing_cloud である必要があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client Secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data_extension である必要があります（この場合）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data_extension_names"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込みたいデータエクステンション名のリスト。すべてを取り込む場合は null のままにします"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["shared_data_extension"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["共有データエクステンションからデータを取り込む場合は、このフラグを true に設定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュール間で新しいデータのみを取得したい場合は、このフラグを true に設定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental_column_name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["増分読み込みに使用される列。incremental = true を設定する場合は必須です"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["from_date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この日付からデータを取り込む場合に設定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fetch_days"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込み期間は from_date から from_date + fetch_days までです"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Email Event"]}," ターゲットの場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n type: salesforce_marketing_cloud\n client_id: XXXXXX\n client_secret: XXXXXX\n target: email_event\n search_term: \"email name\"\n search_mode: \"exact\"\n email_event_types:\n - value : all\n start_time: \"2019-03-26T07:20:00.000Z\"\n end_time: \"2019-03-26T07:53:00.000Z\"\n incremental: true\nout:\n ...\n"},"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":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"デフォルト値"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"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":["salesforce_marketing_cloud である必要があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce Marketing Cloud の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Client Secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email_event である必要があります（この場合）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["search_term"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込みたいメールの名前"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["search_mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["名前のマッチングパターンのモード。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["exact"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["partial"]}," のみ指定可能です"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["exact"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email_event_types"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートしたいイベントタイプのリスト。有効なオプションは以下のとおりです：   - value : all - value : bounce - value : click - value : forward - value : forwardOptIn - value : open - value : sent - value : survey - value : unsub"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["start_time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この時刻からデータを取り込む場合に設定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["end_time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この時刻までデータを取り込む場合に設定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュール間で新しいデータのみを取得したい場合は、このフラグを true に設定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]}]}]}]}]}]},"headings":[{"value":"Salesforce Marketing Cloud Import Integration CLI","id":"salesforce-marketing-cloud-import-integration-cli","depth":1},{"value":"'td' コマンド v0.11.9 以降をインストール","id":"td-コマンド-v0119-以降をインストール","depth":2},{"value":"設定ファイルの作成","id":"設定ファイルの作成","depth":2},{"value":"インポートするデータのプレビュー(オプション)","id":"インポートするデータのプレビューオプション","depth":2},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":2},{"value":"スケジュール実行","id":"スケジュール実行","depth":2},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":2},{"value":"増分ロード","id":"増分ロード","depth":2},{"value":"Data Extensions の場合","id":"data-extensions-の場合","depth":3},{"value":"Email Events の場合","id":"email-events-の場合","depth":2},{"value":"各ターゲットのサンプル設定","id":"各ターゲットのサンプル設定","depth":2}],"frontmatter":{"seo":{"title":"Salesforce Marketing Cloud Import Integration CLI","description":"Salesforce Marketing Cloud からデータをインポートするための Treasure AI CLI コマンドの設定と使用方法を解説する技術ドキュメントページです。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/salesforce-marketing-cloud-import-integration-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}