Method: edits.images.upload
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מעלים תמונה בשפה ובסוג שצוינו, ומוסיפים אותה לעריכה.
בקשת HTTP
- URI להעלאה, לבקשות העלאת מדיה:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}
- URI של מטא-נתונים, לבקשות של מטא-נתונים בלבד:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה.
|
editId |
string
המזהה של העריכה.
|
language |
string
קוד לוקליזציה של שפה (תג שפה מסוג BCP-47, לדוגמה, 'de-AT' לגרמנית אוסטרית). אין טעם לציין שפה שלא נתמכת באפליקציה.
|
imageType |
enum (AppImageType )
סוג התמונה.
|
גוף הבקשה
גוף הבקשה מכיל מופע של ImagesUploadRequestBody
.
גוף התשובה
תגובה להעלאת תמונה.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"image": {
object (Image )
}
} |
שדות |
image |
object (Image )
התמונה שהעליתם.
|
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-18 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-12-18 (שעון UTC)."],[[["Uploads an image of the specified language and image type, and adds it to the edit."],["Utilizes HTTP POST requests to upload media or metadata for app listings."],["Requires path parameters such as package name, edit ID, language, and image type."],["The request body should contain an `ImagesUploadRequestBody` instance."],["Successful responses include an `Image` object representing the uploaded image."]]],["This document details the process for uploading images to an Android app's listing. Key actions involve making a `POST` request to either an upload URI or a metadata URI, specifying parameters like `packageName`, `editId`, `language`, and `imageType`. The request body, which is `ImagesUploadRequestBody`, needs to be provided and a JSON response containing image data is returned. Authorization using `https://www.googleapis.com/auth/androidpublisher` scope is also necessary for the request.\n"]]