{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Facebook Lead Ads インポート統合 CLI","description":"Facebook Lead Ads Connectorで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":"facebook-lead-ads-インポート統合-cli","__idx":0},"children":["Facebook Lead Ads インポート統合 CLI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Facebook Lead Ads Connector を Facebook ページまたは広告アカウントに接続して、リードデータを Treasure Data にインポートできます。"]},{"$$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":["リード取得権限を持つ Facebook ページ/広告アカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証された Treasure アカウントアクセス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインを使用して接続を作成する","__idx":2},"children":["コマンドラインを使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-コマンドのインストール","__idx":3},"children":["'td' コマンドのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]}," をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"シード設定ファイル-seedyml-の作成","__idx":4},"children":["シード設定ファイル (seed.yml) の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["enable_guess_schema 有効:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: facebook_leads\n  app_secret: app_secret\n  access_token: long-lived-access_token\n  id: 33056800448180\n  time_created: '2020-01-28T15:46:25+0000'\n  incremental: false\n  enable_guess_schema: true\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["enable_guess_schema 無効:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: facebook_leads\n  app_secret: app_secret\n  access_token: long-lived-access_token\n  id: 33056800448180\n  time_created: '2020-01-28T15:46:25+0000'\n  incremental: false\n  enable_guess_schema: false\n  form_fields:\n\t- {name: ocupation, type: string}\n\t- {name: last_name, type: string}\n\t- {name: cell_Phone, type: string}\n\t- {name: email, type: string}\n\t- {name: name, type: string}\n\t- {name: opt_in_marketing, type: boolean}\n\nout:\n  mode: append\n","lang":"yaml"},"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":["設定キー"]}]},{"$$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":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタータイプ \"facebook_leads\""]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","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 App Secret"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["access_token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook の長期有効アクセストークン。手順は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/facebook-ads-insights-import-integration#h2__2004725160"},"children":["こちら"]},"を参照"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ad_account_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook 広告アカウント ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リードデータは広告 ID またはフォーム ID でインポートできます。広告 ID とフォーム ID の取得方法の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/facebook-lead-ads-import-integration-cli#h1__1835053169"},"children":["付録"]},"を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["time_created"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この時刻から現在時刻までに送信されたリードデータをインポートします。このフィールドは ISO 8601 日時形式を受け付けます。例: 2020-01-01T00:00:00+0700"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎回新しいデータのみをインポートします。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration"},"children":["インクリメンタルの仕組み"]},"を参照"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["form_fields"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["enable_guess_schema=false の場合に必須。Facebook リードフォームのフィールド名とそのデータタイプ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フォームフィールド名。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://tddocs.atlassian.net/wiki/spaces/CW/pages/826835011/Facebook+Lead+Ads+Import+Integration#How-to-get-the-Lead-Form%E2%80%99s-Field-Name"},"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":["フィールドのデータタイプ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タイムスタンプ形式。例: %Y-%m-%dT%H:%M:%S%z"]}]},{"$$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":["無効なリードデータをスキップして、他のデータのインポートを続行します。選択しない場合、無効なデータが検出されるとジョブが失敗します"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["利用可能な ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["out"]}," モードの詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/facebook-lead-ads-import-integration-cli#h1__1835053169"},"children":["付録"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"フィールドの推測-loadyml-の生成","__idx":5},"children":["フィールドの推測 (load.yml の生成)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connector:guess"]}," を使用します。このコマンドは、ターゲットデータを自動的に読み取り、データ形式をインテリジェントに推測します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]}," ファイルを開くと、列名、データタイプ、形式を含む推測されたファイル形式定義が表示されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"---\nin:\n  type: facebook_leads\n  app_secret: app_secret\n  access_token: long-lived-access_token\n  id: 514618966066498\n  time_created: '2019-12-01T15:46:25+0000'\n  incremental: false\n  columns:\n  - {name: id, type: long}\n  - {name: created_time, type: timestamp, format: \"%Y-%m-%dT%H:%M:%S%z\"}\n  - {name: ad_id, type: string}\n  - {name: ad_name, type: string}\n  - {name: adset_id, type: string}\n  - {name: adset_name, type: string}\n  - {name: campaign_id, type: string}\n  - {name: campaign_name, type: string}\n  - {name: form_id, type: long}\n  - {name: platform, type: string}\n  - {name: is_organic, type: boolean}\n  - {name: name, type: string}\n  - {name: surname, type: string}\n  - {name: email, type: string}\nout: {mode: append}\nexec: {}\nfilters:\n- from_value: {mode: upload_time}\n  to_column: {name: time}\n  type: add_time\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["その後、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["preview"]}," コマンドを使用してデータをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システムが列タイプを予期せず検出した場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]}," を直接変更して再度プレビューしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタは、\"boolean\"、\"long\"、\"double\"、\"string\"、\"timestamp\" タイプの解析をサポートしています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":6},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データサイズに応じて数時間かかる場合があります。ユーザーは、データが保存されるデータベースとテーブルを指定する必要があります。"]},{"$$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\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":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-auto-create-table"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:issue"]}," コマンドでこのオプションを使用すると、データベースとテーブルが自動的に作成されます:"]},{"$$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 created_at --auto-create-table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["\"--time-column\" オプションで、時刻形式列を「パーティショニングキー」に割り当てることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":7},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的なリードインポートのために、定期的なデータコネクタの実行をスケジュールできます。高可用性を確保するためにスケジューラーを慎重に設定しています。この機能を使用することで、ローカルデータセンターで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," デーモンを実行する必要がなくなります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュールの作成","__idx":8},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:create"]}," コマンドを使用して新しいスケジュールを作成できます。スケジュール名、cron 形式のスケジュール、データが保存されるデータベースとテーブル、およびデータコネクタ設定ファイルが必要です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_leads_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"]}," パラメータは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]}," の 3 つの特殊オプションも受け付けます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インクリメンタルスケジューリング","__idx":9},"children":["インクリメンタルスケジューリング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental"]}," オプションを true に設定することで、レコードを増分的にロードできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n type: facebook_leads\n app_secret: app_secret\n access_token: long-lived-access_token\n id: 33056800448180\n time_created: '2020-01-28T15:46:25+0000'\n incremental: true\nout:\n mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration"},"children":["スケジュール実行"]},"を使用している場合、コネクタは最後のインポート時刻 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time_created"]}," 値を自動的に保存し、内部で保持します。その後、次のスケジュール実行時に使用されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: facebook_leads\n  ...\nout:\n  ...\n\nConfig Diff\n---\nin:\n  time_created: '2020-02-02T15:46:25Z'\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールの一覧表示","__idx":10},"children":["スケジュールの一覧表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:list"]}," でスケジュールされたエントリーのリストを確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:list\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"facebook-lead-ads-からのインポートに関する-faq","__idx":11},"children":["Facebook Lead Ads からのインポートに関する FAQ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["このコネクタにはどの Facebook アプリのスコープまたは権限が必要ですか？"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の権限が必要です:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["email"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["public_profile"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["leads_retrieval"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["pages_manage_ads、pages_manage_metadata、pages_read_engagement、pages_read_user_content (フォーム ID でインポートする場合)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ads_management (広告 ID でインポートする場合)"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インクリメンタルロードの仕組み","__idx":12},"children":["インクリメンタルロードの仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: true"]}," が設定されている場合、このコネクタは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," が設定されている場合は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," 以降に作成されたすべてのレコードをロードし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," が設定されていない場合は現在時刻まで利用可能なすべてのデータをインポートします。次のジョブ実行では、最後のジョブ実行以降に作成されたレコードのみがインポートされます。このモードは、前回のスケジュール実行以降に作成されたリードのみを取得したい場合に便利です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、最初のジョブ実行で次のように設定を指定したとします:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n ...\n time_created: '2020-01-28T15:46:25+0000'\n incremental: true\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バルクデータロードが正常に完了すると、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]},": パラメータが出力されます。例: '2020-02-02T15:46:25+0000' が config-diff として出力され、次回の実行で使用されます。"," ","次の実行時に、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]},": も設定されている場合、このプラグインは config-diff からの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," を使用し、元の値を無視します。新しいジョブ設定は次のように実行されます:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n ...\n time_created: '2020-02-02T15:46:25+0000'\n incremental: true\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このようにして、ジョブが実行されるたびに、新しいレコードのみがインポートされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["広告アカウントレベルのリードインポート (ad_account_id を設定することによる) の場合、リード広告 ID のリストとその最新の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," が、次のジョブ実行のために config-diff として保存されます。例:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  ...\n  incremental: true\n  list_time_created: {\n\t'23845900031': '2020-11-01T02:46:45Z',\n\t'23845899651': '2020-11-02T21:25:33Z',\n\t'23846121121': '2020-11-30T05:21:03Z',\n\t'23845899651': '2020-11-01T12:39:53Z',\n\t'23845900031': '2020-11-02T04:13:19Z',\n\t'23845899651': '2020-11-04T01:39:58Z'\n}\n"},"children":[]}]},"headings":[{"value":"Facebook Lead Ads インポート統合 CLI","id":"facebook-lead-ads-インポート統合-cli","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"コマンドラインを使用して接続を作成する","id":"コマンドラインを使用して接続を作成する","depth":2},{"value":"'td' コマンドのインストール","id":"td-コマンドのインストール","depth":3},{"value":"シード設定ファイル (seed.yml) の作成","id":"シード設定ファイル-seedyml-の作成","depth":3},{"value":"フィールドの推測 (load.yml の生成)","id":"フィールドの推測-loadyml-の生成","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":4},{"value":"インクリメンタルスケジューリング","id":"インクリメンタルスケジューリング","depth":3},{"value":"スケジュールの一覧表示","id":"スケジュールの一覧表示","depth":3},{"value":"Facebook Lead Ads からのインポートに関する FAQ","id":"facebook-lead-ads-からのインポートに関する-faq","depth":2},{"value":"インクリメンタルロードの仕組み","id":"インクリメンタルロードの仕組み","depth":3}],"frontmatter":{"seo":{"title":"Facebook Lead Ads インポート統合 CLI","description":"Facebook Lead Ads ConnectorでTreasure AIにリードデータをインポートする手順と、CLIを使用した接続設定方法を解説します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/facebook-lead-ads-import-integration-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}