Class LoyaltyCustomerMatchServiceGrpc.LoyaltyCustomerMatchServiceBlockingStub (0.3.0)
public static final class LoyaltyCustomerMatchServiceGrpc.LoyaltyCustomerMatchServiceBlockingStub extends AbstractBlockingStub<LoyaltyCustomerMatchServiceGrpc.LoyaltyCustomerMatchServiceBlockingStub>
A stub to allow clients to do limited synchronous rpc calls to service
LoyaltyCustomerMatchService.
Manages customer loyalty program memberships for merchants.
This service allows all merchants, including non-advertisers, to share their
first-party customer data of loyalty program members. Google uses this data
to personalize organic free listing shopping experiences, in compliance with
the Merchant Center Terms of
Service.
The service follows a non-standard, imperative pattern,
exposing a single ManageLoyaltyCustomerMatch method rather than
conventional resource identifiers and CRUD operations. This design protects
user privacy by preventing the discovery of a customer's presence or
membership status through standard GET or LIST methods.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractBlockingStub >
LoyaltyCustomerMatchServiceGrpc.LoyaltyCustomerMatchServiceBlockingStub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
protected LoyaltyCustomerMatchServiceGrpc.LoyaltyCustomerMatchServiceBlockingStub build(Channel channel, CallOptions callOptions)
| Parameters |
| Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
public ManageLoyaltyCustomerMatchResponse manageLoyaltyCustomerMatch(ManageLoyaltyCustomerMatchRequest request)
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-06 UTC."],[],[]]