Show / Hide Table of Contents

Class LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient

Client for LoyaltyCustomerMatchService

Inheritance
object
ClientBase
ClientBase<LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient>
LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient
Inherited Members
ClientBase<LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.LoyaltyCustomers.V1
Assembly: Google.Shopping.Merchant.LoyaltyCustomers.V1.dll
Syntax
public class LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient : ClientBase<LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient>

Constructors

LoyaltyCustomerMatchServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected LoyaltyCustomerMatchServiceClient()

LoyaltyCustomerMatchServiceClient(CallInvoker)

Creates a new client for LoyaltyCustomerMatchService that uses a custom CallInvoker.

Declaration
public LoyaltyCustomerMatchServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

LoyaltyCustomerMatchServiceClient(ChannelBase)

Creates a new client for LoyaltyCustomerMatchService

Declaration
public LoyaltyCustomerMatchServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

LoyaltyCustomerMatchServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected LoyaltyCustomerMatchServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

ManageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest, CallOptions)

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_MEMBER will 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_tier to NON_MEMBER will 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 ManageLoyaltyCustomerMatchResponse ManageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest request, CallOptions options)
Parameters
Type Name Description
ManageLoyaltyCustomerMatchRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ManageLoyaltyCustomerMatchResponse

The response received from the server.

ManageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest, Metadata, DateTime?, CancellationToken)

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_MEMBER will 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_tier to NON_MEMBER will 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 ManageLoyaltyCustomerMatchResponse ManageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ManageLoyaltyCustomerMatchRequest 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
ManageLoyaltyCustomerMatchResponse

The response received from the server.

ManageLoyaltyCustomerMatchAsync(ManageLoyaltyCustomerMatchRequest, CallOptions)

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_MEMBER will 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_tier to NON_MEMBER will 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 AsyncUnaryCall<ManageLoyaltyCustomerMatchResponse> ManageLoyaltyCustomerMatchAsync(ManageLoyaltyCustomerMatchRequest request, CallOptions options)
Parameters
Type Name Description
ManageLoyaltyCustomerMatchRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ManageLoyaltyCustomerMatchResponse>

The call object.

ManageLoyaltyCustomerMatchAsync(ManageLoyaltyCustomerMatchRequest, Metadata, DateTime?, CancellationToken)

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_MEMBER will 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_tier to NON_MEMBER will 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 AsyncUnaryCall<ManageLoyaltyCustomerMatchResponse> ManageLoyaltyCustomerMatchAsync(ManageLoyaltyCustomerMatchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ManageLoyaltyCustomerMatchRequest 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<ManageLoyaltyCustomerMatchResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient
Overrides
Grpc.Core.ClientBase<Google.Shopping.Merchant.LoyaltyCustomers.V1.LoyaltyCustomerMatchService.LoyaltyCustomerMatchServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)
In this article
Back to top Generated by DocFX