Method: monetization.subscriptions.basePlans.offers.deactivate
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सदस्यता के ऑफ़र को बंद करता है. सदस्यता बंद होने के बाद, मौजूदा सदस्यों की सदस्यता बनी रहेगी, लेकिन यह ऑफ़र नए सदस्यों के लिए उपलब्ध नहीं होगा.
एचटीटीपी अनुरोध
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
packageName |
string
ज़रूरी है. बंद किए जाने वाले ऑफ़र का पैरंट ऐप्लिकेशन (पैकेज का नाम).
|
productId |
string
ज़रूरी है. ऑफ़र की पैरंट सदस्यता (आईडी) जिसे बंद करना है.
|
basePlanId |
string
ज़रूरी है. ऑफ़र का पैरंट बुनियादी प्लान (आईडी) जिसे बंद करना है.
|
offerId |
string
ज़रूरी है. ऑफ़र का यूनीक ऑफ़र आईडी जिसे बंद करना है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
फ़ील्ड |
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
ज़रूरी नहीं. इस प्रॉडक्ट अपडेट को लागू होने में कितना समय लगेगा. डिफ़ॉल्ट रूप से, यह सुविधा इंतज़ार के समय के हिसाब से संवेदनशील होती है.
|
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में SubscriptionOffer
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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) को अपडेट किया गया."],[[["Deactivates a subscription offer, preventing new subscriptions while existing ones remain active."],["Sends a POST request to the specified URL with necessary path parameters like package name, product ID, base plan ID, and offer ID."],["Optionally includes a request body specifying the latency tolerance for the update."],["Upon success, returns a SubscriptionOffer object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This API call deactivates a subscription offer for an Android app. It uses a `POST` request to a specific URL, incorporating the app's package name, subscription ID, base plan ID, and offer ID as required path parameters. The request body, in JSON format, allows for specifying `latencyTolerance`. A successful request returns data of `SubscriptionOffer`, and requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. The deactivation makes the offer unavailable to new subscribers.\n"]]