REST Resource: brands.locations

資源:位置

品牌實體位置的相關資訊。

JSON 表示法
{
  "name": string,
  "placeId": string,
  "locationEntryPointConfigs": [
    {
      object (LocationEntryPointConfig)
    }
  ],
  "agent": string,
  "locationTestUrl": string,
  "testUrls": [
    {
      object (TestUrl)
    }
  ],
  "conversationalSettings": {
    string: {
      object (ConversationalSetting)
    },
    ...
  },
  "defaultLocale": string,
  "listingId": string
}
欄位
name

string

地點的專屬 ID。

唯讀。由平台定義。

placeId

string

必要欄位。地點的地點 ID,或 Google 地圖中使用的專屬 ID。

透過服務專員為使用者提供體驗後即無法修改。

locationEntryPointConfigs[]
(deprecated)

object (LocationEntryPointConfig)

位置的進入點設定清單。

透過服務專員為使用者提供體驗後即無法修改。

agent

string

必要欄位。與地點相關聯的服務專員名稱。如果品牌 ID 是「1234」,代理程式 ID 為「5678」,則這個欄位會解析為「brands/1234/agents/5678」。

locationTestUrl
(deprecated)

string

僅供輸出。用於測試地點對話體驗的網址。

由平台定義。

testUrls[]

object (TestUrl)

僅供輸出。用於測試商家地點對話體驗的網址。

由平台定義。

conversationalSettings

map (key: string, value: object (ConversationalSetting))

選用設定。與語言代碼對應的對話設定。語言代碼是以格式正確的 IETF BCP 47 語言代碼表示。

這個物件中包含 "key": value 組合的清單,例如:{ "name": "wrench", "mass": "1.3kg", "count": "3" }.

defaultLocale

string

必要欄位。位置的預設語言代碼。

listingId

string (int64 format)

僅供輸出。指明與這個地點相關聯的 Google 我的商家資訊。

LocationEntryPointConfig

位置的進入點設定。

JSON 表示法
{
  "allowedEntryPoint": enum (EntryPoint)
}
欄位
allowedEntryPoint

enum (EntryPoint)

必要欄位。該地點已啟用的 Google 介面。

EntryPoint

該地點已啟用的 Google 介面。

列舉
ENTRY_POINT_UNSPECIFIED 未指定的進入點。
PLACESHEET 當使用者透過 Google 搜尋商家所在地點時,系統會顯示這個介面。
MAPS_TACTILE 使用者在 Google 地圖上搜尋商家所在地點時顯示的介面。

方法

create

為品牌建立新的地點。

delete

刪除位置。

get

取得位置的相關資訊。

getLaunch

取得某個位置的啟動資訊。

getVerification

取得地點的驗證資訊。

list

列出品牌的所有地點。

patch

更新地點的相關資訊。

requestLaunch

開始某個位置的啟動程序。

requestVerification

開始驗證地點。

updateLaunch

更新某個地點的啟動資訊。