Method: inappproducts.insert
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
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.
[null,null,["Last updated 2024-12-17 UTC."],[[["Creates an in-app product, such as a managed product or a subscription, within a specified app."],["This method is deprecated for subscription creation; refer to the provided article for alternative approaches."],["The request utilizes an HTTP POST to a structured URL including the package name and optional query parameters for price conversion."],["Request and response bodies utilize the `InAppProduct` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details the process of creating an in-app product using the Android Publisher API. A `POST` request is sent to a specific URL containing the app's package name. The request body includes `InAppProduct` data. The request can include a boolean query parameter, `autoConvertMissingPrices`, to manage regional pricing. The response, upon success, returns the newly created `InAppProduct`. Authorization requires the `androidpublisher` OAuth scope. This method is deprecated for subscriptions.\n"]]