Method: accounts.locations.associate
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ビジネスをプレイス ID に関連付けます。以前の関連付けは上書きされます。この操作は、ビジネスのオーナー確認が済んでいない場合にのみ有効です。関連付けは有効である、つまり locations.findMatches
のリストに含まれている必要があります。
HTTP リクエスト
POST https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:associate
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
関連付けるビジネスのリソース名。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"placeId": string
} |
フィールド |
placeId |
string
確立する関連付け。設定しない場合は、一致がないことを示します。
|
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThis operation associates a location to a place ID, overwriting any previous association, but is only valid for unverified locations and must be a valid match.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a POST method and gRPC Transcoding syntax, requiring the location's resource name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body uses JSON to specify the desired place ID for association or indicates no match if not set.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful association, the response body is empty, signaling completion.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires specific OAuth scopes, either \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]