Required. A list of inclusive order price upper bounds. The last price's value can be infinity by setting price amount_micros = -1. For example[{"amount_micros": 10000000, "currency_code": "USD"}, {"amount_micros": 500000000, "currency_code": "USD"}, {"amount_micros": -1, "currency_code": "USD"}]represents the headers "<= $10", "<= $500", and "> $500". All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
Required. A list of inclusive order weight upper bounds. The last weight's value can be infinity by setting price amount_micros = -1. For example[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000, "unit": "kg"}, {"amount_micros": -1, "unit": "kg"}]represents the headers "<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
↳ number_of_items
array
Required. A list of inclusive number of items upper bounds. The last value can be"infinity". For example["10", "50", "infinity"]represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
↳ postal_code_group_names
array
Required. A list of postal group names. The last value can be"all other locations". Example:["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
getPrices
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
Required. A list of inclusive number of items upper bounds. The last value
can be"infinity". For example["10", "50", "infinity"]represents the headers
"<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
only be set if all other fields are not set.
Required. A list of inclusive number of items upper bounds. The last value
can be"infinity". For example["10", "50", "infinity"]represents the headers
"<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
only be set if all other fields are not set.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getPostalCodeGroupNames
Required. A list of postal group names. The last value can be"all other locations". Example:["zone 1", "zone 2", "all other locations"]. The referred
postal code groups must match the delivery country of the service. Must
be non-empty. Can only be set if all other fields are not set.
Required. A list of postal group names. The last value can be"all other locations". Example:["zone 1", "zone 2", "all other locations"]. The referred
postal code groups must match the delivery country of the service. Must
be non-empty. Can only be set if all other fields are not set.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getLocations
Required. A list of location ID sets. Must be non-empty. Can only be set if
all other fields are 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 V1beta Client - Class Headers (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1beta.Headers)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1beta.Headers)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1beta.Headers)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1beta.Headers)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1beta.Headers)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1beta.Headers)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1beta.Headers)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1beta.Headers)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1beta.Headers)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1beta.Headers)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1beta.Headers) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class Headers.\n\nA non-empty list of row or column headers for a table.\n\nExactly one of `prices`, `weights`,\n`num_items`, `postal_code_group_names`, or\n`location` must be set.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1beta.Headers`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPrices\n\nRequired. A list of inclusive order price upper bounds. The last price's\nvalue can be infinity by setting price amount_micros = -1. For example\n`[{\"amount_micros\": 10000000, \"currency_code\": \"USD\"},\n{\"amount_micros\": 500000000, \"currency_code\": \"USD\"},\n{\"amount_micros\": -1, \"currency_code\": \"USD\"}]` represents the headers\n\"\\\u003c= $10\", \"\\\u003c= $500\", and \"\\\u003e $500\". All prices within a service must have\nthe same currency. Must be non-empty. Must be positive except -1. Can only\nbe set if all other fields are not set.\n\n### setPrices\n\nRequired. A list of inclusive order price upper bounds. The last price's\nvalue can be infinity by setting price amount_micros = -1. For example\n`[{\"amount_micros\": 10000000, \"currency_code\": \"USD\"},\n{\"amount_micros\": 500000000, \"currency_code\": \"USD\"},\n{\"amount_micros\": -1, \"currency_code\": \"USD\"}]` represents the headers\n\"\\\u003c= $10\", \"\\\u003c= $500\", and \"\\\u003e $500\". All prices within a service must have\nthe same currency. Must be non-empty. Must be positive except -1. Can only\nbe set if all other fields are not set.\n\n### getWeights\n\nRequired. A list of inclusive order weight upper bounds. The last weight's\nvalue can be infinity by setting price amount_micros = -1. For example\n`[{\"amount_micros\": 10000000, \"unit\": \"kg\"}, {\"amount_micros\": 50000000,\n\"unit\": \"kg\"},\n{\"amount_micros\": -1, \"unit\": \"kg\"}]` represents the headers\n\"\\\u003c= 10kg\", \"\\\u003c= 50kg\", and \"\\\u003e 50kg\". All weights within a service must have\nthe same unit. Must be non-empty. Must be positive except -1. Can only be\nset if all other fields are not set.\n\n### setWeights\n\nRequired. A list of inclusive order weight upper bounds. The last weight's\nvalue can be infinity by setting price amount_micros = -1. For example\n`[{\"amount_micros\": 10000000, \"unit\": \"kg\"}, {\"amount_micros\": 50000000,\n\"unit\": \"kg\"},\n{\"amount_micros\": -1, \"unit\": \"kg\"}]` represents the headers\n\"\\\u003c= 10kg\", \"\\\u003c= 50kg\", and \"\\\u003e 50kg\". All weights within a service must have\nthe same unit. Must be non-empty. Must be positive except -1. Can only be\nset if all other fields are not set.\n\n### getNumberOfItems\n\nRequired. A list of inclusive number of items upper bounds. The last value\ncan be\n`\"infinity\"`. For example\n`[\"10\", \"50\", \"infinity\"]` represents the headers\n\"\\\u003c= 10 items\", \"\\\u003c= 50 items\", and \"\\\u003e 50 items\". Must be non-empty. Can\nonly be set if all other fields are not set.\n\n### setNumberOfItems\n\nRequired. A list of inclusive number of items upper bounds. The last value\ncan be\n`\"infinity\"`. For example\n`[\"10\", \"50\", \"infinity\"]` represents the headers\n\"\\\u003c= 10 items\", \"\\\u003c= 50 items\", and \"\\\u003e 50 items\". Must be non-empty. Can\nonly be set if all other fields are not set.\n\n### getPostalCodeGroupNames\n\nRequired. A list of postal group names. The last value can be\n`\"all other locations\"`. Example:\n`[\"zone 1\", \"zone 2\", \"all other locations\"]`. The referred\npostal code groups must match the delivery country of the service. Must\nbe non-empty. Can only be set if all other fields are not set.\n\n### setPostalCodeGroupNames\n\nRequired. A list of postal group names. The last value can be\n`\"all other locations\"`. Example:\n`[\"zone 1\", \"zone 2\", \"all other locations\"]`. The referred\npostal code groups must match the delivery country of the service. Must\nbe non-empty. Can only be set if all other fields are not set.\n\n### getLocations\n\nRequired. A list of location ID sets. Must be non-empty. Can only be set if\nall other fields are not set.\n\n### setLocations\n\nRequired. A list of location ID sets. Must be non-empty. Can only be set if\nall other fields are not set."]]