Method: customers.billingSetups.mutate

创建结算设置,或取消现有结算设置。

抛出的错误列表:AuthenticationError AuthorizationError BillingSetupError DateError FieldError HeaderError InternalError MutateError QuotaError RequestError

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。要应用结算设置转变操作的客户的 ID。

请求正文

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

JSON 表示法
{
  "operation": {
    object (BillingSetupOperation)
  }
}
字段
operation

object (BillingSetupOperation)

必需。要执行的操作。

响应正文

结算设置操作的响应消息。

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

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

object (MutateBillingSetupResult)

标识受 mutate 请求影响的资源的结果。

授权范围

需要以下 OAuth 作用域:

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

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

BillingSetupOperation

针对结算设置的单个操作,用于描述取消现有结算设置。

JSON 表示法
{

  // Union field operation can be only one of the following:
  "create": {
    object (BillingSetup)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
字段
联合字段 operation。只能设置其中一项操作。不支持“更新”操作。operation 只能是下列其中一项:
create

object (BillingSetup)

创建结算设置。新的结算设置不需要任何资源名称。

remove

string

要移除的结算设置的资源名称。除非设置处于待处理状态或其安排的开始时间是未来的时间,否则无法将其移除。资源名称类似于 customers/{customerId}/billingSetups/{billing_id}

MutateBillingSetupResult

单个结算设置 mutate 的结果。

JSON 表示法
{
  "resourceName": string
}
字段
resourceName

string

如果操作成功,则返回此值。