Class MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource
The "offers" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource
Constructors
OffersResource(IClientService)
Constructs a new resource.
Declaration
public OffersResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Activate(ActivateOneTimeProductOfferRequest, string, string, string, string)
Activates a one-time product offer.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.ActivateRequest Activate(ActivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId)
Parameters
| Type | Name | Description |
|---|---|---|
| ActivateOneTimeProductOfferRequest | body | The body of the request. |
| string | packageName | Required. The parent app (package name) of the offer to activate. |
| string | productId | Required. The parent one-time product (ID) of the offer to activate. |
| string | purchaseOptionId | Required. The parent purchase option (ID) of the offer to activate. |
| string | offerId | Required. The offer ID of the offer to activate. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.ActivateRequest |
BatchDelete(BatchDeleteOneTimeProductOffersRequest, string, string, string)
Deletes one or more one-time product offers.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchDeleteRequest BatchDelete(BatchDeleteOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeleteOneTimeProductOffersRequest | body | The body of the request. |
| string | 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. |
| string | 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 "-". |
| string | 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. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchDeleteRequest |
BatchGet(BatchGetOneTimeProductOffersRequest, string, string, string)
Reads one or more one-time product offers.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchGetRequest BatchGet(BatchGetOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetOneTimeProductOffersRequest | body | The body of the request. |
| string | 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. |
| string | 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 "-". |
| string | 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. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchGetRequest |
BatchUpdate(BatchUpdateOneTimeProductOffersRequest, string, string, string)
Creates or updates one or more one-time product offers.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchUpdateRequest BatchUpdate(BatchUpdateOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateOneTimeProductOffersRequest | body | The body of the request. |
| string | 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. |
| string | 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 "-". |
| string | 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. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchUpdateRequest |
BatchUpdateStates(BatchUpdateOneTimeProductOfferStatesRequest, string, string, string)
Updates a batch of one-time product offer states.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchUpdateStatesRequest BatchUpdateStates(BatchUpdateOneTimeProductOfferStatesRequest body, string packageName, string productId, string purchaseOptionId)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateOneTimeProductOfferStatesRequest | body | The body of the request. |
| string | packageName | Required. The parent app (package name) of the updated one-time product offers. |
| string | 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 "-". |
| string | 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 "-". |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.BatchUpdateStatesRequest |
Cancel(CancelOneTimeProductOfferRequest, string, string, string, string)
Cancels a one-time product offer.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.CancelRequest Cancel(CancelOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId)
Parameters
| Type | Name | Description |
|---|---|---|
| CancelOneTimeProductOfferRequest | body | The body of the request. |
| string | packageName | Required. The parent app (package name) of the offer to cancel. |
| string | productId | Required. The parent one-time product (ID) of the offer to cancel. |
| string | purchaseOptionId | Required. The parent purchase option (ID) of the offer to cancel. |
| string | offerId | Required. The offer ID of the offer to cancel. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.CancelRequest |
Deactivate(DeactivateOneTimeProductOfferRequest, string, string, string, string)
Deactivates a one-time product offer.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.DeactivateRequest Deactivate(DeactivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId)
Parameters
| Type | Name | Description |
|---|---|---|
| DeactivateOneTimeProductOfferRequest | body | The body of the request. |
| string | packageName | Required. The parent app (package name) of the offer to deactivate. |
| string | productId | Required. The parent one-time product (ID) of the offer to deactivate. |
| string | purchaseOptionId | Required. The parent purchase option (ID) of the offer to deactivate. |
| string | offerId | Required. The offer ID of the offer to deactivate. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.DeactivateRequest |
List(string, string, string)
Lists all offers under a given app, product, or purchase option.
Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.ListRequest List(string packageName, string productId, string purchaseOptionId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | packageName | Required. The parent app (package name) for which the offers should be read. |
| string | 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. |
| string | 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 '-'. |
Returns
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource.OffersResource.ListRequest |