Method: monetization.onetimeproducts.patch
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি এককালীন পণ্য তৈরি বা আপডেট করে।
HTTP অনুরোধ
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{oneTimeProduct.packageName}/onetimeproducts/{oneTimeProduct.productId}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
oneTimeProduct.packageName | string প্রয়োজন। অপরিবর্তনীয়। মূল অ্যাপের প্যাকেজের নাম। |
oneTimeProduct.productId | string প্রয়োজন। অপরিবর্তনীয়। পণ্যের অনন্য পণ্য আইডি। অভিভাবক অ্যাপের মধ্যে অনন্য। পণ্য আইডিগুলি অবশ্যই একটি সংখ্যা বা ছোট হাতের অক্ষর দিয়ে শুরু করতে হবে এবং এতে সংখ্যা (0-9), ছোট হাতের অক্ষর (az), আন্ডারস্কোর (_), এবং পিরিয়ড (.) থাকতে পারে। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
updateMask | string ( FieldMask format) প্রয়োজন। ক্ষেত্রগুলির তালিকা আপডেট করা হবে। এটি ক্ষেত্রগুলির সম্পূর্ণরূপে যোগ্য নামের একটি কমা দ্বারা পৃথক করা তালিকা৷ উদাহরণ: "user.displayName,photo" । |
regionsVersion | object ( RegionsVersion ) প্রয়োজন। এককালীন পণ্যের জন্য উপলব্ধ অঞ্চলগুলির সংস্করণ ব্যবহার করা হচ্ছে৷ |
allowMissing | boolean ঐচ্ছিক। যদি সত্যে সেট করা হয়, এবং প্রদত্ত প্যাকেজের নাম এবং পণ্য আইডি সহ এক-কালীন পণ্যটি বিদ্যমান না থাকে, তবে এক-কালীন পণ্য তৈরি করা হবে। যদি একটি নতুন এককালীন পণ্য তৈরি করা হয়, আপডেটমাস্ক উপেক্ষা করা হয়। |
latencyTolerance | enum ( ProductUpdateLatencyTolerance ) ঐচ্ছিক। এই পণ্য আপসার্ট প্রচারের জন্য লেটেন্সি সহনশীলতা। লেটেন্সি-সংবেদনশীল থেকে ডিফল্ট। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে OneTimeProduct
এর একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে OneTimeProduct
এর একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত 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-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: monetization.onetimeproducts.patch\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\nCreates or updates a one-time product.\n\n### HTTP request\n\n`PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{oneTimeProduct.packageName}/onetimeproducts/{oneTimeProduct.productId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `oneTimeProduct.packageName` | `string` Required. Immutable. Package name of the parent app. |\n| `oneTimeProduct.productId` | `string` Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.). |\n\n### Query parameters\n\n| Parameters ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The list of fields to be updated. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| `regionsVersion` | `object (`[RegionsVersion](/android-publisher/api-ref/rest/v3/RegionsVersion)`)` Required. The version of the available regions being used for the one-time product. |\n| `allowMissing` | `boolean` Optional. If set to true, and the one-time product with the given packageName and productId doesn't exist, the one-time product will be created. If a new one-time product is created, updateMask is ignored. |\n| `latencyTolerance` | `enum (`[ProductUpdateLatencyTolerance](/android-publisher/api-ref/rest/v3/ProductUpdateLatencyTolerance)`)` Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive. |\n\n### Request body\n\nThe request body contains an instance of [OneTimeProduct](/android-publisher/api-ref/rest/v3/monetization.onetimeproducts#OneTimeProduct).\n\n### Response body\n\nIf successful, the response body contains an instance of [OneTimeProduct](/android-publisher/api-ref/rest/v3/monetization.onetimeproducts#OneTimeProduct).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]