{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"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":"td-command-v0119以降のインストール","__idx":1},"children":["'td' Command v0.11.9以降のインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の",{"$$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":"seedコンフィグファイルの作成-seedyml","__idx":2},"children":["Seedコンフィグファイルの作成 (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":"フィールドの推測-loadymlの生成","__idx":3},"children":["フィールドの推測 (load.ymlの生成)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:guess"]},"を使用してください。このコマンドは、ソースファイルを自動的に読み取り、ファイル形式を評価（推測ロジックを使用）します。"]},{"$$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":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["load.yml"]},"を開くと、推測されたファイル形式の定義が表示されます。この例では、CSVファイルをロードしようとしています。"]},{"$$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":["次に、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["preview"]},"コマンドを使用して、システムがファイルをどのように解析するかをプレビューできます。"]},{"$$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":"ロードジョブの実行","__idx":4},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します"]},{"$$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":["connector:issueコマンドは、すでに",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["と"]},"table(td_sample_table)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["を作成していることを前提としています。TreasureData内にデータベースまたはテーブルが存在しない場合、connector:issueコマンドは失敗するため、データベースとテーブルを",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["手動"]},"で作成するか、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:issue"]},"コマンドで"]},"--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 created_at --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"スケジュール実行","__idx":5},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["増分SFTPファイルインポートのために、定期的なData Connectorの実行をスケジュールできます。高可用性を確保するために、スケジューラーを管理しています。この機能を使用することで、ローカルデータセンターに",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]},"デーモンを用意する必要がなくなります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジュールの作成","__idx":6},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいスケジュールは",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:create"]},"コマンドを使用して作成できます。以下が必要です：スケジュール名、cron形式のスケジュール、データが保存されるデータベースとテーブル、およびData Connector設定ファイル。"]},{"$$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":[{"$$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"]},"）も受け付けます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールは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":"p","attributes":{},"children":[{"$$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":"設定の表示","__idx":8},"children":["設定の表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:show"]},"は、スケジュールエントリの実行設定を表示します。"]},{"$$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":"スケジュールの削除","__idx":9},"children":["スケジュールの削除"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:delete"]},"は、スケジュールを削除します。"]}]},"headings":[{"value":"Google Audience Partner API Status Via SFTP Import CLI","id":"google-audience-partner-api-status-via-sftp-import-cli","depth":1},{"value":"'td' Command v0.11.9以降のインストール","id":"td-command-v0119以降のインストール","depth":3},{"value":"Seedコンフィグファイルの作成 (seed.yml)","id":"seedコンフィグファイルの作成-seedyml","depth":3},{"value":"フィールドの推測 (load.ymlの生成)","id":"フィールドの推測-loadymlの生成","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":1},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":2},{"value":"スケジュールの一覧表示","id":"スケジュールの一覧表示","depth":2},{"value":"設定の表示","id":"設定の表示","depth":2},{"value":"スケジュールの削除","id":"スケジュールの削除","depth":2}],"frontmatter":{"seo":{"title":"Google Audience Partner API Status Via SFTP Import CLI"}},"lastModified":"2025-11-12T07:49:46.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-audience-partner-api-status-via-sftp-import-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}