Method: edits.bundles.upload
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस बदलाव में नया Android ऐप्लिकेशन बंडल अपलोड करता है. अगर Google API क्लाइंट लाइब्रेरी का इस्तेमाल किया जा रहा है, तो इस एंडपॉइंट को कॉल करने से पहले, कृपया एचटीटीपी अनुरोध का टाइम आउट बढ़ाएं. हमारा सुझाव है कि टाइम आउट को दो मिनट के लिए सेट करें. Java में दिए गए उदाहरण के लिए, टाइमआउट और गड़बड़ियां देखें.
एचटीटीपी अनुरोध
- मीडिया अपलोड करने के अनुरोधों के लिए, यूआरआई अपलोड करें:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
- सिर्फ़ मेटाडेटा वाले अनुरोधों के लिए, मेटाडेटा यूआरआई:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
packageName |
string
ऐप्लिकेशन का पैकेज नाम.
|
editId |
string
बदलाव का आइडेंटिफ़ायर.
|
क्वेरी पैरामीटर
पैरामीटर |
ackBundleInstallationWarning (deprecated) |
boolean
समर्थन नहीं होना या रुकना. इंस्टॉलेशन चेतावनी हटा दी गई है, अब इस फ़ील्ड को सेट करने की ज़रूरत नहीं है.
|
deviceTierConfigId |
string
डिलीवर किए जा सकने वाले ऐप्लिकेशन (APK) जनरेट करने के लिए, डिवाइस टियर कॉन्फ़िगरेशन (डीटीसी) का इस्तेमाल किया जाएगा. इसमें डीटीसी या "LATEST" का आईडी शामिल है आखिरी बार अपलोड किए गए डीटीसी के लिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में BundlesUploadRequestBody
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Bundle
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidpublisher
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (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"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eUploads a new Android App Bundle to the specified edit using either media upload or metadata-only requests.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the package name and edit ID as path parameters in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eOptionally allows setting query parameters for device tier config and acknowledging bundle installation warnings (deprecated).\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eBundlesUploadRequestBody\u003c/code\u003e in the request body and returns a \u003ccode\u003eBundle\u003c/code\u003e object in the response upon success.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document outlines how to upload an Android App Bundle to an edit using the Android Publisher API. Key actions include sending a `POST` request to a specified URI, which can be a media upload URI or a metadata-only URI. Required path parameters are `packageName` and `editId`. Optional query parameters include `deviceTierConfigId`, while `ackBundleInstallationWarning` is deprecated. The request body should contain `BundlesUploadRequestBody`, and a successful response will provide a `Bundle` instance. The operation requires the `androidpublisher` authorization scope. It is advised to increase the HTTP request timeout to 2 minutes.\n"],null,["# Method: edits.bundles.upload\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.\n\n### HTTP request\n\n- Upload URI, for media upload requests: \n `POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles`\n- Metadata URI, for metadata-only requests: \n `POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|-----------------------------------|\n| `packageName` | `string` Package name of the app. |\n| `editId` | `string` Identifier of the edit. |\n\n### Query parameters\n\n| Parameters ||\n|-------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `ackBundleInstallationWarning` **(deprecated)** | `boolean` Deprecated. The installation warning has been removed, it's not necessary to set this field anymore. |\n| `deviceTierConfigId` | `string` Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or \"LATEST\" for last uploaded DTC. |\n\n### Request body\n\nThe request body contains an instance of `BundlesUploadRequestBody`.\n\n### Response body\n\nIf successful, the response body contains an instance of [Bundle](/android-publisher/api-ref/rest/v3/edits.bundles#Bundle).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]