Business Information API
更新日志
v1
API 权限
Business Information API 将需要从 GCP Console 启用。OAuth 范围保持不变。
端点网址
可以通过 https://mybusinessbusinessinformation.googleapis.com/v1/
(而不是 https://mybusiness.googleapis.com/v4/
)访问用于搜索所有商家信息、属性、类别、连锁店和营业地点的端点
营业地点端点的路径名称已从 accounts/accountId/locations/locationId
更改为 locations/locationId
营业地点更新
locationName
已重命名为 title
。
websiteUrl
已重命名为 websiteUri
。
accounts.locations.list
和 locations.get
现在需要 readMask。
primaryPhone
和 additionalPhones
现在是 PhoneNumbers 的一部分。
primaryCategory
和 additionalCategories
现在是 Categories 的一部分。
address
已重命名为 storefrontAddress
。
accounts.locations.clearAssociation
已更新为 locations.clearLocationAssociation
。
serviceItems
现在可以直接从 Location 对象读取和更新。
属性
上门服务商家
CUSTOMER_LOCATION_ONLY
类型的商家不再需要填写地址。
- 在 ServiceAreaBusiness 中添加了
regionCode
。必须为 CUSTOMER_LOCATION_ONLY
类型的商家设置此值。
已弃用的端点和对象
- 移除了
LocationKey
对象。现有字段已移至元数据。
- 移除了
PriceLists
对象。该字段已被 FoodMenus 和 ServiceLists 取代。
- 移除了
LocationState
对象。大多数现有字段已移至元数据。虽然元数据包含一个布尔值,用于查看商家是否拥有对业务的完全控制权(商家发言权),但与暂停和验证相关的更详细的字段已移至 Verifications API。在获取商家发言权的后续步骤中使用方法 locations.getVoiceOfMerchantState。
- 端点
googleLocations.report
和 accounts.locations.findMatchingLocations
已弃用。
- 端点
TransferLocation
已移至 Account Management API 下的 locations.transfer
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-28。
[null,null,["最后更新时间 (UTC):2024-11-28。"],[[["The Business Information API now uses `https://mybusinessbusinessinformation.googleapis.com/v1/` as the base endpoint and requires enabling in the GCP Console."],["Location data structure has been updated, renaming or relocating fields like `locationName`, `websiteUrl`, `primaryPhone`, `primaryCategory`, and `address`."],["A new `Attributes` object and `getGoogleUpdated` endpoint have been introduced for managing business attributes, and `attributes.list` now includes a `show_all` parameter."],["Service area businesses (`CUSTOMER_LOCATION_ONLY`) no longer require an address but need a `regionCode`, while `LocationKey`, `PriceLists`, and `LocationState` objects are deprecated."],["Some endpoints have been moved or deprecated, including `googleLocations.report`, `accounts.locations.findMatchingLocations`, and `TransferLocation`."]]],["The Business Information API requires enabling in the GCP Console, with a new endpoint URL: `https://mybusinessbusinessinformation.googleapis.com/v1/`. Location endpoints' path changed to `locations/locationId`. Updates include renaming fields like `locationName` to `title` and incorporating `PhoneNumbers` and `Categories`. `Attributes` now includes a `getGoogleUpdated` endpoint, with `show_all` parameter. Service area businesses (type `CUSTOMER_LOCATION_ONLY`) now require `regionCode`. Deprecated objects include `LocationKey`, `PriceLists`, `LocationState`, and removed endpoints `googleLocations.report`, `accounts.locations.findMatchingLocations`, and `TransferLocation` moved.\n"]]