Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class ShippingSettings.
The merchant account's shipping setting .
Generated from protobuf message google.shopping.merchant.accounts.v1beta.ShippingSettings
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the shipping setting. Format: accounts/{account}/shippingSetting
↳ services
↳ warehouses
↳ etag
string
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps: 1. Set etag field as empty string for initial shipping setting creation. 2. After initial creation, call get method to obtain an etag and current shipping setting data before call insert. 3. Modify to wanted shipping setting information. 4. Call insert method with the wanted shipping setting information with the etag obtained from step 2. 5. If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
getName
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
string
setName
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
var
string
$this
getServices
Optional. The target account's list of services.
setServices
Optional. The target account's list of services.
$this
getWarehouses
Optional. A list of warehouses which can be referred to in services
.
setWarehouses
Optional. A list of warehouses which can be referred to in services
.
$this
getEtag
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
-
Set etag field as empty string for initial shipping setting creation.
-
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
- Modify to wanted shipping setting information.
- Call insert method with the wanted shipping setting information with the etag obtained from step 2.
- If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
string
setEtag
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
-
Set etag field as empty string for initial shipping setting creation.
-
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
- Modify to wanted shipping setting information.
- Call insert method with the wanted shipping setting information with the etag obtained from step 2.
- If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
var
string
$this