Method: monetization.onetimeproducts.purchaseOptions.offers.batchGet
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह कुकी, वन-टाइम प्रॉडक्ट के एक या उससे ज़्यादा ऑफ़र को पढ़ती है.
एचटीटीपी अनुरोध
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet
यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
packageName |
string
ज़रूरी है. अपडेट किए गए ऑफ़र का पैरंट ऐप्लिकेशन (पैकेज का नाम). यह अपडेट किए गए सभी OneTimeProductOffer संसाधनों के packageName फ़ील्ड के बराबर होना चाहिए.
|
productId |
string
ज़रूरी है. अगर अपडेट किए गए सभी ऑफ़र एक ही प्रॉडक्ट के हैं, तो पैरंट वन-टाइम प्रॉडक्ट का प्रॉडक्ट आईडी. अगर यह अनुरोध एक बार इस्तेमाल किए जाने वाले कई प्रॉडक्ट के लिए है, तो इस फ़ील्ड को "-" पर सेट करें.
|
purchaseOptionId |
string
ज़रूरी है. खरीदारी के लिए सेट किया गया मुख्य विकल्प (आईडी) जिसके लिए ऑफ़र अपडेट किए जाने चाहिए. खरीदारी के कई विकल्पों के ऑफ़र अपडेट करने के लिए, इसे '-' के तौर पर सेट किया जा सकता है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में, इस स्ट्रक्चर का डेटा शामिल होता है:
फ़ील्ड |
requests[] |
object (GetOneTimeProductOfferRequest )
ज़रूरी है. ज़्यादा से ज़्यादा 100 एलिमेंट के लिए, 'पाएं' अनुरोधों की सूची. सभी अनुरोधों में अलग-अलग ऑफ़र दिखने चाहिए.
|
जवाब का मुख्य भाग
offers.batchGet एंडपॉइंट के लिए जवाब का मैसेज.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
फ़ील्ड |
oneTimeProductOffers[] |
object (OneTimeProductOffer )
एक बार खरीदे जाने वाले प्रॉडक्ट के अपडेट किए गए ऑफ़र की सूची. यह सूची, अनुरोध के क्रम में ही होती है.
|
अनुमति के स्कोप
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidpublisher
GetOneTimeProductOfferRequest
GetOneTimeProductOffers के लिए अनुरोध मैसेज.
JSON के काेड में दिखाना |
{
"packageName": string,
"productId": string,
"purchaseOptionId": string,
"offerId": string
} |
फ़ील्ड |
packageName |
string
ज़रूरी है. ऑफ़र पाने के लिए पैरंट ऐप्लिकेशन (पैकेज का नाम).
|
productId |
string
ज़रूरी है. ऑफ़र पाने के लिए, पैरंट वन-टाइम प्रॉडक्ट (आईडी).
|
purchaseOptionId |
string
ज़रूरी है. जिस ऑफ़र को पाना है उसके लिए, खरीदारी का मुख्य विकल्प (आईडी).
|
offerId |
string
ज़रूरी है. पाए जाने वाले ऑफ़र का यूनीक ऑफ़र आईडी.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],[],null,["# Method: monetization.onetimeproducts.purchaseOptions.offers.batchGet\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 - [JSON representation](#body.BatchGetOneTimeProductOffersResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [GetOneTimeProductOfferRequest](#GetOneTimeProductOfferRequest)\n - [JSON representation](#GetOneTimeProductOfferRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nReads one or more one-time product offers.\n\n### HTTP request\n\n`POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet`\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 updated offers. Must be equal to the packageName field on all the updated OneTimeProductOffer resources. |\n| `productId` | `string` Required. The product ID of the parent one-time product, if all updated offers belong to the same product. If this request spans multiple one-time products, set this field to \"-\". |\n| `purchaseOptionId` | `string` Required. The parent purchase option (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple purchase options. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/android-publisher/api-ref/rest/v3/monetization.onetimeproducts.purchaseOptions.offers/batchGet#GetOneTimeProductOfferRequest) } ] } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[GetOneTimeProductOfferRequest](/android-publisher/api-ref/rest/v3/monetization.onetimeproducts.purchaseOptions.offers/batchGet#GetOneTimeProductOfferRequest)`)` Required. A list of get requests of up to 100 elements. All requests must retrieve different offers. |\n\n### Response body\n\nResponse message for the offers.batchGet endpoint.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"oneTimeProductOffers\": [ { object (/android-publisher/api-ref/rest/v3/monetization.onetimeproducts.purchaseOptions.offers#OneTimeProductOffer) } ] } ``` |\n\n| Fields ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `oneTimeProductOffers[]` | `object (`[OneTimeProductOffer](/android-publisher/api-ref/rest/v3/monetization.onetimeproducts.purchaseOptions.offers#OneTimeProductOffer)`)` The list of updated one-time product offers, in the same order as the request. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`\n\nGetOneTimeProductOfferRequest\n-----------------------------\n\nRequest message for GetOneTimeProductOffers.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------|\n| ``` { \"packageName\": string, \"productId\": string, \"purchaseOptionId\": string, \"offerId\": string } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------|\n| `packageName` | `string` Required. The parent app (package name) of the offer to get. |\n| `productId` | `string` Required. The parent one-time product (ID) of the offer to get. |\n| `purchaseOptionId` | `string` Required. The parent purchase option (ID) of the offer to get. |\n| `offerId` | `string` Required. The unique offer ID of the offer to get. |"]]