Show / Hide Table of Contents

Class MonetizationResource.SubscriptionsResource.BasePlansResource

The "basePlans" collection of methods.

Inheritance
System.Object
MonetizationResource.SubscriptionsResource.BasePlansResource
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 BasePlansResource

Constructors

BasePlansResource(IClientService)

Constructs a new resource.

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

Properties

Offers

Gets the Offers resource.

Declaration
public virtual MonetizationResource.SubscriptionsResource.BasePlansResource.OffersResource Offers { get; }
Property Value
Type Description
MonetizationResource.SubscriptionsResource.BasePlansResource.OffersResource

Methods

Activate(ActivateBasePlanRequest, String, String, String)

Activates a base plan. Once activated, base plans will be available to new subscribers.

Declaration
public virtual MonetizationResource.SubscriptionsResource.BasePlansResource.ActivateRequest Activate(ActivateBasePlanRequest body, string packageName, string productId, string basePlanId)
Parameters
Type Name Description
ActivateBasePlanRequest body

The body of the request.

System.String packageName

Required. The parent app (package name) of the base plan to activate.

System.String productId

Required. The parent subscription (ID) of the base plan to activate.

System.String basePlanId

Required. The unique base plan ID of the base plan to activate.

Returns
Type Description
MonetizationResource.SubscriptionsResource.BasePlansResource.ActivateRequest

Deactivate(DeactivateBasePlanRequest, String, String, String)

Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription

Declaration
public virtual MonetizationResource.SubscriptionsResource.BasePlansResource.DeactivateRequest Deactivate(DeactivateBasePlanRequest body, string packageName, string productId, string basePlanId)
Parameters
Type Name Description
DeactivateBasePlanRequest body

The body of the request.

System.String packageName

Required. The parent app (package name) of the base plan to deactivate.

System.String productId

Required. The parent subscription (ID) of the base plan to deactivate.

System.String basePlanId

Required. The unique base plan ID of the base plan to deactivate.

Returns
Type Description
MonetizationResource.SubscriptionsResource.BasePlansResource.DeactivateRequest

Delete(String, String, String)

Deletes a base plan. Can only be done for draft base plans. This action is irreversible.

Declaration
public virtual MonetizationResource.SubscriptionsResource.BasePlansResource.DeleteRequest Delete(string packageName, string productId, string basePlanId)
Parameters
Type Name Description
System.String packageName

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

System.String productId

Required. The parent subscription (ID) of the base plan to delete.

System.String basePlanId

Required. The unique offer ID of the base plan to delete.

Returns
Type Description
MonetizationResource.SubscriptionsResource.BasePlansResource.DeleteRequest

MigratePrices(MigrateBasePlanPricesRequest, String, String, String)

Migrates subscribers who are receiving an historical subscription price to the currently-offered price for the specified region. Requests will cause price change notifications to be sent to users who are currently receiving an historical price older than the supplied timestamp. Subscribers who do not agree to the new price will have their subscription ended at the next renewal.

Declaration
public virtual MonetizationResource.SubscriptionsResource.BasePlansResource.MigratePricesRequest MigratePrices(MigrateBasePlanPricesRequest body, string packageName, string productId, string basePlanId)
Parameters
Type Name Description
MigrateBasePlanPricesRequest body

The body of the request.

System.String packageName

Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource.

System.String productId

Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource.

System.String basePlanId

Required. The unique base plan ID of the base plan to update prices on.

Returns
Type Description
MonetizationResource.SubscriptionsResource.BasePlansResource.MigratePricesRequest
In This Article
Back to top Generated by DocFX