public class AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers extends Object
Constructor and Description |
---|
Offers() |
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.Activate activate(String packageName, String productId, String purchaseOptionId, String offerId, ActivateOneTimeProductOfferRequest 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 one-time product (ID) of the offer to activate.purchaseOptionId
- Required. The parent purchase option (ID) of the offer to activate.offerId
- Required. The offer ID of the offer to activate.content
- the ActivateOneTimeProductOfferRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.BatchDelete batchDelete(String packageName, String productId, String purchaseOptionId, BatchDeleteOneTimeProductOffersRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.packageName
- Required. The parent app (package name) of the offers to delete. Must be equal to the package_name
field on all the OneTimeProductOffer resources.productId
- Required. The product ID of the parent one-time product, if all offers to delete belong to the same
product. If this request spans multiple one-time products, set this field to "-".purchaseOptionId
- Required. The parent purchase option (ID) for which the offers should be deleted. May be specified
as '-' to update offers from multiple purchase options.content
- the BatchDeleteOneTimeProductOffersRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.BatchGet batchGet(String packageName, String productId, String purchaseOptionId, BatchGetOneTimeProductOffersRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) of the updated offers. Must be equal to the package_name
field on all the updated OneTimeProductOffer resources.productId
- Required. The product ID of the parent one-time product, if all updated offers belong to the same
product. If this request spans multiple one-time products, set this field to "-".purchaseOptionId
- Required. The parent purchase option (ID) for which the offers should be updated. May be specified
as '-' to update offers from multiple purchase options.content
- the BatchGetOneTimeProductOffersRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.BatchUpdate batchUpdate(String packageName, String productId, String purchaseOptionId, BatchUpdateOneTimeProductOffersRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.packageName
- Required. The parent app (package name) of the updated offers. Must be equal to the package_name
field on all the updated OneTimeProductOffer resources.productId
- Required. The product ID of the parent one-time product, if all updated offers belong to the same
product. If this request spans multiple one-time products, set this field to "-".purchaseOptionId
- Required. The parent purchase option (ID) for which the offers should be updated. May be specified
as '-' to update offers from multiple purchase options.content
- the BatchUpdateOneTimeProductOffersRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.BatchUpdateStates batchUpdateStates(String packageName, String productId, String purchaseOptionId, BatchUpdateOneTimeProductOfferStatesRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.packageName
- Required. The parent app (package name) of the updated one-time product offers.productId
- Required. The product ID of the parent one-time product, if all updated offers belong to the same
one-time product. If this batch update spans multiple one-time products, set this field to
"-".purchaseOptionId
- Required. The purchase option ID of the parent purchase option, if all updated offers belong to the
same purchase option. If this batch update spans multiple purchase options, set this field
to "-".content
- the BatchUpdateOneTimeProductOfferStatesRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.Cancel cancel(String packageName, String productId, String purchaseOptionId, String offerId, CancelOneTimeProductOfferRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) of the offer to cancel.productId
- Required. The parent one-time product (ID) of the offer to cancel.purchaseOptionId
- Required. The parent purchase option (ID) of the offer to cancel.offerId
- Required. The offer ID of the offer to cancel.content
- the CancelOneTimeProductOfferRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.Deactivate deactivate(String packageName, String productId, String purchaseOptionId, String offerId, DeactivateOneTimeProductOfferRequest 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 one-time product (ID) of the offer to deactivate.purchaseOptionId
- Required. The parent purchase option (ID) of the offer to deactivate.offerId
- Required. The offer ID of the offer to deactivate.content
- the DeactivateOneTimeProductOfferRequest
IOException
public AndroidPublisher.Monetization.Onetimeproducts.PurchaseOptions.Offers.List list(String packageName, String productId, String purchaseOptionId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- Required. The parent app (package name) for which the offers should be read.productId
- Required. The parent one-time product (ID) for which the offers should be read. May be specified as
'-' to read all offers under an app.purchaseOptionId
- Required. The parent purchase option (ID) for which the offers should be read. May be specified as
'-' to read all offers under a one-time product or an app. Must be specified as '-' if
product_id is specified as '-'.IOException
Copyright © 2011–2025 Google. All rights reserved.