Method: inappproducts.insert

  • This page details how to create an in-app product using the API, noting that it should no longer be used for creating subscriptions.

  • The HTTP request is a POST to the specified URL, utilizing gRPC Transcoding syntax.

  • Path parameters include the packageName of the app.

  • Query parameters allow for autoConvertMissingPrices to automatically convert prices for unspecified regions.

  • The request and response bodies both contain an instance of InAppProduct.

Creates an in-app product (a managed product or a subscription).

This method should no longer be used to create subscriptions. See this article for more information.

HTTP request

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

Package name of the app.

Query parameters

Parameters
autoConvertMissingPrices

boolean

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.

Request body

The request body contains an instance of InAppProduct.

Response body

If successful, the response body contains a newly created instance of InAppProduct.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidpublisher