Class RecommendationsResource.GenerateRequest
Generates recommendations for a merchant.
Inheritance
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class RecommendationsResource.GenerateRequest : ShoppingContentBaseServiceRequest<GenerateRecommendationsResponse>, IClientServiceRequest<GenerateRecommendationsResponse>, IClientServiceRequest
Constructors
GenerateRequest(IClientService, long)
Constructs a new Generate request.
Declaration
public GenerateRequest(IClientService service, long merchantId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
long | merchantId |
Properties
AllowedTag
Optional. List of allowed tags. Tags are a set of predefined strings that describe the category that individual recommendation types belong to. User can specify zero or more tags in this field to indicate what categories of recommendations they want to receive. Current list of supported tags: - TREND
Declaration
[RequestParameter("allowedTag", RequestParameterType.Query)]
public virtual Repeatable<string> AllowedTag { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<string> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LanguageCode
Optional. Language code of the client. If not set, the result will be in default language (English). This language code affects all fields prefixed with "localized". This should be set to ISO 639-1 country code. List of currently verified supported language code: en, fr, cs, da, de, es, it, nl, no, pl, pt, pt, fi, sv, vi, tr, th, ko, zh-CN, zh-TW, ja, id, hi
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MerchantId
Required. The ID of the account to fetch recommendations for.
Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual long MerchantId { get; }
Property Value
Type | Description |
---|---|
long |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Generate parameter list.
Declaration
protected override void InitParameters()