Method: inappproducts.insert
Erstellt ein In-App-Produkt (ein verwaltetes Produkt oder ein Abo).
Diese Methode sollte nicht mehr zum Erstellen von Abos verwendet werden. Weitere Informationen findest du in diesem Artikel.
HTTP-Anfrage
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Paketname der App.
|
Abfrageparameter
Parameter |
autoConvertMissingPrices |
boolean
Wenn diese Option aktiviert ist, werden die Preise für alle Regionen, auf die die übergeordnete App ausgerichtet ist und für die kein Preis für dieses In-App-Produkt angegeben ist, automatisch auf der Grundlage des Standardpreises in die Zielwährung umgerechnet. Die Standardeinstellung ist "false".
|
Anfragetext
Der Anfragetext enthält eine Instanz von InAppProduct
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von InAppProduct
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-17 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]