v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13136338403.5 KB
monetization

Creates or updates a one-time product.

patch/androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}

Path parameters

packageNamestring required

Required. Immutable. Package name of the parent app.

productIdstring required

Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).

Query parameters

allowMissingboolean

Optional. If set to true, and the one-time product with the given package_name and product_id doesn't exist, the one-time product will be created. If a new one-time product is created, update_mask is ignored.

latencyTolerance'PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED' | 'PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE' | 'PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT'

Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive.

regionsVersion.versionstring

Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in this article. Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available.

updateMaskstring

Required. The list of fields to be updated.

Request body

packageNamestring

Required. Immutable. Package name of the parent app.

productIdstring

Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).

Response

Successful response