{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Google Business Profile Import Integration Using The 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-business-profile-import-integration-using-the-cli","__idx":0},"children":["Google Business Profile Import Integration Using The CLI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Business Profile(旧Google My Business)インポート統合を使用して、顧客情報をインポートできます。このコネクタを使用すると、評価やレビューを含む、すべてのロケーションの統計情報を統合できます。Google Business Profileベータ版への参加に興味がある場合は、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":["Google Business Profileアカウント(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.google.com/business/"},"children":["www.google.com/business"]},")。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/my-business/content/prereqs"},"children":["Google Business Profile前提条件"]},"の前提条件リストを完了していること。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]},"を含むTreasure Dataの基本知識。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tdコマンドのインストール","__idx":2},"children":["'td'コマンドのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/td-toolbelt"},"children":["Treasure Data Toolbelt"]},"をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"設定ファイルloadymlの作成","__idx":3},"children":["設定ファイル(load.yml)の作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"アカウントの場合","__idx":4},"children":["アカウントの場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n    type: google_business_profile\n    client_id: my-client-id\n    client_secret: secret\n    refresh_token: token\n    data_type: accounts\n\nfilters:\n    type: add_time\n  - from_value: {mode: upload_time}\n    to_column: {name: time}\n\nout: {mode: append}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロケーションの場合","__idx":5},"children":["ロケーションの場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n    type: google_business_profile\n    client_id: my-client-id\n    client_secret: secret\n    refresh_token: token\n    data_type: locations\n\nfilters:\n    type: add_time\n  - from_value: {mode: upload_time}\n    to_column: {name: time}\n\nout: {mode: append}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロケーションレビューの場合","__idx":6},"children":["ロケーションレビューの場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n    type: google_business_profile\n    client_id: my-client-id\n    client_secret: secret\n    refresh_token: token\n    data_type: location_reviews\n\nfilters:\n    type: add_time\n  - from_value: {mode: upload_time}\n    to_column: {name: time}\n\nout: {mode: append}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロケーション日次メトリクス時系列の場合","__idx":7},"children":["ロケーション日次メトリクス時系列の場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n    type: google_business_profile\n    client_id: my-client-id\n    client_secret: secret\n    refresh_token: token\n    data_type: location_daily_metrics_time_series\n    daily_metric: BUSINESS_IMPRESSIONS_DESKTOP_MAPS\n    start_time: \"2014-10-02\"\n    end_time: \"2014-10-03\"\n    incremental: true\n\nfilters:\n    type: add_time\n  - from_value: {mode: upload_time}\n    to_column: {name: time}\n\nout: {mode: append}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロケーション月次検索キーワードインプレッションの場合","__idx":8},"children":["ロケーション月次検索キーワードインプレッションの場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n    type: google_business_profile\n    client_id: my-client-id\n    client_secret: secret\n    refresh_token: token\n    data_type: location_monthly_search_keywords_impressions\n    start_time: \"2014-10-02\"\n    end_time: \"2014-10-03\"\n\nfilters:\n    type: add_time\n  - from_value: {mode: upload_time}\n    to_column: {name: time}\n\nout: {mode: replace}\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":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth client_id。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth client_secret。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["refresh_token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth refresh_tokenはaccess_tokenを交換するために使用されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートするデータのタイプ: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["location_reviews"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accounts"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["locations"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["location_daily_metrics_time_series"]},"、または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["location_monthly_search_keywords_impressions"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["daily_metric"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値は(location_daily_metrics_time_seriesデータタイプにのみ必要):  BUSINESS_IMPRESSIONS_DESKTOP_MAPS,   BUSINESS_IMPRESSIONS_DESKTOP_SEARCH,   BUSINESS_IMPRESSIONS_MOBILE_MAPS,   BUSINESS_IMPRESSIONS_MOBILE_SEARCH,   BUSINESS_CONVERSATIONS,   BUSINESS_DIRECTION_REQUESTS,   CALL_CLICKS,   WEBSITE_CLICKS,   BUSINESS_BOOKINGS,   BUSINESS_FOOD_ORDERS"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["start_time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ロケーション日次メトリクス時系列"]},": レポート時間範囲の開始時刻(YYYY-MM-DD形式、例: 2022-10-10、範囲は包含的)。 - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ロケーション月次検索キーワードインプレッション"]},": レポート時間範囲の開始時刻(YYYY-MM形式、例: 2022-10-10、範囲は包含的)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["end_time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ロケーション日次メトリクス時系列"]},": レポート時間範囲の終了時刻(YYYY-MM-DD形式、例: 2022-10-10、範囲は包含的)。 - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ロケーション月次検索キーワードインプレッション"]},": レポート時間範囲の終了時刻(YYYY-MM形式、例: 2022-10-10、範囲は包含的)"]}]},{"$$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":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各API呼び出しの最大リトライ回数。デフォルト: 7"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["initial_retry_wait"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最初のリトライまでの待機時間。デフォルト: 5秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["max_retry_wait"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リトライ間の最大待機時間。デフォルト: 300秒"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ロードジョブの実行","__idx":9},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データサイズによっては数時間かかる場合があります。ユーザーはデータが保存されるdatabaseとtableを指定する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml \\\n--database td_sample_db \\\n--table td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上記のコマンドは、*database(td_sample_db)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["と"]},"table(td_sample_table)*がすでに作成されていることを前提としています。TDにdatabaseまたはtableが存在しない場合、このコマンドは成功しないため、databaseとtableを",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["手動で"]},"作成するか、~~",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--auto-create-table"]},{"$$mdtype":"Tag","name":"s","attributes":{},"children":["オプションを"]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:issue"]},"~~コマンドと共に使用して、次のようにdatabaseと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":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"s","attributes":{},"children":["--time-column"]},"オプションを使用して、Time Format列を「Partitioning Key」に割り当てることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"スケジュール実行","__idx":10},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的なデータインポートのために、定期的なデータコネクタ実行をスケジュールできます。高可用性を確保するために、スケジューラを注意深く設定しています。この機能を使用することで、ローカルデータセンターに",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},"デーモンを配置する必要がなくなります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジュールの作成","__idx":11},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:create"]},"コマンドを使用して新しいスケジュールを作成できます。スケジュールの名前、cron形式のスケジュール、データが保存されるdatabaseとtable、およびデータコネクタ設定ファイルが必要です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create \\\ndaily_report_import \\\n\"10 0 * * *\" \\\ntd_sample_db \\\ntd_sample_table \\\nload.yml\n","lang":"bash"},"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":2,"id":"スケジュールのリスト表示","__idx":12},"children":["スケジュールのリスト表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:list"]},"でスケジュールエントリのリストを確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジュールの設定と履歴の表示","__idx":13},"children":["スケジュールの設定と履歴の表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:show"]},"は、スケジュールエントリの実行設定を表示します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:show daily_report_import\nName     :daily_report_import\nCron     : 10 0 * * *\nTimezone : UTC\nDelay    : 0\nDatabase : td_sample_db\nTable    : td_sample_table\nConfig\n---\n// 表示されるload.yml設定。\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["~~",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:history"]},{"$$mdtype":"Tag","name":"s","attributes":{},"children":["は、スケジュールエントリの実行履歴を表示します。個々の実行結果を調査するには、"]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td job jobid"]},"~~を使用します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スケジュールの削除","__idx":14},"children":["スケジュールの削除"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:delete"]},"は、スケジュールを削除します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:delete daily_report_import\n"},"children":[]}]},"headings":[{"value":"Google Business Profile Import Integration Using The CLI","id":"google-business-profile-import-integration-using-the-cli","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"'td'コマンドのインストール","id":"tdコマンドのインストール","depth":2},{"value":"設定ファイル(load.yml)の作成","id":"設定ファイルloadymlの作成","depth":2},{"value":"アカウントの場合:","id":"アカウントの場合","depth":3},{"value":"ロケーションの場合:","id":"ロケーションの場合","depth":3},{"value":"ロケーションレビューの場合:","id":"ロケーションレビューの場合","depth":3},{"value":"ロケーション日次メトリクス時系列の場合:","id":"ロケーション日次メトリクス時系列の場合","depth":3},{"value":"ロケーション月次検索キーワードインプレッションの場合:","id":"ロケーション月次検索キーワードインプレッションの場合","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":2},{"value":"スケジュール実行","id":"スケジュール実行","depth":1},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":2},{"value":"スケジュールのリスト表示","id":"スケジュールのリスト表示","depth":2},{"value":"スケジュールの設定と履歴の表示","id":"スケジュールの設定と履歴の表示","depth":2},{"value":"スケジュールの削除","id":"スケジュールの削除","depth":2}],"frontmatter":{"seo":{"title":"Google Business Profile Import Integration Using The CLI"}},"lastModified":"2026-01-27T10:05:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-business-profile-import-integration-using-the-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}