Show / Hide Table of Contents

Class MonetizationResource.SubscriptionsResource

The "subscriptions" collection of methods.

Inheritance
System.Object
MonetizationResource.SubscriptionsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class 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.

System.String packageName

Required. The parent app (package name) of the app of the subscription to delete.

System.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.

System.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
System.String packageName

Required. The parent app (package name) of the app of the subscription to delete.

System.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
System.String packageName

Required. The parent app (package name) of the subscription to get.

System.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
System.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.

System.String packageName

Immutable. Package name of the parent app.

System.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
In This Article
Back to top Generated by DocFX