AI-generated Key Takeaways
-
This method lists all in-app products, including both managed products and subscriptions, though it should no longer be used for retrieving subscriptions.
-
The response may be paginated, and the
tokenPagination.nextPageToken
field is used to retrieve subsequent pages by providing its value as thetoken
request parameter. -
The request is made using an HTTP GET request to a specific URL format including the package name.
-
The request body must be empty, and the response body contains information about the listed in-app products, pagination, and includes a JSON representation of the data structure.
-
This method requires the
https://www.googleapis.com/auth/androidpublisher
OAuth scope for authorization.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists all in-app products - both managed products and subscriptions.
If an app has a large number of in-app products, the response may be paginated. In this case the response field tokenPagination.nextPageToken
will be set and the caller should provide its value as a token
request parameter to retrieve the next page.
This method should no longer be used to retrieve subscriptions. See this article for more information.
HTTP request
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
packageName |
Package name of the app. |
Query parameters
Parameters | |
---|---|
token |
Pagination token. If empty, list starts at the first product. |
startIndex |
Deprecated and ignored. Set the |
maxResults |
Deprecated and ignored. The page size is determined by the server. |
Request body
The request body must be empty.
Response body
Response listing all in-app products.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "kind": string, "inappproduct": [ { object ( |
Fields | |
---|---|
kind |
The kind of this response ("androidpublisher#inappproductsListResponse"). |
inappproduct[] |
All in-app products. |
tokenPagination |
Pagination token, to handle a number of products that is over one page. |
pageInfo |
Deprecated and unset. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher