v1

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

Updates an existing subscription offer.

patch/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}

Path parameters

packageNamestring required

Required. Immutable. The package name of the app the parent subscription belongs to.

productIdstring required

Required. Immutable. The ID of the parent subscription this offer belongs to.

basePlanIdstring required

Required. Immutable. The ID of the base plan to which this offer is an extension.

offerIdstring required

Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.

Query parameters

allowMissingboolean

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

offerIdstring

Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.

basePlanIdstring

Required. Immutable. The ID of the base plan to which this offer is an extension.

productIdstring

Required. Immutable. The ID of the parent subscription this offer belongs to.

packageNamestring

Required. Immutable. The package name of the app the parent subscription belongs to.

state'STATE_UNSPECIFIED' | 'DRAFT' | 'ACTIVE' | 'INACTIVE'

Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.

Response

Successful response