Class PromotionsServiceClientImpl
PromotionsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Promotions.V1Beta
Assembly: Google.Shopping.Merchant.Promotions.V1Beta.dll
Syntax
public sealed class PromotionsServiceClientImpl : PromotionsServiceClient
Remarks
Service to manage promotions for products.
Constructors
PromotionsServiceClientImpl(PromotionsServiceClient, PromotionsServiceSettings, ILogger)
Constructs a client wrapper for the PromotionsService service, with the specified gRPC client and settings.
Declaration
public PromotionsServiceClientImpl(PromotionsService.PromotionsServiceClient grpcClient, PromotionsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
PromotionsService.PromotionsServiceClient | grpcClient | The underlying gRPC client. |
PromotionsServiceSettings | settings | The base PromotionsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC PromotionsService client
Declaration
public override PromotionsService.PromotionsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
PromotionsService.PromotionsServiceClient |
Overrides
Methods
GetPromotion(GetPromotionRequest, CallSettings)
Retrieves the promotion from your Merchant Center account.
After inserting or updating a promotion input, it may take several minutes before the updated promotion can be retrieved.
Declaration
public override Promotion GetPromotion(GetPromotionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPromotionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Promotion | The RPC response. |
Overrides
GetPromotionAsync(GetPromotionRequest, CallSettings)
Retrieves the promotion from your Merchant Center account.
After inserting or updating a promotion input, it may take several minutes before the updated promotion can be retrieved.
Declaration
public override Task<Promotion> GetPromotionAsync(GetPromotionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPromotionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Promotion> | A Task containing the RPC response. |
Overrides
InsertPromotion(InsertPromotionRequest, CallSettings)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public override Promotion InsertPromotion(InsertPromotionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Promotion | The RPC response. |
Overrides
InsertPromotionAsync(InsertPromotionRequest, CallSettings)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public override Task<Promotion> InsertPromotionAsync(InsertPromotionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Promotion> | A Task containing the RPC response. |
Overrides
ListPromotions(ListPromotionsRequest, CallSettings)
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.
Declaration
public override PagedEnumerable<ListPromotionsResponse, Promotion> ListPromotions(ListPromotionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListPromotionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListPromotionsResponse, Promotion> | A pageable sequence of Promotion resources. |
Overrides
ListPromotionsAsync(ListPromotionsRequest, CallSettings)
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.
Declaration
public override PagedAsyncEnumerable<ListPromotionsResponse, Promotion> ListPromotionsAsync(ListPromotionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListPromotionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListPromotionsResponse, Promotion> | A pageable asynchronous sequence of Promotion resources. |