Class AssociationsessionsResource.StartRequest
Create an association session for initiating an association with an AdSense user.
Inheritance
AssociationsessionsResource.StartRequest
Inherited Members
Namespace: Google.Apis.AdSenseHost.v4_1
Assembly: Google.Apis.AdSenseHost.v4_1.dll
Syntax
public class AssociationsessionsResource.StartRequest : AdSenseHostBaseServiceRequest<AssociationSession>, IClientServiceRequest<AssociationSession>, IClientServiceRequest
Constructors
StartRequest(IClientService, ProductCodeEnum, string)
Constructs a new Start request.
Declaration
public StartRequest(IClientService service, AssociationsessionsResource.StartRequest.ProductCodeEnum productCode, string websiteUrl)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AssociationsessionsResource.StartRequest.ProductCodeEnum | productCode | |
string | websiteUrl |
Properties
CallbackUrl
The URL to redirect the user to once association is completed. It receives a token parameter that can then be used to retrieve the associated account.
Declaration
[RequestParameter("callbackUrl", RequestParameterType.Query)]
public virtual string CallbackUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AdSenseHost.v4_1.Data.AssociationSession>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AdSenseHost.v4_1.Data.AssociationSession>.MethodName
ProductCode
Products to associate with the user.
Declaration
[RequestParameter("productCode", RequestParameterType.Query)]
public virtual AssociationsessionsResource.StartRequest.ProductCodeEnum ProductCode { get; }
Property Value
Type | Description |
---|---|
AssociationsessionsResource.StartRequest.ProductCodeEnum |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AdSenseHost.v4_1.Data.AssociationSession>.RestPath
UserLocale
The preferred locale of the user.
Declaration
[RequestParameter("userLocale", RequestParameterType.Query)]
public virtual string UserLocale { get; set; }
Property Value
Type | Description |
---|---|
string |
WebsiteLocale
The locale of the user's hosted website.
Declaration
[RequestParameter("websiteLocale", RequestParameterType.Query)]
public virtual string WebsiteLocale { get; set; }
Property Value
Type | Description |
---|---|
string |
WebsiteUrl
The URL of the user's hosted website.
Declaration
[RequestParameter("websiteUrl", RequestParameterType.Query)]
public virtual string WebsiteUrl { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Start parameter list.
Declaration
protected override void InitParameters()