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}