Show / Hide Table of Contents

Class PurchasesResource.SubscriptionsResource

The "subscriptions" collection of methods.

Inheritance
object
PurchasesResource.SubscriptionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class PurchasesResource.SubscriptionsResource

Constructors

SubscriptionsResource(IClientService)

Constructs a new resource.

Declaration
public SubscriptionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Acknowledge(SubscriptionPurchasesAcknowledgeRequest, string, string, string)

Acknowledges a subscription purchase.

Declaration
public virtual PurchasesResource.SubscriptionsResource.AcknowledgeRequest Acknowledge(SubscriptionPurchasesAcknowledgeRequest body, string packageName, string subscriptionId, string token)
Parameters
Type Name Description
SubscriptionPurchasesAcknowledgeRequest body

The body of the request.

string packageName

The package name of the application for which this subscription was purchased (for example, 'com.some.thing').

string subscriptionId

Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with add-ons. The purchased subscription ID (for example, 'monthly001').

string token

The token provided to the user's device when the subscription was purchased.

Returns
Type Description
PurchasesResource.SubscriptionsResource.AcknowledgeRequest

Cancel(string, string, string)

Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer version is available at purchases.subscriptionsv2.cancel for better client library support.

Declaration
public virtual PurchasesResource.SubscriptionsResource.CancelRequest Cancel(string packageName, string subscriptionId, string token)
Parameters
Type Name Description
string packageName

The package name of the application for which this subscription was purchased (for example, 'com.some.thing').

string subscriptionId

Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with add-ons. The purchased subscription ID (for example, 'monthly001').

string token

The token provided to the user's device when the subscription was purchased.

Returns
Type Description
PurchasesResource.SubscriptionsResource.CancelRequest

Defer(SubscriptionPurchasesDeferRequest, string, string, string)

Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase until a specified future expiration time.

Declaration
public virtual PurchasesResource.SubscriptionsResource.DeferRequest Defer(SubscriptionPurchasesDeferRequest body, string packageName, string subscriptionId, string token)
Parameters
Type Name Description
SubscriptionPurchasesDeferRequest body

The body of the request.

string packageName

The package name of the application for which this subscription was purchased (for example, 'com.some.thing').

string subscriptionId

The purchased subscription ID (for example, 'monthly001').

string token

The token provided to the user's device when the subscription was purchased.

Returns
Type Description
PurchasesResource.SubscriptionsResource.DeferRequest
In this article
Back to top Generated by DocFX