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)

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