Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class LoyaltyProgram.
Loyalty program provided by a business.
Generated from protobuf message google.shopping.merchant.accounts.v1.Service.LoyaltyProgram
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1 \ ServiceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ program_label | stringThis is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers. | 
| ↳ loyalty_program_tiers | array<LoyaltyProgram\LoyaltyProgramTiers>Optional. Loyalty program tier of this shipping service. | 
getProgramLabel
This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers.
| Returns | |
|---|---|
| Type | Description | 
| string | |
hasProgramLabel
clearProgramLabel
setProgramLabel
This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getLoyaltyProgramTiers
Optional. Loyalty program tier of this shipping service.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Internal\RepeatedField | |
setLoyaltyProgramTiers
Optional. Loyalty program tier of this shipping service.
| Parameter | |
|---|---|
| Name | Description | 
| var | array<LoyaltyProgram\LoyaltyProgramTiers> | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |