Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class RateGroup.
Shipping rate group definitions. Only the last one is allowed to have an
emptyapplicable_shipping_labels, which means
"everything else". The otherapplicable_shipping_labelsmust
not overlap.
Generated from protobuf messagegoogle.shopping.merchant.accounts.v1.RateGroup
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ applicable_shipping_labels
array
Required. A list ofshipping labelsdefining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
Optional. A list of carrier rates that can be referred to bymain_tableorsingle_value.
↳ name
string
Optional. Name of the rate group. If set has to be unique within shipping service.
getApplicableShippingLabels
Required. A list ofshipping
labelsdefining the
products to which this rate group applies to. This is a disjunction: only
one of the labels has to match for the rate group to apply. May only be
empty for the last rate group of a service.
Required. A list ofshipping
labelsdefining the
products to which this rate group applies to. This is a disjunction: only
one of the labels has to match for the rate group to apply. May only be
empty for the last rate group of a service.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getSingleValue
The value of the rate group (For example flat rate $10). Can only be set
ifmain_tableandsubtablesare not set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant Accounts V1 Client - Class RateGroup (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1.RateGroup)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1.RateGroup)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1.RateGroup)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1.RateGroup)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1.RateGroup)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1.RateGroup)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1.RateGroup)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1.RateGroup)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1.RateGroup)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1.RateGroup)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1.RateGroup) \nReference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class RateGroup.\n\nShipping rate group definitions. Only the last one is allowed to have an\nempty `applicable_shipping_labels`, which means\n\"everything else\". The other `applicable_shipping_labels` must\nnot overlap.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1.RateGroup`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getApplicableShippingLabels\n\nRequired. A list of [shipping\nlabels](https://support.google.com/merchants/answer/6324504) defining the\nproducts to which this rate group applies to. This is a disjunction: only\none of the labels has to match for the rate group to apply. May only be\nempty for the last rate group of a service.\n\n### setApplicableShippingLabels\n\nRequired. A list of [shipping\nlabels](https://support.google.com/merchants/answer/6324504) defining the\nproducts to which this rate group applies to. This is a disjunction: only\none of the labels has to match for the rate group to apply. May only be\nempty for the last rate group of a service.\n\n### getSingleValue\n\nThe value of the rate group (For example flat rate $10). Can only be set\nif `main_table` and `subtables` are not set.\n\n### hasSingleValue\n\n### clearSingleValue\n\n### setSingleValue\n\nThe value of the rate group (For example flat rate $10). Can only be set\nif `main_table` and `subtables` are not set.\n\n### getMainTable\n\nA table defining the rate group, when `single_value` is not\nexpressive enough. Can only be set if `single_value` is not\nset.\n\n### hasMainTable\n\n### clearMainTable\n\n### setMainTable\n\nA table defining the rate group, when `single_value` is not\nexpressive enough. Can only be set if `single_value` is not\nset.\n\n### getSubtables\n\nOptional. A list of subtables referred to by `main_table`. Can only\nbe set if `main_table` is set.\n\n### setSubtables\n\nOptional. A list of subtables referred to by `main_table`. Can only\nbe set if `main_table` is set.\n\n### getCarrierRates\n\nOptional. A list of carrier rates that can be referred to by\n`main_table` or `single_value`.\n\n### setCarrierRates\n\nOptional. A list of carrier rates that can be referred to by\n`main_table` or `single_value`.\n\n### getName\n\nOptional. Name of the rate group.\n\nIf set has to be unique within shipping service.\n\n### hasName\n\n### clearName\n\n### setName\n\nOptional. Name of the rate group.\n\nIf set has to be unique within shipping service."]]