Method: customers.campaignLifecycleGoal.configureCampaignLifecycleGoals

处理指定的广告系列生命周期配置。

抛出的错误列表:AuthenticationError AuthorizationError CampaignLifecycleGoalConfigError HeaderError InternalError QuotaError RequestError

HTTP 请求

POST https://googleads.googleapis.com/v15/customers/{customerId}/campaignLifecycleGoal:configureCampaignLifecycleGoals

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。执行上传的客户的 ID。

请求正文

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

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

object (CampaignLifecycleGoalOperation)

必需。用于执行广告系列生命周期目标更新的操作。

validateOnly

boolean

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

响应正文

[CampaignLifecycleGoalService.configureCampaignLifecycleGoals][] 的响应消息。

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

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

object (ConfigureCampaignLifecycleGoalsResult)

广告系列生命周期目标配置的结果。

授权范围

需要以下 OAuth 作用域:

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

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

CampaignLifecycleGoalOperation

针对广告系列生命周期目标的单次操作。

JSON 表示法
{
  "updateMask": string,

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

string (FieldMask format)

可选。用于确定更新中修改哪些资源字段的 FieldMask。

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

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

object (CampaignLifecycleGoal)

创建操作:创建新的广告系列生命周期目标或更新现有的广告系列生命周期目标。创建新的广告系列生命周期目标时,需要设置包括广告系列字段在内的所有必填字段。资源名称和字段掩码必须为空。更新现有的广告系列生命周期目标时,需要设置资源名称和字段掩码,并将广告系列字段留空。更新现有广告系列生命周期目标时,支持基于字段掩码进行部分更新。

ConfigureCampaignLifecycleGoalsResult

广告系列生命周期目标配置的结果。

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

string

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