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}