v1

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

Updates an existing subscription.

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

Path parameters

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 be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.

Query parameters

allowMissingboolean

Optional. If set to true, and the subscription with the given package_name and product_id doesn't exist, the subscription will be created. If a new subscription 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 update. 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

Immutable. Package name of the parent app.

productIdstring

Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.

archivedboolean

Output only. Deprecated: subscription archiving is not supported.

Response

Successful response