The geographic region to which a shipping rate applies. Seeregionfor more information.
↳ service
string
A free-form description of the service class or delivery speed.
↳ location_id
int|string
The numeric ID of a location that the shipping rate applies to as defined in theAdWords API.
↳ location_group_name
string
The location where the shipping is applicable, represented by a location group name.
↳ postal_code
string
The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
↳ min_handling_time
int|string
Minimum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time.minHandlingTimecan only be present together withmaxHandlingTime; but it is not required ifmaxHandlingTimeis present.
↳ max_handling_time
int|string
Maximum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time. BothmaxHandlingTimeandmaxTransitTimeare required if providing shipping speeds.minHandlingTimeis optional ifmaxHandlingTimeis present.
↳ min_transit_time
int|string
Minimum transit time (inclusive) between when the order has shipped and when it is delivered in business days. 0 means that the order is delivered on the same day as it ships.minTransitTimecan only be present together withmaxTransitTime; but it is not required ifmaxTransitTimeis present.
↳ max_transit_time
int|string
Maximum transit time (inclusive) between when the order has shipped and when it is delivered in business days. 0 means that the order is delivered on the same day as it ships. BothmaxHandlingTimeandmaxTransitTimeare required if providing shipping speeds.minTransitTimeis optional ifmaxTransitTimeis present.
A free-form description of the service class or delivery speed.
Returns
Type
Description
string
setService
A free-form description of the service class or delivery speed.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLocationId
The numeric ID of a location that the shipping rate applies to as
defined in theAdWords
API.
Returns
Type
Description
int|string
setLocationId
The numeric ID of a location that the shipping rate applies to as
defined in theAdWords
API.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getLocationGroupName
The location where the shipping is applicable, represented by a
location group name.
Returns
Type
Description
string
setLocationGroupName
The location where the shipping is applicable, represented by a
location group name.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPostalCode
The postal code range that the shipping rate applies to, represented by
a postal code, a postal code prefix followed by a * wildcard, a range
between two postal codes or two postal code prefixes of equal length.
Returns
Type
Description
string
setPostalCode
The postal code range that the shipping rate applies to, represented by
a postal code, a postal code prefix followed by a * wildcard, a range
between two postal codes or two postal code prefixes of equal length.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMinHandlingTime
Minimum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time.
Minimum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time.
Maximum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time. BothmaxHandlingTimeandmaxTransitTimeare required if providing shipping speeds.
Maximum handling time (inclusive) between when the order is received and
shipped in business days. 0 means that the order is shipped on the same
day as it is received if it happens before the cut-off time. BothmaxHandlingTimeandmaxTransitTimeare required if providing shipping speeds.
Minimum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships.
Minimum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships.
Maximum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships. BothmaxHandlingTimeandmaxTransitTimeare required if providing shipping speeds.
Maximum transit time (inclusive) between when the order has shipped and
when it is delivered in business days. 0 means that the order is
delivered on the same day as it ships. BothmaxHandlingTimeandmaxTransitTimeare required if providing shipping speeds.
[[["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 Products V1 Client - Class Shipping (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping)\n- [0.7.0](/php/docs/reference/shopping-merchant-products/0.7.0/V1.Shipping)\n- [0.6.1](/php/docs/reference/shopping-merchant-products/0.6.1/V1.Shipping)\n- [0.5.0](/php/docs/reference/shopping-merchant-products/0.5.0/V1.Shipping)\n- [0.4.0](/php/docs/reference/shopping-merchant-products/0.4.0/V1.Shipping)\n- [0.3.0](/php/docs/reference/shopping-merchant-products/0.3.0/V1.Shipping)\n- [0.2.1](/php/docs/reference/shopping-merchant-products/0.2.1/V1.Shipping)\n- [0.1.1](/php/docs/reference/shopping-merchant-products/0.1.1/V1.Shipping) \nReference documentation and code samples for the Google Shopping Merchant Products V1 Client class Shipping.\n\nThe Shipping of the product.\n\nGenerated from protobuf message `google.shopping.merchant.products.v1.Shipping`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Products \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPrice\n\nFixed shipping price, represented as a number.\n\n### hasPrice\n\n### clearPrice\n\n### setPrice\n\nFixed shipping price, represented as a number.\n\n### getCountry\n\nThe [CLDR territory\ncode](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)\nof the country to which an item will ship.\n\n### setCountry\n\nThe [CLDR territory\ncode](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)\nof the country to which an item will ship.\n\n### getRegion\n\nThe geographic region to which a shipping rate applies.\n\nSee [region](https://support.google.com/merchants/answer/6324484) for more\ninformation.\n\n### setRegion\n\nThe geographic region to which a shipping rate applies.\n\nSee [region](https://support.google.com/merchants/answer/6324484) for more\ninformation.\n\n### getService\n\nA free-form description of the service class or delivery speed.\n\n### setService\n\nA free-form description of the service class or delivery speed.\n\n### getLocationId\n\nThe numeric ID of a location that the shipping rate applies to as\ndefined in the [AdWords\nAPI](https://developers.google.com/adwords/api/docs/appendix/geotargeting).\n\n### setLocationId\n\nThe numeric ID of a location that the shipping rate applies to as\ndefined in the [AdWords\nAPI](https://developers.google.com/adwords/api/docs/appendix/geotargeting).\n\n### getLocationGroupName\n\nThe location where the shipping is applicable, represented by a\nlocation group name.\n\n### setLocationGroupName\n\nThe location where the shipping is applicable, represented by a\nlocation group name.\n\n### getPostalCode\n\nThe postal code range that the shipping rate applies to, represented by\na postal code, a postal code prefix followed by a \\* wildcard, a range\nbetween two postal codes or two postal code prefixes of equal length.\n\n### setPostalCode\n\nThe postal code range that the shipping rate applies to, represented by\na postal code, a postal code prefix followed by a \\* wildcard, a range\nbetween two postal codes or two postal code prefixes of equal length.\n\n### getMinHandlingTime\n\nMinimum handling time (inclusive) between when the order is received and\nshipped in business days. 0 means that the order is shipped on the same\nday as it is received if it happens before the cut-off time.\n\n[minHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinHandlingTime__)\ncan only be present together with\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__);\nbut it is not required if\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nis present.\n\n### hasMinHandlingTime\n\n### clearMinHandlingTime\n\n### setMinHandlingTime\n\nMinimum handling time (inclusive) between when the order is received and\nshipped in business days. 0 means that the order is shipped on the same\nday as it is received if it happens before the cut-off time.\n\n[minHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinHandlingTime__)\ncan only be present together with\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__);\nbut it is not required if\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nis present.\n\n### getMaxHandlingTime\n\nMaximum handling time (inclusive) between when the order is received and\nshipped in business days. 0 means that the order is shipped on the same\nday as it is received if it happens before the cut-off time. Both\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nand\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nare required if providing shipping speeds.\n\n[minHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinHandlingTime__)\nis optional if\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nis present.\n\n### hasMaxHandlingTime\n\n### clearMaxHandlingTime\n\n### setMaxHandlingTime\n\nMaximum handling time (inclusive) between when the order is received and\nshipped in business days. 0 means that the order is shipped on the same\nday as it is received if it happens before the cut-off time. Both\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nand\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nare required if providing shipping speeds.\n\n[minHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinHandlingTime__)\nis optional if\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nis present.\n\n### getMinTransitTime\n\nMinimum transit time (inclusive) between when the order has shipped and\nwhen it is delivered in business days. 0 means that the order is\ndelivered on the same day as it ships.\n\n[minTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinTransitTime__)\ncan only be present together with\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__);\nbut it is not required if\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nis present.\n\n### hasMinTransitTime\n\n### clearMinTransitTime\n\n### setMinTransitTime\n\nMinimum transit time (inclusive) between when the order has shipped and\nwhen it is delivered in business days. 0 means that the order is\ndelivered on the same day as it ships.\n\n[minTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinTransitTime__)\ncan only be present together with\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__);\nbut it is not required if\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nis present.\n\n### getMaxTransitTime\n\nMaximum transit time (inclusive) between when the order has shipped and\nwhen it is delivered in business days. 0 means that the order is\ndelivered on the same day as it ships. Both\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nand\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nare required if providing shipping speeds.\n\n[minTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinTransitTime__)\nis optional if\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nis present.\n\n### hasMaxTransitTime\n\n### clearMaxTransitTime\n\n### setMaxTransitTime\n\nMaximum transit time (inclusive) between when the order has shipped and\nwhen it is delivered in business days. 0 means that the order is\ndelivered on the same day as it ships. Both\n[maxHandlingTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxHandlingTime__)\nand\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nare required if providing shipping speeds.\n\n[minTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMinTransitTime__)\nis optional if\n[maxTransitTime](/php/docs/reference/shopping-merchant-products/latest/V1.Shipping#_Google_Shopping_Merchant_Products_V1_Shipping__getMaxTransitTime__)\nis present."]]