Show / Hide Table of Contents

Class PromotionsService.PromotionsServiceBase

Base class for server-side implementations of PromotionsService

Inheritance
object
PromotionsService.PromotionsServiceBase
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Promotions.V1
Assembly: Google.Shopping.Merchant.Promotions.V1.dll
Syntax
[BindServiceMethod(typeof(PromotionsService), "BindService")]
public abstract class PromotionsService.PromotionsServiceBase

Methods

GetPromotion(GetPromotionRequest, ServerCallContext)

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 Task<Promotion> GetPromotion(GetPromotionRequest request, ServerCallContext context)
Parameters
Type Name Description
GetPromotionRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Promotion>

The response to send back to the client (wrapped by a task).

InsertPromotion(InsertPromotionRequest, ServerCallContext)

Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.

Declaration
public virtual Task<Promotion> InsertPromotion(InsertPromotionRequest request, ServerCallContext context)
Parameters
Type Name Description
InsertPromotionRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Promotion>

The response to send back to the client (wrapped by a task).

ListPromotions(ListPromotionsRequest, ServerCallContext)

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 Task<ListPromotionsResponse> ListPromotions(ListPromotionsRequest request, ServerCallContext context)
Parameters
Type Name Description
ListPromotionsRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<ListPromotionsResponse>

The response to send back to the client (wrapped by a task).

In this article
Back to top Generated by DocFX