{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Google Audience Partner API Status Via SFTP Import 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":"google-audience-partner-api-status-via-sftp-import-cli","__idx":0},"children":["Google Audience Partner API Status Via SFTP Import CLI"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"install-td-command-v0119-or-later","__idx":1},"children":["Install ‘td’ Command v0.11.9 or Later"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install the most current ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td --version\n0.11.10\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-seed-config-file-seedyml","__idx":2},"children":["Create Seed Config File (seed.yml)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: sftp_ddp\n  file_names:\n  - dmp_20180926_123456789.dat\nout:\n  mode: append\n  exec: {}\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"guess-fields-generate-loadyml","__idx":3},"children":["Guess Fields (Generate load.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:guess"]},". This command automatically reads the source file and assesses (uses logic to guess) the file format."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:guess seed.yml -o load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you open ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["load.yml"]},", you’ll see the guessed file format definitions. This example is trying to load CSV files."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: sftp_ddp\n  file_names:\n  - dmp_20180926_10130066a050f4e68b46d5b052abaedb05dd2f.dat\nout:\n  mode: append\n  exec: {}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then, you can preview how the system will parse the file by using the ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["preview"]}," command."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n+------------+---------------------------------+\n| recordInfo | rawData                         |\n+------------+---------------------------------+\n|            | 1 lines were processed correctly|\n| 1111111111 | Line 1111111111 could not find  |\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"execute-load-job","__idx":4},"children":["Execute Load Job"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Submit the load job"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The connector:issue command assumes that you have already created a ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)"]}," and a ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["table(td_sample_table)"]},". If the database or the table do not exist in TD, the connector:issue command fails, 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":"em","attributes":{},"children":["--an auto-create-table"]}," option with ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:issue"]}," command to auto create the database and 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 created_at --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"scheduled-execution","__idx":5},"children":["Scheduled Execution"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can schedule periodic Data Connector execution for incremental SFTP DDP file import. We manage our scheduler to ensure high availability. By using this feature, you no longer need a ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," daemon on your local data center."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-the-schedule","__idx":6},"children":["Create the Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A new schedule can be created using the ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:create"]}," command. The following are required: the name of the schedule, the cron-style schedule, the database and table where the data will be stored, and the Data Connector configuration file."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_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":"p","attributes":{},"children":["By default, the schedule is set up in the UTC timezone. You can set the schedule in a timezone using the -t or --timezone option. Note that the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]}," option supports only extended timezone formats like 'Asia/Tokyo', 'America/Los_Angeles', etc. Timezone abbreviations like PST, CST are *not* supported and may lead to unexpected schedules."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"list-the-schedules","__idx":7},"children":["List the Schedules"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can see the list of currently scheduled entries by running the command ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:list"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:list\n+--------------+--------------+----------+-------+--------------+-----------------+------------------------------------------------+\n| Name         | Cron         | Timezone | Delay | Database     | Table           | Config                                         |\n+--------------+--------------+----------+-------+--------------+-----------------+------------------------------------------------+\n| daily_import | 10 0 * * *   | UTC      | 0     | td_sample_db | td_sample_table | {\"in\"=>{\"type\"=>\"sftp_ddp\", \"access_key_id\"....|\n+--------------+--------------+----------+-------+--------------+-----------------+------------------------------------------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"show-the-setting","__idx":8},"children":["Show the Setting"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:show"]}," shows the execution setting of a schedule entry."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"% td connector:show daily_import\nName     : daily_import\nCron     : 10 0 * * *\nTimezone : UTC\nDelay    : 0\nDatabase : td_sample_db\nTable    : td_sample_table\nConfig\n---\nin: \n  type: sftp_ddp\n  file_names:\n  - dmp_20180926_10130066a050f4e68b46d5b052abaedb05dd2f.dat\nout:\n  mode: append\n  exec: {}\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"delete-the-schedule","__idx":9},"children":["Delete the Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:delete"]}," removes the schedule."]}]},"headings":[{"value":"Google Audience Partner API Status Via SFTP Import CLI","id":"google-audience-partner-api-status-via-sftp-import-cli","depth":1},{"value":"Install ‘td’ Command v0.11.9 or Later","id":"install-td-command-v0119-or-later","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":1},{"value":"Create the Schedule","id":"create-the-schedule","depth":2},{"value":"List the Schedules","id":"list-the-schedules","depth":2},{"value":"Show the Setting","id":"show-the-setting","depth":2},{"value":"Delete the Schedule","id":"delete-the-schedule","depth":2}],"frontmatter":{"seo":{"title":"Google Audience Partner API Status Via SFTP Import CLI"}},"lastModified":"2025-10-28T09:07:17.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/google-audience-partner-api-status-via-sftp-import-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}