Method: customers.customerLifecycleGoal.configureCustomerLifecycleGoals

處理指定的客戶生命週期設定。

擲回錯誤清單:AuthenticationError AuthorizationError CustomerLifecycleGoalConfigError HeaderError InternalError QuotaError RequestError

HTTP 要求

POST https://googleads.googleapis.com/v16/customers/{customerId}/customerLifecycleGoal:configureCustomerLifecycleGoals

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
customerId

string

必要欄位。執行上傳作業的客戶 ID。

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "operation": {
    object (CustomerLifecycleGoalOperation)
  },
  "validateOnly": boolean
}
欄位
operation

object (CustomerLifecycleGoalOperation)

必要欄位。執行客戶生命週期目標更新的作業。

validateOnly

boolean

選用設定。如果為 true,表示要求會完成驗證,但尚未執行。系統只會傳回錯誤,不會傳回結果。

回應主體

[CustomerLifecycleGoalService.configureCustomerLifecycleGoals][] 的回應訊息。

如果成功,回應主體即會包含具有以下結構的資料:

JSON 表示法
{
  "result": {
    object (ConfigureCustomerLifecycleGoalsResult)
  }
}
欄位
result

object (ConfigureCustomerLifecycleGoalsResult)

產生客戶生命週期目標設定的結果

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/adwords

詳情請參閱 OAuth 2.0 總覽

CustomerLifecycleGoalOperation

針對客戶生命週期目標執行單一作業。

JSON 表示法
{
  "updateMask": string,

  // Union field operation can be only one of the following:
  "create": {
    object (CustomerLifecycleGoal)
  },
  "update": {
    object (CustomerLifecycleGoal)
  }
  // End of list of possible types for union field operation.
}
欄位
updateMask

string (FieldMask format)

選用設定。FieldMask,用於決定更新中要修改哪些資源欄位。

此為以半形逗號分隔的完整欄位名稱清單,範例:"user.displayName,photo"

聯集欄位 operation。修改作業。operation 只能是下列其中一項:
create

object (CustomerLifecycleGoal)

建立作業:建立新的客戶生命週期目標。

update

object (CustomerLifecycleGoal)

更新作業:更新現有的客戶生命週期目標。

ConfigureCustomerLifecycleGoalsResult

客戶生命週期目標設定的結果。

JSON 表示法
{
  "resourceName": string
}
欄位
resourceName

string

作業成功時,系統會傳回這個字串。