Method: customers.keywordPlanAdGroups.mutate

创建、更新或移除关键字方案广告组。返回操作状态。

抛出的错误列表:AuthenticationError AuthorizationError DatabaseError FieldError FieldMaskError HeaderError InternalError KeywordPlanAdGroupError KeywordPlanError MutateError MutateError MutateError NewResourceCreationError NewResourceCountError InternalError QuotaErrorRequestErrorResourceCountLimitExceededError

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。要修改其关键字方案广告组的客户的 ID。

请求正文

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

JSON 表示法
{
  "operations": [
    {
      object (KeywordPlanAdGroupOperation)
    }
  ],
  "partialFailure": boolean,
  "validateOnly": boolean
}
字段
operations[]

object (KeywordPlanAdGroupOperation)

必需。要针对各关键字方案广告组执行的操作列表。

partialFailure

boolean

如果为 true,将执行成功的操作,而无效操作将返回错误。如果为 false,当且仅当所有操作均有效时,所有操作都将在一个事务中执行。默认值为 false。

validateOnly

boolean

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

响应正文

关键字方案广告组转变的响应消息。

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

JSON 表示法
{
  "partialFailureError": {
    object (Status)
  },
  "results": [
    {
      object (MutateKeywordPlanAdGroupResult)
    }
  ]
}
字段
partialFailureError

object (Status)

与部分失败模式下的操作失败相关的错误。仅当 partialFailure = true 且所有错误发生在操作内部时,才返回 partialFailure。如果操作之外发生任何错误(例如身份验证错误),我们会返回 RPC 级错误。

results[]

object (MutateKeywordPlanAdGroupResult)

转变的所有结果。结果的显示顺序取决于原始请求中关键字的顺序。

授权范围

需要以下 OAuth 作用域:

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

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