Show / Hide Table of Contents

Class PromotionsServiceClientImpl

PromotionsService client wrapper implementation, for convenient use.

Inheritance
object
PromotionsServiceClient
PromotionsServiceClientImpl
Inherited Members
PromotionsServiceClient.DefaultEndpoint
PromotionsServiceClient.DefaultScopes
PromotionsServiceClient.ServiceMetadata
PromotionsServiceClient.CreateAsync(CancellationToken)
PromotionsServiceClient.Create()
PromotionsServiceClient.ShutdownDefaultChannelsAsync()
PromotionsServiceClient.InsertPromotionAsync(InsertPromotionRequest, CancellationToken)
PromotionsServiceClient.GetPromotionAsync(GetPromotionRequest, CancellationToken)
PromotionsServiceClient.GetPromotion(string, CallSettings)
PromotionsServiceClient.GetPromotionAsync(string, CallSettings)
PromotionsServiceClient.GetPromotionAsync(string, CancellationToken)
PromotionsServiceClient.GetPromotion(PromotionName, CallSettings)
PromotionsServiceClient.GetPromotionAsync(PromotionName, CallSettings)
PromotionsServiceClient.GetPromotionAsync(PromotionName, CancellationToken)
PromotionsServiceClient.ListPromotions(string, string, int?, CallSettings)
PromotionsServiceClient.ListPromotionsAsync(string, string, int?, CallSettings)
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Promotions.V1
Assembly: Google.Shopping.Merchant.Promotions.V1.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
PromotionsServiceClient.GrpcClient

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
PromotionsServiceClient.GetPromotion(GetPromotionRequest, CallSettings)

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
PromotionsServiceClient.GetPromotionAsync(GetPromotionRequest, CallSettings)

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
PromotionsServiceClient.InsertPromotion(InsertPromotionRequest, CallSettings)

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
PromotionsServiceClient.InsertPromotionAsync(InsertPromotionRequest, CallSettings)

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
PromotionsServiceClient.ListPromotions(ListPromotionsRequest, CallSettings)

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.

Overrides
PromotionsServiceClient.ListPromotionsAsync(ListPromotionsRequest, CallSettings)
In this article
Back to top Generated by DocFX