AssetOperation

创建资产的单次操作。支持的素材资源类型为 YouTubeVideoAsset、MediaBundleAsset、ImageAsset、LeadFormAsset、LocationAsset 和 ImageAsset。TextAsset 可以使用广告内嵌方式创建,但也可以像其他素材资源一样,独立于广告创建。

JSON 表示法
{
  "updateMask": string,

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

string (FieldMask format)

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

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

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

object (Asset)

创建操作:新资产不需要使用资源名称。

update

object (Asset)

更新操作:资产应具有以下格式的有效资源名称:

customers/{customerId}/assets/{asset_id}