Settings

代表非地區專屬的 Actions 專案的設定。

YAML 表示法
projectId: string
defaultLocale: string
enabledRegions: 
  - string
disabledRegions: 
  - string
category: enum (Category)
usesTransactionsApi: boolean
usesDigitalPurchaseApi: boolean
usesInteractiveCanvas: boolean
usesHomeStorage: boolean
designedForFamily: boolean
containsAlcoholOrTobaccoContent: boolean
keepsMicOpen: boolean
surfaceRequirements: 
  object (SurfaceRequirements)
testingInstructions: string
localizedSettings: 
  object (LocalizedSettings)
accountLinking: 
  object (AccountLinking)
selectedAndroidApps: 
  - string
欄位
projectId

string

動作專案 ID。

defaultLocale

string

專案的預設語言代碼。針對除了 resources/ 以外,路徑中沒有語言代碼的檔案,系統會將本地化資料歸給這個 defaultLocale。如果檔案位於 resources/ 下沒有語言代碼,表示資源適用於所有語言代碼。

enabledRegions[]

string

代表使用者可叫用動作的地區,根據使用者的所在地。如果已設定 disabledRegions,則無法設定。如果您同時未指定 enabledRegionsdisabledRegions,使用者可以在所有區域中叫用您的動作。每個地區都會以 AdWords 指定地理區域的標準名稱來表示。請參閱 https://developers.google.com/adwords/api/docs/appendix/geotargeting,範例包括:「德國」-「迦納」- 「希臘」- 格瑞那達-「英國」-「美國」- 「美國邊疆群島」-「烏拉圭」

disabledRegions[]

string

代表動作遭到封鎖的區域 (根據使用者的所在地)。如果已設定 enabledRegions,則無法設定。每個地區都會以 AdWords 指定地理區域的標準名稱來表示。請參閱 https://developers.google.com/adwords/api/docs/appendix/geotargeting,範例包括:「德國」-「迦納」- 「希臘」- 格瑞那達-「英國」-「美國」- 「美國邊疆群島」-「烏拉圭」

category

enum (Category)

這項動作專案的類別。

usesTransactionsApi

boolean

動作是否可使用交易功能 (例如預訂、接受訂單等)。如果為 false,則嘗試使用 Transactions API 失敗。

usesDigitalPurchaseApi

boolean

動作是否可為數位商品進行交易。

usesInteractiveCanvas

boolean

動作是否使用互動式畫布。

usesHomeStorage

boolean

動作是否使用住家儲存空間功能。

designedForFamily

boolean

動作內容是否專為家庭 (DFF) 打造。

containsAlcoholOrTobaccoContent

boolean

動作是否含有酒精飲料或菸草相關內容。

keepsMicOpen

boolean

「動作」是否在對話未明確顯示提示的情況下,讓麥克風保持開啟狀態。

surfaceRequirements

object (SurfaceRequirements)

用戶端介面必須支援的介面需求,才能叫用這項專案中的動作。

testingInstructions

string

適用於動作審查人員的任意形式測試操作說明,例如帳戶連結操作說明。

localizedSettings

object (LocalizedSettings)

專案預設語言代碼的本地化設定。每個其他語言代碼都應該有專屬的設定檔。

accountLinking

object (AccountLinking)

允許使用者透過 Google 登入功能和/或您的 OAuth 服務建立或連結帳戶。

selectedAndroidApps[]

string

選擇透過 Google Play 進行交易消費的 Android 應用程式。這是與動作專案連結的 Android 應用程式選項,用於驗證品牌擁有權並啟用其他功能。詳情請參閱 https://developers.google.com/assistant/console/brand-verification

SurfaceRequirements

用戶端介面必須支援一組要求,才能在專案中叫用動作。

YAML 表示法
minimumRequirements: 
  - object (CapabilityRequirement)
欄位
minimumRequirements[]

object (CapabilityRequirement)

在專案中叫用動作所需的最低能力組合。如果途徑缺少以上任一條件,系統就不會觸發動作。