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。转变操作。operation 只能是下列其中一项:
create

object (Asset)

创建操作:新资源不应包含资源名称。

update

object (Asset)

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

customers/{customerId}/assets/{asset_id}