{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Facebook Lead Ads Import Integration CLI","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"facebook-lead-ads-import-integration-cli","__idx":0},"children":["Facebook Lead Ads Import Integration CLI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can connect Facebook Lead Ads Connector with your Facebook Page or Ad Account to import Leads data into Treasure Data."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Basic knowledge of Treasure Data, including the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Facebook Page/Ad account with Leads retrieval permission"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Authorized Treasure account access"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"use-command-line-to-create-a-connection","__idx":2},"children":["Use Command Line to Create a Connection"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"install-td-command","__idx":3},"children":["Install ‘td’ Command"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install the newest ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-seed-config-file-seedyml","__idx":4},"children":["Create Seed Config File (seed.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["enable_guess_schema enabled:"]},{"$$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 disabled:"]},{"$$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":["Configuration keys and descriptions are as follows:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Config key"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Connector type \"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 long-lived Access token, see instruction ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-ads-insights-import-integration#obtain-facebook-token"},"children":["here"]}]}]},{"$$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 Ad Account 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":["Leads data can be imported by Ad Id or Form ID. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration#ad-id"},"children":["Appendix"]},"for details how to get Ad ID and Form ID"]}]},{"$$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":["Import Leads data submitted since this time until the current time. The field accepts ISO 8601 date-time format. E.g. 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":["Only import new data each time. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration"},"children":["How Incremental works"]}]}]},{"$$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":["Required when enable_guess_schema=false Facebook Lead Form fields name and its data type"]}]},{"$$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":["Form field name. See Appendix for ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration#form-id"},"children":["How to find Lead’s Form Fields"]}]}]},{"$$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":["Field data type"]}]},{"$$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":["Timestamp format. E.g. %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":["Skip invalid Leads data and continue to import others. If unselected, job will fail if invalid data is encountered"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more details on available ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["out"]}," modes, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration-cli#create-seed-config-file-seedyml"},"children":["Appendix"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"guess-fields-generate-loadyml","__idx":5},"children":["Guess Fields (Generate load.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connector:guess"]},". This command automatically reads the target data, and intelligently guesses the data format."]},{"$$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":["If you open the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]}," file,  you see guessed file format definitions including column names, data type and format."]},{"$$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":["Then you can preview the data by using ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["preview"]}," command."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the system detects your column type unexpectedly, modify the  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]}," directly and preview again."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The data connector supports parsing of \"boolean\", \"long\", \"double\", \"string\", and \"timestamp\" types."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"execute-load-job","__idx":6},"children":["Execute Load Job"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Submit the load job. It may take a couple of hours depending on the data size. Users need to specify the database and table where their data is stored."]},{"$$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":["The preceding command assumes that you have already created ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)"]}," and ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["table(td_sample_table)"]},". If the database or the table do not exist in TD this command will not succeed, so create the database and table ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["manually"]}," or use"]},{"$$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":["option with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:issue"]}," command to automatically create the database and table:"]},{"$$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":["You can assign Time Format column to the \"Partitioning Key\" by \"--time-column\" option."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"scheduled-execution","__idx":7},"children":["Scheduled Execution"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can schedule periodic data connector execution for periodic Leads import. We carefully configure our scheduler to ensure high availability. By using this feature, you no longer need a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," daemon on your local data center."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"create-the-schedule","__idx":8},"children":["Create the Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A new schedule can be created by using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:create"]}," command. The name of the schedule, cron-style schedule, the database and table where their data is stored, and the data connector configuration file are required."]},{"$$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":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," parameter also accepts three special options: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"incremental-scheduling","__idx":9},"children":["Incremental Scheduling"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can load records incrementally by setting true for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental"]}," option."]},{"$$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":["If you’re using ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/facebook-lead-ads-import-integration"},"children":["scheduled execution"]},", the connector automatically saves the last import time ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time_created"]}," value and holds it internally. Then it is used at the next scheduled execution."]},{"$$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":"list-the-schedules","__idx":10},"children":["List the Schedules"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can see the list of scheduled entries by ",{"$$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":"faq-for-import-from-facebook-lead-ads","__idx":11},"children":["FAQ for Import from Facebook Lead Ads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What Facebook App scopes or permissions are required for this Connector?"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Following permissions are required:"]},{"$$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 (if you want to import by Form ID)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ads_management (if you want to import by Ad ID)"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"how-incremental-loading-works","__idx":12},"children":["How Incremental Loading Works"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: true"]}," is set, this connector loads all records created since the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]},", if the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," is set, or import all available data until the current time if ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]},"is not set. The next job execution will only import records created since the last job execution. This mode is useful when you want to fetch just the Leads created since the previously scheduled run."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example the first job execution you specified the config as:"]},{"$$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":["When bulk data loading finishes successfully, it outputs ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]},": parameter. E.g. '2020-02-02T15:46:25+0000' as config-diff so that next execution uses it."," ","At the next execution, when ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]},": is also set, this plugin uses the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," from config-diff and ignores the original value and the new job config runs as"]},{"$$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":["That way, each time the job runs, it only imports new records."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Ad Account level Leads import (by setting the ad_account_id), a list of Lead Ad IDs and its latest ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time_created"]}," are stored as config-diff for the next job execution, e.g."]},{"$$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 Import Integration CLI","id":"facebook-lead-ads-import-integration-cli","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Use Command Line to Create a Connection","id":"use-command-line-to-create-a-connection","depth":2},{"value":"Install ‘td’ Command","id":"install-td-command","depth":3},{"value":"Create Seed Config File (seed.yml)","id":"create-seed-config-file-seedyml","depth":3},{"value":"Guess Fields (Generate load.yml)","id":"guess-fields-generate-loadyml","depth":3},{"value":"Execute Load Job","id":"execute-load-job","depth":3},{"value":"Scheduled Execution","id":"scheduled-execution","depth":3},{"value":"Create the Schedule","id":"create-the-schedule","depth":4},{"value":"Incremental Scheduling","id":"incremental-scheduling","depth":3},{"value":"List the Schedules","id":"list-the-schedules","depth":3},{"value":"FAQ for Import from Facebook Lead Ads","id":"faq-for-import-from-facebook-lead-ads","depth":2},{"value":"How Incremental Loading Works","id":"how-incremental-loading-works","depth":3}],"frontmatter":{"seo":{"title":"Facebook Lead Ads Import Integration CLI"}},"lastModified":"2026-06-01T09:09:59.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/facebook-lead-ads-import-integration-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}