Class MonetizationResource.SubscriptionsResource.BasePlansResource.OffersResource.ActivateRequest
Activates a subscription offer. Once activated, subscription offers will be available to new subscribers.
Inheritance
System.Object
MonetizationResource.SubscriptionsResource.BasePlansResource.OffersResource.ActivateRequest
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 ActivateRequest : AndroidPublisherBaseServiceRequest<SubscriptionOffer>, IClientServiceRequest<SubscriptionOffer>, IClientServiceRequest
Constructors
ActivateRequest(IClientService, ActivateSubscriptionOfferRequest, String, String, String, String)
Constructs a new Activate request.
Declaration
public ActivateRequest(IClientService service, ActivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ActivateSubscriptionOfferRequest | body | |
System.String | packageName | |
System.String | productId | |
System.String | basePlanId | |
System.String | offerId |
Properties
BasePlanId
Required. The parent base plan (ID) of the offer to activate.
Declaration
[RequestParameter("basePlanId", RequestParameterType.Path)]
public virtual string BasePlanId { get; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer>.MethodName
OfferId
Required. The unique offer ID of the offer to activate.
Declaration
[RequestParameter("offerId", RequestParameterType.Path)]
public virtual string OfferId { get; }
Property Value
Type | Description |
---|---|
System.String |
PackageName
Required. The parent app (package name) of the offer to activate.
Declaration
[RequestParameter("packageName", RequestParameterType.Path)]
public virtual string PackageName { get; }
Property Value
Type | Description |
---|---|
System.String |
ProductId
Required. The parent subscription (ID) of the offer to activate.
Declaration
[RequestParameter("productId", RequestParameterType.Path)]
public virtual string ProductId { get; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer>.GetBody()
InitParameters()
Initializes Activate parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.AndroidPublisher.v3.AndroidPublisherBaseServiceRequest<Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer>.InitParameters()