Method: customers.batchJobs.mutate

對批次工作進行更改。

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

HTTP 要求

POST https://googleads.googleapis.com/v14/customers/{customerId}/batchJobs:mutate

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

路徑參數

參數
customerId

string

必要欄位。要為其建立批次工作的客戶 ID。

要求主體

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

JSON 表示法
{
  "operation": {
    object (BatchJobOperation)
  }
}
欄位
operation

object (BatchJobOperation)

必要欄位。要對個別批次工作執行的作業。

回應主體

BatchJobService.MutateBatchJob 的回應訊息。

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

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

object (MutateBatchJobResult)

修改的結果。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 總覽

BatchJobOperation

批次工作的一項作業。

JSON 表示法
{

  // Union field operation can be only one of the following:
  "create": {
    object (BatchJob)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
欄位
聯集欄位 operation。修改作業。operation 只能是下列其中一項:
create

object (BatchJob)

建立作業:新的批次工作不會有資源名稱。

remove

string

移除作業:此批次工作尚未執行。系統預期為已移除的批次工作提供資源名稱,格式如下:

customers/{customerId}/batchJobs/{batch_job_id}

MutateBatchJobResult

批次工作的結果變化。

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

string

批次工作的資源名稱。