Google Business Performance API に備わった新しい API メソッドでは、1 つの API リクエストで複数の DailyMetrics をフェッチできます。 サポート終了スケジュールと v4 reportInsights API メソッドから Google Business Profile Performance API へ移行する手順をご確認ください。
GoogleLocations API を使用すると、ビジネス プロフィールでビジネスが申請されているかどうかを事前に確認できます。ビジネスが申請されている場合は、そのビジネスへのアクセス権をすぐにリクエストできます。また、一括確認を行うアカウントを管理している場合は、事前に一致候補を的確に選び、ビジネス情報が重複する事態を回避できます。
API エンドポイントが返す URL で、ビジネスがすでに申請されているかどうかが示されます。すでに申請されている場合は、同じ URL を使ってアクセス権のリクエスト プロセスを開始できます。
次の図は、ビジネスのオーナー権限を取得するためのプロセスを示しています。
図 1. ビジネスのオーナー権限取得プロセスを表すスイムレーン図
GoogleLocations API を使用する手順は次のとおりです。
販売者のビジネス情報を収集します。
googleLocations.search エンドポイントを呼び出します。この呼び出しの本文にビジネス情報を含めます。またはクエリ文字列(Google 検索や Google マップでユーザーが入力するような文字列)を含めることもできます(「新宿のスターバックス」など)。
API から、一致候補となるビジネスと各ビジネスの情報(locationName、address など)のリストが返されます。
[null,null,["最終更新日 2024-12-09 UTC。"],[[["The GoogleLocations API helps determine if a Business Profile location has been claimed, allowing for access requests or creation of new listings."],["Use the API to search for existing locations, initiate access requests if claimed, or create new listings if unclaimed."],["If a new listing is created, leverage verification APIs to complete the setup process."],["This API is intended for managing locations with existing business relationships and should not be used for lead generation or competitive analysis."]]],["The GoogleLocations API determines if a location is claimed in Business Profile. Using the `googleLocations.search` endpoint, provide location data to find matching locations. If a match exists, check `requestAdminRightsUrl`; if present, initiate an access request via the provided URL. If not, or if no match is found, create a new location with `accounts.locations.create`. New listings require verification through the verification APIs. This API is for merchants with business relationships, not lead generation.\n"]]