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}