Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Phương thức chỉnh sửa trong API Phát hành dành cho nhà phát triển Google Play cho phép bạn chuẩn bị một số thay đổi đối với ứng dụng Google Play, sau đó triển khai tất cả những thay đổi đó cùng một lúc. Bạn thực hiện việc này bằng cách tạo một nội dung chỉnh sửa. Tệp này lưu giữ tất cả những thay đổi bạn muốn thực hiện đối với ứng dụng. Nội dung chỉnh sửa này sẽ lưu giữ những thông tin như:
APK nào được liên kết với ứng dụng và "theo dõi" cho mỗi APK.
Mỗi kênh được liên kết với một "kênh" để xác định những người dùng sẽ nhìn thấy kênh đó. Điều này cho phép bạn cung cấp các phiên bản alpha và beta của ứng dụng cho người kiểm thử. Ngoài ra, bạn có thể cung cấp phiên bản "phát hành theo giai đoạn" với bản phát hành giới hạn; ứng dụng này được tự động phân phát cho một số ít người dùng ứng dụng (được xác định theo tỷ lệ phần trăm phát hành mà bạn thiết lập), cho phép bạn triển khai dần phiên bản phát hành chính thức mới của ứng dụng.
Phiên bản ngôn ngữ và ngôn ngữ cụ thể của trang thông tin ứng dụng
trên Cửa hàng Google Play
Mỗi phiên bản theo từng ngôn ngữ của trang thông tin trên Cửa hàng Play có thể chứa ảnh chụp màn hình và các hình ảnh quảng cáo khác, văn bản mô tả đã bản địa hoá, v.v.
Khi bạn tạo một nội dung chỉnh sửa lần đầu tiên, nội dung chỉnh sửa sẽ là bản sao trạng thái triển khai hiện tại của ứng dụng. Sau đó, bạn có thể sửa đổi nội dung chỉnh sửa bằng cách gọi phương thức Edits (Chỉnh sửa). Khi nội dung chỉnh sửa đã sẵn sàng, hãy cam kết thực hiện bằng cách
thực hiện các thay đổi trực tiếp. Bạn cũng có thể bỏ qua nội dung chỉnh sửa bất cứ lúc nào, loại bỏ các thay đổi và để nguyên ứng dụng.
Bạn chỉ có thể sử dụng API này để thực hiện thay đổi đối với một ứng dụng hiện có (có ít nhất một tệp APK đã tải lên); do đó, bạn sẽ phải tải ít nhất một tệp APK lên thông qua Play Console thì mới có thể sử dụng API này. Hơn nữa, bạn không thể sử dụng API này để thay đổi trạng thái của ứng dụng từ "đã xuất bản" thành "chưa xuất bản" hoặc để điền vào các biểu mẫu đồng ý pháp lý cần thiết cho việc phát hành. Để phát hành ứng dụng, bạn phải sử dụng Play Console.
Quy trình làm việc
Phần này trình bày cách thông thường mà bạn sẽ sử dụng Các phương thức chỉnh sửa của API Phát hành dành cho nhà phát triển Google Play để thực hiện sửa đổi đối với một ứng dụng.
Tạo một nội dung chỉnh sửa mới bằng cách gọi Edits: Insert và chỉ định ứng dụng mà bạn muốn sửa đổi.
Thao tác này sẽ tạo ra nội dung chỉnh sửa mới của ứng dụng được chỉ định. Chế độ cài đặt ban đầu của ứng dụng (APK, trang thông tin trên Cửa hàng Play, tệp mở rộng, v.v.) đều được sao chép từ phiên bản đã triển khai của ứng dụng.
Sửa đổi nội dung chỉnh sửa như mong muốn.
Bạn có thể thực hiện hầu hết các thay đổi có thể thực hiện thông qua Google Play Console. Bạn thực hiện việc này bằng cách gọi phương thức API Nhà phát triển Google Play thích hợp, truyền mã nhận dạng của ứng dụng và chỉnh sửa mà bạn muốn sửa đổi. Cụ thể:
Bạn có thể tải các tệp APK mới lên bằng cách gọi Edits.apks:upload. Thao tác này sẽ đặt APK trong một vùng lưu trữ, do đó bạn có thể chỉ định APK cho một kênh trong lần chỉnh sửa này hoặc trong lần chỉnh sửa tiếp theo.
Bạn có thể gán APK cho các kênh bằng cách gọi Edits.tracks:update. Bạn cũng có thể thay đổi việc gán bản theo dõi cho các APK hiện có bằng cách gọi Edits.tracks: patch.
Bạn có thể tạo một trang thông tin mới đã bản địa hoá trên Cửa hàng Play bằng cách gọi phương thức Edits.listings:update. Bạn có thể sửa đổi một trang thông tin hiện có trên Cửa hàng Play bằng cách gọi phương thức Edits.listings: patch.
Các phương thức này sẽ thực hiện thay đổi đối với nội dung chỉnh sửa bạn đang thực hiện, nhưng không sửa đổi phiên bản đang hoạt động của ứng dụng. Bạn có thể thực hiện thêm thay đổi hoặc loại bỏ nội dung chỉnh sửa đang diễn ra mà không ảnh hưởng đến trải nghiệm người dùng.
Cam kết chỉnh sửa.
Khi bạn gọi Edits: Cam (Bản chỉnh sửa: cam kết), nếu không có lỗi xác thực, thì tất cả thay đổi được chỉ định trong tài nguyên chỉnh sửa sẽ "trực tiếp", thay thế trạng thái hiện tại của ứng dụng. Những thay đổi này có thể mất vài giờ mới có hiệu lực, giống như khi bạn thực hiện thay đổi thông qua Play Console.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThe Google Play Developer Publishing API allows you to make changes to your app, such as updating APKs, store listings, and expansion files, using the "edits" functionality where you prepare changes in an edit and deploy them all at once by committing the edit.\u003c/p\u003e\n"],["\u003cp\u003eEdits enable managing APKs and their tracks (alpha, beta, staged rollout, production) allowing for controlled releases to testers and users.\u003c/p\u003e\n"],["\u003cp\u003eStore listings can be localized with language-specific descriptions, screenshots, and promotional graphics using edits.\u003c/p\u003e\n"],["\u003cp\u003eWhen an edit is committed, changes go live and can take several hours to fully propagate, but before that, edits can be modified further or discarded without affecting the live app.\u003c/p\u003e\n"],["\u003cp\u003eEdits functionality does not cover in-app products, standard products, subscriptions, unpublishing apps, or managing legal consents, which require separate API calls or the Play Console.\u003c/p\u003e\n"]]],["The Google Play Developer Publishing API uses \"edits\" to manage app changes. You create an edit, which initially mirrors the live app, and then modify it by uploading APKs, assigning them to tracks (alpha, beta, staged rollout), and updating localized store listings. These changes are made to the edit, not the live app. Finally, you commit the edit to make the changes live or abandon the edit to discard them. Only one edit per app can be active and changes through the Play Console discard any existing edits.\n"],null,["# Edits\n\nThe Google Play Developer Publishing API [Edits methods](/android-publisher/api-ref/rest/v3/edits#METHODS_SUMMARY)\nallow you to prepare a number of\nchanges to your Google Play app, then deploy them all at once. You do\nthis by creating an **edit**, which holds all the changes you want to\nmake to the app. The edit holds such information as:\n\n- Which APKs are associated with the app, and a \"track\" for each APK.\n\n Each is associated with a \"track\", determining which users see\n it. This allows you to provide alpha and beta versions of the app\n for your testers. In addition, you can provide a limited-release\n \"staged rollout\" version of the app; this app is automatically\n served to a limited number of the app's users (determined by the\n rollout percentage you set), allowing you to deploy a new\n production version of the app gradually.\n- Language and locale-specific versions of the app's Google Play\n Store listing\n\n Each locale-specific version of the store listing can contain\n screenshots and other promotional graphics, localized descriptive\n text, and so on.\n\n| **Note:** Not all the methods provided by the Google Play Developer API use the new, transactional \"edits\" functionality. Methods for the [inappproducts](/android-publisher/api-ref/rest/v3/inappproducts), [products](/android-publisher/api-ref/rest/v3/purchases.products), and [subscriptions](/android-publisher/api-ref/rest/v3/purchases.subscriptions) resources take effect immediately, whether or not there is an open edit for the app. Each resource's API reference page notes specifically whether the methods for that resource use the \"edits\" model.\n\nWhen you first create an edit, the edit is a copy of the current\ndeployed state of the app. You can then modify the edit by calling the\nEdits methods. When the edit is ready to go, you commit it,\nmaking the changes live. You can also abandon the edit at any time,\ndiscarding the changes and leaving your app as it was.\n\nYou can only use this API to make changes to an *existing* app (that\nhas at least one APK uploaded); thus, you will have to upload at least\none APK through the Play Console before you can use this\nAPI. Furthermore, you cannot use this API to change an app's state\nfrom \"published\" to \"unpublished\", or to fill out the legal consents\nrequired for publishing. To publish the app, you have to use the\nPlay Console.\n| **Caution:** If anyone makes any changes to the app through the Google Play Console while you have an edit in progress, your edit is discarded and the Play Console changes take effect.\n\nWorkflow\n--------\n\nThis section shows the typical way you would use the Google Play Developer Publishing API\n[Edits methods](/android-publisher/api-ref/rest/v3/edits#METHODS_SUMMARY) to make modifications to an app.\n\n1. Create a new edit, by calling [Edits:\n Insert](/android-publisher/api-ref/rest/v3/edits/insert) and specifying the app you want\n to modify.\n\n This creates a new edit of the specified app. The app's initial\n settings--the APKs, store listings, expansion files, and so on--are all\n copied from the deployed version of the app.\n2. Modify the edit as desired.\n\n You can make most of the changes which could be made through the\n Google Play Console. You do this by calling the\n appropriate Google Play Developer API method, and passing the IDs of the app\n and edit you want to modify. Specifically:\n - You can upload new APKs by calling [Edits.apks:\n upload](/android-publisher/api-ref/rest/v3/edits.apks/upload). This puts the APK in a storage area, so it can be assigned to a track in this or a subsequent edit.\n - You can assign APKs to tracks by calling [Edits.tracks:\n update](/android-publisher/api-ref/rest/v3/edits.tracks/update). You can also change the track assignments for existing APKs by calling [Edits.tracks:\n patch](/android-publisher/api-ref/rest/v3/edits.tracks/patch).\n - You can create a new localized store listing by calling [Edits.listings:\n update](/android-publisher/api-ref/rest/v3/edits.listings/update). You can modify an existing store listing by calling [Edits.listings: patch](/android-publisher/api-ref/rest/v3/edits.listings/patch).\n - You can add or modify expansion files by calling the [Edits.expansionfiles resource](/android-publisher/api-ref/rest/v3/edits.expansionfiles) methods.\n\n These methods make changes to the edit you have in progress, but\n they do *not* modify the live version of the app. You can make\n further changes or discard the edit in progress without affecting\n the user experience.\n | **Note:** Each user may have only a single edit open at a time. If you create a new edit, any existing edit you may have open is invalidated. In addition, if anyone commits an edit or makes changes to an app through the Play Console, *all* other edits for the app (owned by any user) are invalidated. If you try to commit an invalid edit, the operation will throw an exception and have no effect.\n3. Commit the edit.\n\n When you call [Edits: commit](/android-publisher/api-ref/rest/v3/edits/commit), if there\n are no validation errors, then all the changes specified in the\n edits resource go \"live\", replacing the current state of the\n app. These changes can take several hours to take effect, just as\n when you make changes through the Play Console."]]