Class PromotionsService.PromotionsServiceClient
Client for PromotionsService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Promotions.V1Beta
Assembly: Google.Shopping.Merchant.Promotions.V1Beta.dll
Syntax
public class PromotionsService.PromotionsServiceClient : ClientBase<PromotionsService.PromotionsServiceClient>
Constructors
PromotionsServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected PromotionsServiceClient()
PromotionsServiceClient(CallInvoker)
Creates a new client for PromotionsService that uses a custom CallInvoker
.
Declaration
public PromotionsServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
PromotionsServiceClient(ChannelBase)
Creates a new client for PromotionsService
Declaration
public PromotionsServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
PromotionsServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected PromotionsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetPromotion(GetPromotionRequest, CallOptions)
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 virtual Promotion GetPromotion(GetPromotionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetPromotionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Promotion | The response received from the server. |
GetPromotion(GetPromotionRequest, Metadata, DateTime?, CancellationToken)
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 virtual Promotion GetPromotion(GetPromotionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetPromotionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Promotion | The response received from the server. |
GetPromotionAsync(GetPromotionRequest, CallOptions)
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 virtual AsyncUnaryCall<Promotion> GetPromotionAsync(GetPromotionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetPromotionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Promotion> | The call object. |
GetPromotionAsync(GetPromotionRequest, Metadata, DateTime?, CancellationToken)
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 virtual AsyncUnaryCall<Promotion> GetPromotionAsync(GetPromotionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetPromotionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Promotion> | The call object. |
InsertPromotion(InsertPromotionRequest, CallOptions)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public virtual Promotion InsertPromotion(InsertPromotionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Promotion | The response received from the server. |
InsertPromotion(InsertPromotionRequest, Metadata, DateTime?, CancellationToken)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public virtual Promotion InsertPromotion(InsertPromotionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Promotion | The response received from the server. |
InsertPromotionAsync(InsertPromotionRequest, CallOptions)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public virtual AsyncUnaryCall<Promotion> InsertPromotionAsync(InsertPromotionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Promotion> | The call object. |
InsertPromotionAsync(InsertPromotionRequest, Metadata, DateTime?, CancellationToken)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public virtual AsyncUnaryCall<Promotion> InsertPromotionAsync(InsertPromotionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Promotion> | The call object. |
ListPromotions(ListPromotionsRequest, CallOptions)
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 virtual ListPromotionsResponse ListPromotions(ListPromotionsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListPromotionsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListPromotionsResponse | The response received from the server. |
ListPromotions(ListPromotionsRequest, Metadata, DateTime?, CancellationToken)
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 virtual ListPromotionsResponse ListPromotions(ListPromotionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListPromotionsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
ListPromotionsResponse | The response received from the server. |
ListPromotionsAsync(ListPromotionsRequest, CallOptions)
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 virtual AsyncUnaryCall<ListPromotionsResponse> ListPromotionsAsync(ListPromotionsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListPromotionsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListPromotionsResponse> | The call object. |
ListPromotionsAsync(ListPromotionsRequest, Metadata, DateTime?, CancellationToken)
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 virtual AsyncUnaryCall<ListPromotionsResponse> ListPromotionsAsync(ListPromotionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListPromotionsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListPromotionsResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override PromotionsService.PromotionsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
PromotionsService.PromotionsServiceClient |