- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- InappproductsUpdateRequest
- Try it!
Updates or inserts one or more in-app products (managed products or subscriptions).
Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
This method should no longer be used to update subscriptions. See this article for more information.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
packageName |
Package name of the app. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
Required. Individual update requests. At least one request is required. Can contain up to 100 requests. All requests must correspond to different in-app products. |
Response body
Response for a batch in-app product update.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"inappproducts": [
{
object ( |
Fields | |
---|---|
inappproducts[] |
The updated or inserted in-app products. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
InappproductsUpdateRequest
Request to update an in-app product.
JSON representation |
---|
{ "packageName": string, "sku": string, "autoConvertMissingPrices": boolean, "inappproduct": { object ( |
Fields | |
---|---|
packageName |
Package name of the app. |
sku |
Unique identifier for the in-app product. |
autoConvertMissingPrices |
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. |
inappproduct |
The new in-app product. |
allowMissing |
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. |
latencyTolerance |
Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. |