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

更新某個地點的推出資訊。