Class LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceBase
Base class for server-side implementations of LoyaltyCustomerMatchService
Namespace: Google.Shopping.Merchant.LoyaltyCustomers.V1
Assembly: Google.Shopping.Merchant.LoyaltyCustomers.V1.dll
Syntax
[BindServiceMethod(typeof(LoyaltyCustomerMatchService), "BindService")]
public abstract class LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceBase
Methods
ManageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest, ServerCallContext)
Manages (inserts, updates, or removes) a customer's loyalty tier information.
This method serves as a single interface for all changes to a customer's
loyalty status. The specific action (insert, update, or remove) is
determined by the current state of the merchant-to-customer association and
the loyalty_tier value provided in the request.
Operation Logic:
- Upsert (Insert/Update): Providing any valid tier other than
NON_MEMBERwill associate the customer with that tier. If an association already exists, it will be updated; otherwise, a new one will be created. - Removal: Setting
loyalty_tiertoNON_MEMBERwill remove any existing loyalty association for the customer.
Privacy Note: To protect user privacy, this method consistently returns
a 200 OK status with a default LoyaltyCustomer response if the
customer's identifier cannot be matched to a Google account or if the user
has not opted into loyalty personalization.
Declaration
public virtual Task<ManageLoyaltyCustomerMatchResponse> ManageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ManageLoyaltyCustomerMatchRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<ManageLoyaltyCustomerMatchResponse> | The response to send back to the client (wrapped by a task). |