Method: inappproducts.update
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি অ্যাপ-মধ্যস্থ পণ্য (একটি পরিচালিত পণ্য বা একটি সদস্যতা) আপডেট করে।
সাবস্ক্রিপশন আপডেট করতে এই পদ্ধতিটি আর ব্যবহার করা উচিত নয়। আরও তথ্যের জন্য এই নিবন্ধটি দেখুন।
HTTP অনুরোধ
PUT https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
packageName | string অ্যাপের প্যাকেজের নাম। |
sku | string অ্যাপ-মধ্যস্থ পণ্যের জন্য অনন্য শনাক্তকারী। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
autoConvertMissingPrices | boolean এই অ্যাপ-মধ্যস্থ পণ্যের জন্য নির্দিষ্ট কোনো মূল্য নেই এমন প্যারেন্ট অ্যাপ দ্বারা লক্ষ্য করা সমস্ত অঞ্চলের দাম সত্য হলে ডিফল্ট মূল্যের উপর ভিত্তি করে লক্ষ্য মুদ্রায় স্বয়ংক্রিয়ভাবে রূপান্তরিত হবে। ডিফল্ট থেকে মিথ্যা. |
allowMissing | boolean যদি সত্যে সেট করা হয়, এবং প্রদত্ত প্যাকেজের নাম এবং sku সহ অ্যাপ-মধ্যস্থ পণ্যটি বিদ্যমান না থাকে, তাহলে অ্যাপ-মধ্যস্থ পণ্য তৈরি করা হবে। |
latencyTolerance | enum ( ProductUpdateLatencyTolerance ) ঐচ্ছিক। এই পণ্য আপডেটের প্রচারের জন্য বিলম্ব সহনশীলতা। লেটেন্সি-সংবেদনশীল থেকে ডিফল্ট। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে InAppProduct
এর একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে InAppProduct
এর একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/androidpublisher
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eUpdates an existing in-app product or subscription using a PUT request.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003epackageName\u003c/code\u003e and \u003ccode\u003esku\u003c/code\u003e as path parameters for identification.\u003c/p\u003e\n"],["\u003cp\u003eProvides optional query parameters for price conversion, product creation, and update latency.\u003c/p\u003e\n"],["\u003cp\u003eRequest and response bodies utilize the \u003ccode\u003eInAppProduct\u003c/code\u003e object schema.\u003c/p\u003e\n"],["\u003cp\u003eNeeds \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e authorization scope for access.\u003c/p\u003e\n"]]],["This outlines how to update an in-app product via a PUT request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`. It specifies the `packageName` and `sku` as path parameters. Query parameters allow for auto-converting prices (`autoConvertMissingPrices`), creating missing products (`allowMissing`), and setting latency tolerance (`latencyTolerance`). The request and response bodies both utilize the `InAppProduct` resource. This method now should not be used to update subscription. An authorization scope of `https://www.googleapis.com/auth/androidpublisher` is needed.\n"],null,["# Method: inappproducts.update\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\nUpdates an in-app product (a managed product or a subscription).\n\nThis method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.\n\n### HTTP request\n\n`PUT https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`\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| `sku` | `string` Unique identifier for the in-app product. |\n\n### Query parameters\n\n| Parameters ||\n|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `autoConvertMissingPrices` | `boolean` If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. |\n| `allowMissing` | `boolean` If set to true, and the in-app product with the given packageName and sku doesn't exist, the in-app product will be created. |\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### Request body\n\nThe request body contains an instance of [InAppProduct](/android-publisher/api-ref/rest/v3/inappproducts#InAppProduct).\n\n### Response body\n\nIf successful, the response body contains an instance of [InAppProduct](/android-publisher/api-ref/rest/v3/inappproducts#InAppProduct).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]