public class AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers extends Object
Constructor and Description |
---|
Offers() |
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.Activate activate(String packageName, String productId, String basePlanId, String offerId, ActivateSubscriptionOfferRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) of the offer to activate.productId
- Required. The parent subscription (ID) of the offer to activate.basePlanId
- Required. The parent base plan (ID) of the offer to activate.offerId
- Required. The unique offer ID of the offer to activate.content
- the ActivateSubscriptionOfferRequest
IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.BatchGet batchGet(String packageName, String productId, String basePlanId, BatchGetSubscriptionOffersRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) for which the subscriptions should be created or updated.
Must be equal to the package_name field on all the requests.productId
- Required. The product ID of the parent subscription, if all updated offers belong to the same
subscription. If this request spans multiple subscriptions, set this field to "-". Must be
set.basePlanId
- Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to
read offers from multiple base plans.content
- the BatchGetSubscriptionOffersRequest
IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.BatchUpdate batchUpdate(String packageName, String productId, String basePlanId, BatchUpdateSubscriptionOffersRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.packageName
- Required. The parent app (package name) of the updated subscription offers. Must be equal to the
package_name field on all the updated SubscriptionOffer resources.productId
- Required. The product ID of the parent subscription, if all updated offers belong to the same
subscription. If this request spans multiple subscriptions, set this field to "-". Must be
set.basePlanId
- Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-'
to update offers from multiple base plans.content
- the BatchUpdateSubscriptionOffersRequest
IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.BatchUpdateStates batchUpdateStates(String packageName, String productId, String basePlanId, BatchUpdateSubscriptionOfferStatesRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.packageName
- Required. The parent app (package name) of the updated subscription offers. Must be equal to the
package_name field on all the updated SubscriptionOffer resources.productId
- Required. The product ID of the parent subscription, if all updated offers belong to the same
subscription. If this request spans multiple subscriptions, set this field to "-". Must be
set.basePlanId
- Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-'
to update offers from multiple base plans.content
- the BatchUpdateSubscriptionOfferStatesRequest
IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.Create create(String packageName, String productId, String basePlanId, SubscriptionOffer content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) for which the offer should be created. Must be equal to the
package_name field on the Subscription resource.productId
- Required. The parent subscription (ID) for which the offer should be created. Must be equal to the
product_id field on the SubscriptionOffer resource.basePlanId
- Required. The parent base plan (ID) for which the offer should be created. Must be equal to the
base_plan_id field on the SubscriptionOffer resource.content
- the SubscriptionOffer
IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.Deactivate deactivate(String packageName, String productId, String basePlanId, String offerId, DeactivateSubscriptionOfferRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) of the offer to deactivate.productId
- Required. The parent subscription (ID) of the offer to deactivate.basePlanId
- Required. The parent base plan (ID) of the offer to deactivate.offerId
- Required. The unique offer ID of the offer to deactivate.content
- the DeactivateSubscriptionOfferRequest
IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.Delete delete(String packageName, String productId, String basePlanId, String offerId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) of the offer to delete.productId
- Required. The parent subscription (ID) of the offer to delete.basePlanId
- Required. The parent base plan (ID) of the offer to delete.offerId
- Required. The unique offer ID of the offer to delete.IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.Get get(String packageName, String productId, String basePlanId, String offerId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) of the offer to get.productId
- Required. The parent subscription (ID) of the offer to get.basePlanId
- Required. The parent base plan (ID) of the offer to get.offerId
- Required. The unique offer ID of the offer to get.IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.List list(String packageName, String productId, String basePlanId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) for which the subscriptions should be read.productId
- Required. The parent subscription (ID) for which the offers should be read. May be specified as '-'
to read all offers under an app.basePlanId
- Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to
read all offers under a subscription or an app. Must be specified as '-' if product_id is
specified as '-'.IOException
public AndroidPublisher.Monetization.Subscriptions.BasePlans.Offers.Patch patch(String packageName, String productId, String basePlanId, String offerId, SubscriptionOffer content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. Immutable. The package name of the app the parent subscription belongs to.productId
- Required. Immutable. The ID of the parent subscription this offer belongs to.basePlanId
- Required. Immutable. The ID of the base plan to which this offer is an extension.offerId
- Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.content
- the SubscriptionOffer
IOException
Copyright © 2011–2025 Google. All rights reserved.