Method: monetization.subscriptions.batchGet
Stay organized with collections
Save and categorize content based on your preferences.
Reads one or more subscriptions.
HTTP request
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
packageName |
string
Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal to the packageName field on all the requests.
|
Query parameters
Parameters |
productIds[] |
string
Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different.
|
Request body
The request body must be empty.
Response body
Response message for subscriptions.batchGet endpoint.
If successful, the response body contains data with the following structure:
JSON representation |
{
"subscriptions": [
{
object (Subscription )
}
]
} |
Fields |
subscriptions[] |
object (Subscription )
The list of requested subscriptions, in the same order as the request.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-17 UTC."],[[["Retrieves details for one or more app subscriptions using their product IDs."],["Requires providing the app's package name and a list of subscription product IDs."],["Returns a list of subscriptions corresponding to the provided product IDs, if found."],["Uses the `GET` HTTP method and requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope."],["Request body should be empty."]]],["This document details retrieving multiple subscriptions via a `GET` request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet`. The `packageName` is a mandatory path parameter. A `productIds[]` query parameter, containing up to 100 unique subscription IDs, is also required. The request body must be empty. A successful response includes a JSON object with a `subscriptions[]` field that lists requested subscriptions in the order they were requested. The operation requires the `androidpublisher` OAuth scope.\n"]]