Method: accounts.products.localInventories.insert
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הוספת משאב LocalInventory למוצר בחשבון המוכר.
הפונקציה מחליפה את המשאב המלא LocalInventory אם כבר קיים במוצר רשומה עם אותו storeCode.
יכול להיות שיחלפו עד 30 דקות עד שהמשאב LocalInventory החדש או המעודכן יופיע במוצרים.
בקשת HTTP
POST https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
| פרמטרים |
parent |
string
חובה. החשבון והמוצר שבהם יתווסף מלאי שטחי הפרסום הזה. פורמט: accounts/{account}/products/{product}
|
גוף הבקשה
גוף הבקשה מכיל מופע של LocalInventory.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של LocalInventory.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/content
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-23 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-23 (שעון UTC)."],[],["This operation inserts a `LocalInventory` resource for a product within a merchant account, replacing existing entries with the same `storeCode`. The process can take up to 30 minutes to reflect changes. A POST request to `https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert` is used, with `parent` specifying the account and product. The request and response bodies utilize the `LocalInventory` resource. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]