REST Resource: edits.expansionfiles
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: ExpansionFile
ไฟล์เสริม ทรัพยากรสำหรับ ExpansionFilesService
การแสดง JSON |
{
"referencesVersion": integer,
"fileSize": string
} |
ช่อง |
referencesVersion |
integer
หากตั้งค่าไว้ ไฟล์สำหรับขยายของ APK นี้จะอ้างอิงไฟล์เสริมของ APK อื่น จะไม่มีการตั้งค่าฟิลด์ fileSize
|
fileSize |
string (int64 format)
หากมีการตั้งค่าไว้ ฟิลด์นี้จะระบุว่า APK นี้มีไฟล์สำหรับขยายที่อัปโหลดลงไป โดย APK นี้ไม่ได้อ้างอิงไฟล์สำหรับขยายของ APK อื่น ค่าของช่องคือขนาดของไฟล์สำหรับขยายที่อัปโหลดในหน่วยไบต์
|
เมธอด |
|
ดึงข้อมูลการกำหนดค่าไฟล์สำหรับขยายสำหรับ APK ที่ระบุ |
|
แพตช์การกำหนดค่าไฟล์สำหรับขยายของ APK เพื่ออ้างอิงไฟล์สำหรับขยายของ APK อื่น |
|
อัปเดตการกำหนดค่าไฟล์สำหรับขยายของ APK เพื่ออ้างอิงไฟล์สำหรับขยายของ APK อื่น |
|
อัปโหลดไฟล์สำหรับขยายใหม่และแนบไปกับ APK ที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eAn ExpansionFile resource defines the configuration for expansion files associated with an APK in Google Play.\u003c/p\u003e\n"],["\u003cp\u003eIt allows an APK to either reference another APK's expansion file or have its own expansion file uploaded.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can manage expansion files using methods like get, patch, update, and upload to retrieve, modify, or add expansion file configurations for their APKs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereferencesVersion\u003c/code\u003e and \u003ccode\u003efileSize\u003c/code\u003e fields in the JSON representation determine if an APK references another expansion file or has its own uploaded file with the specified size.\u003c/p\u003e\n"]]],["Expansion files are configured with `referencesVersion` (referencing another APK's file) or `fileSize` (indicating an uploaded file's size in bytes). Key actions include: fetching an APK's expansion file configuration via `get`, modifying it to reference another file with `patch` or `update`, and uploading a new expansion file using `upload`. The JSON representation shows a file size and references version.\n"],null,["# REST Resource: edits.expansionfiles\n\n- [Resource: ExpansionFile](#ExpansionFile)\n - [JSON representation](#ExpansionFile.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ExpansionFile\n-----------------------\n\nAn expansion file. The resource for ExpansionFilesService.\n\n| JSON representation |\n|--------------------------------------------------------------|\n| ``` { \"referencesVersion\": integer, \"fileSize\": string } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `referencesVersion` | `integer` If set, this APK's expansion file references another APK's expansion file. The fileSize field will not be set. |\n| `fileSize` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| ### [get](/android-publisher/api-ref/rest/v3/edits.expansionfiles/get) | Fetches the expansion file configuration for the specified APK. |\n| ### [patch](/android-publisher/api-ref/rest/v3/edits.expansionfiles/patch) | Patches the APK's expansion file configuration to reference another APK's expansion file. |\n| ### [update](/android-publisher/api-ref/rest/v3/edits.expansionfiles/update) | Updates the APK's expansion file configuration to reference another APK's expansion file. |\n| ### [upload](/android-publisher/api-ref/rest/v3/edits.expansionfiles/upload) | Uploads a new expansion file and attaches to the specified APK. |"]]