Method: monetization.subscriptions.basePlans.offers.deactivate
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সাবস্ক্রিপশন অফার নিষ্ক্রিয় করে। একবার নিষ্ক্রিয় হয়ে গেলে, বিদ্যমান গ্রাহকরা তাদের সদস্যতা বজায় রাখবে, কিন্তু অফারটি নতুন গ্রাহকদের জন্য অনুপলব্ধ হয়ে যাবে।
HTTP অনুরোধ
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate
URL 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eDeactivates a subscription offer, preventing new subscriptions while existing ones remain active.\u003c/p\u003e\n"],["\u003cp\u003eSends a POST request to the specified URL with necessary path parameters like package name, product ID, base plan ID, and offer ID.\u003c/p\u003e\n"],["\u003cp\u003eOptionally includes a request body specifying the latency tolerance for the update.\u003c/p\u003e\n"],["\u003cp\u003eUpon success, returns a SubscriptionOffer object in the response body.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["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"],null,["# Method: monetization.subscriptions.basePlans.offers.deactivate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers.\n\n### HTTP request\n\n`POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------|\n| `packageName` | `string` Required. The parent app (package name) of the offer to deactivate. |\n| `productId` | `string` Required. The parent subscription (ID) of the offer to deactivate. |\n| `basePlanId` | `string` Required. The parent base plan (ID) of the offer to deactivate. |\n| `offerId` | `string` Required. The unique offer ID of the offer to deactivate. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------|\n| ``` { \"latencyTolerance\": enum (/android-publisher/api-ref/rest/v3/ProductUpdateLatencyTolerance) } ``` |\n\n| Fields ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `latencyTolerance` | `enum (`[ProductUpdateLatencyTolerance](/android-publisher/api-ref/rest/v3/ProductUpdateLatencyTolerance)`)` Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. |\n\n### Response body\n\nIf successful, the response body contains an instance of [SubscriptionOffer](/android-publisher/api-ref/rest/v3/monetization.subscriptions.basePlans.offers#SubscriptionOffer).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]