Method: customers.accountBudgetProposals.mutate

创建、更新或移除帐号预算提案。返回操作状态。

抛出的错误列表:AccountBudgetProposalError AuthenticationError AuthorizationError DatabaseError DateError FieldError FieldMaskError HeaderError InternalError MutateError QuotaError FieldErrorRequestErrorStringLengthError

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。客户的 ID。

请求正文

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

JSON 表示法
{
  "operation": {
    object (AccountBudgetProposalOperation)
  },
  "validateOnly": boolean
}
字段
operation

object (AccountBudgetProposalOperation)

必需。要针对具体帐号级预算提案执行的操作。

validateOnly

boolean

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

响应正文

账号级预算更改操作的响应消息。

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

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

object (MutateAccountBudgetProposalResult)

mutate 的结果。

授权范围

需要以下 OAuth 作用域:

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

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

AccountBudgetProposalOperation

一项操作即可提议创建新的帐号级预算,或修改/结束/移除现有预算。

JSON 表示法
{
  "updateMask": string,

  // Union field operation can be only one of the following:
  "create": {
    object (AccountBudgetProposal)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
字段
updateMask

string (FieldMask format)

用于确定修改哪些预算字段的 FieldMask。虽然可以修改预算,但提出此类修改的提案为最终提案。因此,提案不支持更新操作。

修改预算的提案具有“更新”提案类型。为任何其他提案类型指定掩码会被视为错误。

这是以逗号分隔的完全限定字段名称列表。示例:"user.displayName,photo"

联合字段 operation。mutate 操作。operation 只能是下列其中一项:
create

object (AccountBudgetProposal)

创建操作:新提案,可用于创建新预算、修改现有预算、终止正在运行中的预算或者移除计划在将来启动的已批准预算。新提案不需要使用资源名称。

remove

string

移除操作:已移除的提案的资源名称应采用以下格式:

customers/{customerId}/accountBudgetProposals/{account_budget_proposal_id}如果请求在等待处理,可能会被取消。

MutateAccountBudgetProposalResult

帐号预算建议的结果发生变化。

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

string

如果操作成功,系统会返回此错误代码。