Class AccountsResource.PromotionsResource.ListRequest
Lists the promotions in your Merchant Center account. The response might contain fewer items than
specified by pageSize
. Rely on pageToken
to determine if there are more items to be requested. After
inserting or updating a promotion, it may take several minutes before the updated processed promotion
can be retrieved.
Inheritance
Inherited Members
Namespace: Google.Apis.Merchant.promotions_v1beta
Assembly: Google.Apis.Merchant.promotions_v1beta.dll
Syntax
public class AccountsResource.PromotionsResource.ListRequest : MerchantBaseServiceRequest<ListPromotionsResponse>, IClientServiceRequest<ListPromotionsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PageSize
Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
Output only. A page token, received from a previous ListPromotions
call. Provide this to retrieve
the subsequent page. When paginating, all other parameters provided to ListPromotions
must match
the call that provided the page token.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. The account to list processed promotions for. Format: accounts/{account}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()