Method: customers.mutate

更新客户。返回操作状态。

抛出的错误列表:AuthenticationError AuthorizationError DatabaseError FieldMaskError HeaderError InternalError QuotaError RequestError UrlFieldError

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。要修改的客户的 ID。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "operation": {
    object (CustomerOperation)
  },
  "validateOnly": boolean,
  "responseContentType": enum (ResponseContentType)
}
字段
operation

object (CustomerOperation)

必需。要对客户执行的操作

validateOnly

boolean

如果为 true,则对请求进行验证,但不会执行该请求。系统只会返回错误,不会返回结果。

responseContentType

enum (ResponseContentType)

响应内容类型设置。确定在更改后应返回可变资源还是仅返回资源名称。

响应正文

客户 mutate 的响应消息。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "result": {
    object (MutateCustomerResult)
  }
}
字段
result

object (MutateCustomerResult)

mutate 的结果。

授权范围

需要以下 OAuth 作用域:

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

有关详情,请参阅 OAuth 2.0 概览