Skip to main content

inappproducts

Overview

Nameinappproducts
TypeResource
Idgoogledevelopers.androidpublisher.inappproducts

Fields

NameDatatypeDescription
listingsobjectList of localized title and description data. Map key is the language of the localized data, as defined by BCP-47, e.g. "en-US".
purchaseTypestringThe type of the product, e.g. a recurring subscription.
skustringStock-keeping-unit (SKU) of the product, unique within an app.
trialPeriodstringTrial period, specified in ISO 8601 format. Acceptable values are anything between P7D (seven days) and P999D (999 days).
gracePeriodstringGrace period of the subscription, specified in ISO 8601 format. Allows developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values are P0D (zero days), P3D (three days), P7D (seven days), P14D (14 days), and P30D (30 days).
packageNamestringPackage name of the parent app.
pricesobjectPrices per buyer region. None of these can be zero, as in-app products are never free. Map key is region code, as defined by ISO 3166-2.
subscriptionPeriodstringSubscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one year).
subscriptionTaxesAndComplianceSettingsobjectDetails about taxation, Google Play policy and legal compliance for subscription products.
statusstringThe status of the product, e.g. whether it's active.
defaultLanguagestringDefault language of the localized data, as defined by BCP-47. e.g. "en-US".
defaultPriceobjectDefinition of a price, i.e. currency and units.
managedProductTaxesAndComplianceSettingsobjectDetails about taxation and legal compliance for managed products.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpackageName, skuGets an in-app product, which can be a managed product or a subscription.
listSELECTpackageNameLists 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.
insertINSERTpackageNameCreates an in-app product (i.e. a managed product or a subscriptions).
deleteDELETEpackageName, skuDeletes an in-app product (i.e. a managed product or a subscriptions).
patchEXECpackageName, skuPatches an in-app product (i.e. a managed product or a subscriptions).
updateEXECpackageName, skuUpdates an in-app product (i.e. a managed product or a subscriptions).