Index
LoyaltyCustomerMatchService(interface)AddressInfo(message)LoyaltyCustomer(message)LoyaltyCustomer.LoyaltyTier(enum)ManageLoyaltyCustomerMatchRequest(message)ManageLoyaltyCustomerMatchResponse(message)UserIdentifier(message)
LoyaltyCustomerMatchService
Manages customer loyalty program memberships for merchants.
This service allows merchants to manage the association between their customers and loyalty program tiers. This data is used to personalize the shopping experience on Google free listing surfaces.
The service is only available to selected merchants. 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.
| ManageLoyaltyCustomerMatch |
|---|
|
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 Operation Logic:
Privacy Note: To protect user privacy, this method consistently returns a
|
AddressInfo
Represents a customer’s physical address.
| Fields | |
|---|---|
given_name |
Optional. The given name of the customer. |
family_name |
Optional. The family name of the customer. |
city |
Optional. The city of the customer. |
state |
Optional. The state or province of the customer. |
region_code |
Optional. The Unicode country/region code (CLDR) of the customer, such as "US" or "CH". This field is case-insensitive. For more information, see https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html. |
postal_code |
Optional. The postal code (zip code) of the customer. Format Rules:
|
LoyaltyCustomer
Represents a customer’s loyalty information. Represents loyalty customer data in ManageLoyaltyCustomerMatch API, but is not a resource that can be retrieved or listed by other methods. The service is only available to selected merchants.
| Fields | |
|---|---|
user_identifier |
Required. The identifiers for the customer. |
loyalty_tier |
Required. The tier label of the loyalty tier the customer belongs to. |
point_balance |
Optional. The point balance of the loyalty customer. |
LoyaltyTier
The tier label of the loyalty tier the customer belongs to.
| Enums | |
|---|---|
LOYALTY_TIER_UNSPECIFIED |
Loyalty tier unspecified. |
TIER1 |
Loyalty tier 1. |
TIER2 |
Loyalty tier 2. |
TIER3 |
Loyalty tier 3. |
TIER4 |
Loyalty tier 4. |
TIER5 |
Loyalty tier 5. |
TIER6 |
Loyalty tier 6. |
TIER7 |
Loyalty tier 7. |
NON_MEMBER |
Disassociates the user from any loyalty tier. Only set to “NON_MEMBER” when the intent is to remove the user association from Google organic loyalty customer match experience. |
ManageLoyaltyCustomerMatchRequest
Request message for the ManageLoyaltyCustomerMatch method.
| Fields | |
|---|---|
parent |
Required. The parent account where this loyalty customer will be handled. Format: |
loyalty_customer |
Required. The loyalty customer to insert, update, or remove. |
ManageLoyaltyCustomerMatchResponse
Response message for the ManageLoyaltyCustomerMatch method.
| Fields | |
|---|---|
loyalty_customer |
The loyalty customer that was inserted, updated, or removed. If the customer's identifier cannot be matched to a Google account or if the user has not opted into loyalty personalization, this field will contain a default |
UserIdentifier
The user identifiers associated with the customer. At least one of the fields within this message must be provided.
| Fields | |
|---|---|
email_address |
Optional. The customer’s email address. |
address |
Optional. The customer’s physical address. |
phone_number |
Optional. The customer's phone number, in E.164 format (e.g., "+16502530000"). |