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}