REST Resource: googleLocations
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:GoogleLocation
表示 Google 上显示的 Location
。此营业地点可以是用户或其他人已声明所有权的营业地点,也可以是未声明所有权的营业地点。
JSON 表示法 |
{
"name": string,
"location": {
object (Location )
},
"requestAdminRightsUrl": string
} |
字段 |
name |
string
此 GoogleLocation 的资源名称,格式为 googleLocations/{googleLocationId} 。
|
location |
object (Location )
稀疏填充的 Location 信息。如果用户当前未声明对此字段的所有权,则可以在 locations.create 中重复使用此字段。
|
requestAdminRightsUrl |
string
会将用户重定向到请求管理员权限界面的网址。仅当任何用户(包括当前用户)已声明对营业地点的所有权时,此字段才会显示。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eGoogleLocation represents a Location on Google, which can have different ownership statuses (claimed by the user, someone else, or unclaimed).\u003c/p\u003e\n"],["\u003cp\u003eIt includes essential information like name, location details, and a URL for requesting admin rights if the location is already claimed.\u003c/p\u003e\n"],["\u003cp\u003eGoogleLocation resource allows for actions like reporting a location and searching for matching locations based on criteria.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elocation\u003c/code\u003e field within GoogleLocation can be reused for creating new locations if it's currently unclaimed.\u003c/p\u003e\n"]]],[],null,["# REST Resource: googleLocations\n\n- [Resource: GoogleLocation](#GoogleLocation)\n - [JSON representation](#GoogleLocation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: GoogleLocation\n------------------------\n\nRepresents a [Location](/my-business/reference/rest/v4/accounts.locations#Location) that is present on Google. This can be a location that has been claimed by the user, someone else, or could be unclaimed.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"location\": { object (/my-business/reference/rest/v4/accounts.locations#Location) }, \"requestAdminRightsUrl\": string } ``` |\n\n| Fields ||\n|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name of this GoogleLocation, in the format `googleLocations/{googleLocationId}`. |\n| `location` | `object (`[Location](/my-business/reference/rest/v4/accounts.locations#Location)`)` The sparsely populated [Location](/my-business/reference/rest/v4/accounts.locations#Location) information. This field can be re-used in [locations.create](/my-business/reference/rest/v4/accounts.locations/create#google.mybusiness.v4.Locations.CreateLocation) if it is not currently claimed by a user. |\n| `requestAdminRightsUrl` | `string` A URL that will redirect the user to the request admin rights UI. This field is only present if the location has already been claimed by any user, including the current user. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| ### [report](/my-business/reference/rest/v4/googleLocations/report) | Report a [GoogleLocation](/my-business/reference/rest/v4/googleLocations#GoogleLocation). |\n| ### [search](/my-business/reference/rest/v4/googleLocations/search) | Search all of the possible locations that are a match to the specified request. |"]]