Class MonetizationResource.SubscriptionsResource
The "subscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class MonetizationResource.SubscriptionsResource
Constructors
SubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SubscriptionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
BasePlans
Gets the BasePlans resource.
Declaration
public virtual MonetizationResource.SubscriptionsResource.BasePlansResource BasePlans { get; }
Property Value
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.BasePlansResource |
Methods
Archive(ArchiveSubscriptionRequest, string, string)
Archives a subscription. Can only be done if at least one base plan was active in the past, and no base plan is available for new or existing subscribers currently. This action is irreversible, and the subscription ID will remain reserved.
Declaration
public virtual MonetizationResource.SubscriptionsResource.ArchiveRequest Archive(ArchiveSubscriptionRequest body, string packageName, string productId)
Parameters
Type | Name | Description |
---|---|---|
ArchiveSubscriptionRequest | body | The body of the request. |
string | packageName | Required. The parent app (package name) of the app of the subscription to delete. |
string | productId | Required. The unique product ID of the subscription to delete. |
Returns
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.ArchiveRequest |
Create(Subscription, string)
Creates a new subscription. Newly added base plans will remain in draft state until activated.
Declaration
public virtual MonetizationResource.SubscriptionsResource.CreateRequest Create(Subscription body, string packageName)
Parameters
Type | Name | Description |
---|---|---|
Subscription | body | The body of the request. |
string | packageName | Required. The parent app (package name) for which the subscription should be created. Must be equal to the package_name field on the Subscription resource. |
Returns
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.CreateRequest |
Delete(string, string)
Deletes a subscription. A subscription can only be deleted if it has never had a base plan published.
Declaration
public virtual MonetizationResource.SubscriptionsResource.DeleteRequest Delete(string packageName, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | Required. The parent app (package name) of the app of the subscription to delete. |
string | productId | Required. The unique product ID of the subscription to delete. |
Returns
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.DeleteRequest |
Get(string, string)
Reads a single subscription.
Declaration
public virtual MonetizationResource.SubscriptionsResource.GetRequest Get(string packageName, string productId)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | Required. The parent app (package name) of the subscription to get. |
string | productId | Required. The unique product ID of the subscription to get. |
Returns
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.GetRequest |
List(string)
Lists all subscriptions under a given app.
Declaration
public virtual MonetizationResource.SubscriptionsResource.ListRequest List(string packageName)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | Required. The parent app (package name) for which the subscriptions should be read. |
Returns
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.ListRequest |
Patch(Subscription, string, string)
Updates an existing subscription.
Declaration
public virtual MonetizationResource.SubscriptionsResource.PatchRequest Patch(Subscription body, string packageName, string productId)
Parameters
Type | Name | Description |
---|---|---|
Subscription | body | The body of the request. |
string | packageName | Immutable. Package name of the parent app. |
string | productId | 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. |
Returns
Type | Description |
---|---|
MonetizationResource.SubscriptionsResource.PatchRequest |