You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>Creates or updates the delivery time of a product.
98
+
99
+
Args:
100
+
merchantId: string, The Google merchant ID of the account that contains the product. This account cannot be a multi-client account. (required)
101
+
body: object, The request body.
102
+
The object takes the form of:
103
+
104
+
{ # The estimated days to deliver a product after an order is placed. Only authorized shipping signals partners working with a merchant can use this resource. Merchants should use the [`products`](https://developers.google.com/shopping-content/reference/rest/v2.1/products#productshipping) resource instead.
105
+
"areaDeliveryTimes": [ # Required. A set of associations between `DeliveryArea` and `DeliveryTime` entries. The total number of `areaDeliveryTimes` can be at most 100.
106
+
{ # A pairing of `DeliveryArea` associated with a `DeliveryTime` for this product.
107
+
"deliveryArea": { # A delivery area for the product. Only one of `countryCode` or `postalCodeRange` must be set. # Required. The delivery area associated with `deliveryTime` for this product.
108
+
"countryCode": "A String", # Required. The country that the product can be delivered to. Submit a [unicode CLDR region](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) such as `US` or `CH`.
109
+
"postalCodeRange": { # A range of postal codes that defines the delivery area. Only set `firstPostalCode` when specifying a single postal code. # A postal code, postal code range or postal code prefix that defines this area. Limited to US and AUS.
110
+
"firstPostalCode": "A String", # Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: `"94108"`, `"9410*"`, `"9*"`.
111
+
"lastPostalCode": "A String", # A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area (for example [070* - 078*] results in the range [07000 - 07899]). It must have the same length as `firstPostalCode`: if `firstPostalCode` is a postal code then `lastPostalCode` must be a postal code too; if firstPostalCode is a pattern then `lastPostalCode` must be a pattern with the same prefix length. Ignored if not set, then the area is defined as being all the postal codes matching `firstPostalCode`.
112
+
},
113
+
"regionCode": "A String", # A state, territory, or prefecture. This is supported for the United States, Australia, and Japan. Provide a subdivision code from the ISO 3166-2 code tables ([US](https://en.wikipedia.org/wiki/ISO_3166-2:US), [AU](https://en.wikipedia.org/wiki/ISO_3166-2:AU), or [JP](https://en.wikipedia.org/wiki/ISO_3166-2:JP)) without country prefix (for example, `"NY"`, `"NSW"`, `"03"`).
114
+
},
115
+
"deliveryTime": { # A delivery time for this product. # Required. The delivery time associated with `deliveryArea` for this product.
116
+
"maxHandlingTimeDays": 42, # Required. The maximum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0.
117
+
"maxTransitTimeDays": 42, # Required. The maximum number of business days (inclusive) between when the product ships and when the product is delivered.
118
+
"minHandlingTimeDays": 42, # Required. The minimum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0.
119
+
"minTransitTimeDays": 42, # Required. The minimum number of business days (inclusive) between when the product ships and when the product is delivered.
120
+
},
121
+
},
122
+
],
123
+
"productId": { # The Content API ID of the product. # Required. The `id` of the product.
124
+
"productId": "A String", # The Content API ID of the product, in the form `channel:contentLanguage:targetCountry:offerId`.
125
+
},
126
+
}
127
+
128
+
x__xgafv: string, V1 error format.
129
+
Allowed values
130
+
1 - v1 error format
131
+
2 - v2 error format
132
+
133
+
Returns:
134
+
An object of the form:
135
+
136
+
{ # The estimated days to deliver a product after an order is placed. Only authorized shipping signals partners working with a merchant can use this resource. Merchants should use the [`products`](https://developers.google.com/shopping-content/reference/rest/v2.1/products#productshipping) resource instead.
137
+
"areaDeliveryTimes": [ # Required. A set of associations between `DeliveryArea` and `DeliveryTime` entries. The total number of `areaDeliveryTimes` can be at most 100.
138
+
{ # A pairing of `DeliveryArea` associated with a `DeliveryTime` for this product.
139
+
"deliveryArea": { # A delivery area for the product. Only one of `countryCode` or `postalCodeRange` must be set. # Required. The delivery area associated with `deliveryTime` for this product.
140
+
"countryCode": "A String", # Required. The country that the product can be delivered to. Submit a [unicode CLDR region](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) such as `US` or `CH`.
141
+
"postalCodeRange": { # A range of postal codes that defines the delivery area. Only set `firstPostalCode` when specifying a single postal code. # A postal code, postal code range or postal code prefix that defines this area. Limited to US and AUS.
142
+
"firstPostalCode": "A String", # Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: `"94108"`, `"9410*"`, `"9*"`.
143
+
"lastPostalCode": "A String", # A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area (for example [070* - 078*] results in the range [07000 - 07899]). It must have the same length as `firstPostalCode`: if `firstPostalCode` is a postal code then `lastPostalCode` must be a postal code too; if firstPostalCode is a pattern then `lastPostalCode` must be a pattern with the same prefix length. Ignored if not set, then the area is defined as being all the postal codes matching `firstPostalCode`.
144
+
},
145
+
"regionCode": "A String", # A state, territory, or prefecture. This is supported for the United States, Australia, and Japan. Provide a subdivision code from the ISO 3166-2 code tables ([US](https://en.wikipedia.org/wiki/ISO_3166-2:US), [AU](https://en.wikipedia.org/wiki/ISO_3166-2:AU), or [JP](https://en.wikipedia.org/wiki/ISO_3166-2:JP)) without country prefix (for example, `"NY"`, `"NSW"`, `"03"`).
146
+
},
147
+
"deliveryTime": { # A delivery time for this product. # Required. The delivery time associated with `deliveryArea` for this product.
148
+
"maxHandlingTimeDays": 42, # Required. The maximum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0.
149
+
"maxTransitTimeDays": 42, # Required. The maximum number of business days (inclusive) between when the product ships and when the product is delivered.
150
+
"minHandlingTimeDays": 42, # Required. The minimum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0.
151
+
"minTransitTimeDays": 42, # Required. The minimum number of business days (inclusive) between when the product ships and when the product is delivered.
152
+
},
153
+
},
154
+
],
155
+
"productId": { # The Content API ID of the product. # Required. The `id` of the product.
156
+
"productId": "A String", # The Content API ID of the product, in the form `channel:contentLanguage:targetCountry:offerId`.
merchantId: string, Required. The Google merchant ID of the account that contains the product. This account cannot be a multi-client account. (required)
167
+
productId: string, Required. The Content API ID of the product, in the form `channel:contentLanguage:targetCountry:offerId`. (required)
merchantId: string, Required. The Google merchant ID of the account that contains the product. This account cannot be a multi-client account. (required)
181
+
productId: string, Required. The Content API ID of the product, in the form `channel:contentLanguage:targetCountry:offerId`. (required)
182
+
x__xgafv: string, V1 error format.
183
+
Allowed values
184
+
1 - v1 error format
185
+
2 - v2 error format
186
+
187
+
Returns:
188
+
An object of the form:
189
+
190
+
{ # The estimated days to deliver a product after an order is placed. Only authorized shipping signals partners working with a merchant can use this resource. Merchants should use the [`products`](https://developers.google.com/shopping-content/reference/rest/v2.1/products#productshipping) resource instead.
191
+
"areaDeliveryTimes": [ # Required. A set of associations between `DeliveryArea` and `DeliveryTime` entries. The total number of `areaDeliveryTimes` can be at most 100.
192
+
{ # A pairing of `DeliveryArea` associated with a `DeliveryTime` for this product.
193
+
"deliveryArea": { # A delivery area for the product. Only one of `countryCode` or `postalCodeRange` must be set. # Required. The delivery area associated with `deliveryTime` for this product.
194
+
"countryCode": "A String", # Required. The country that the product can be delivered to. Submit a [unicode CLDR region](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) such as `US` or `CH`.
195
+
"postalCodeRange": { # A range of postal codes that defines the delivery area. Only set `firstPostalCode` when specifying a single postal code. # A postal code, postal code range or postal code prefix that defines this area. Limited to US and AUS.
196
+
"firstPostalCode": "A String", # Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: `"94108"`, `"9410*"`, `"9*"`.
197
+
"lastPostalCode": "A String", # A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area (for example [070* - 078*] results in the range [07000 - 07899]). It must have the same length as `firstPostalCode`: if `firstPostalCode` is a postal code then `lastPostalCode` must be a postal code too; if firstPostalCode is a pattern then `lastPostalCode` must be a pattern with the same prefix length. Ignored if not set, then the area is defined as being all the postal codes matching `firstPostalCode`.
198
+
},
199
+
"regionCode": "A String", # A state, territory, or prefecture. This is supported for the United States, Australia, and Japan. Provide a subdivision code from the ISO 3166-2 code tables ([US](https://en.wikipedia.org/wiki/ISO_3166-2:US), [AU](https://en.wikipedia.org/wiki/ISO_3166-2:AU), or [JP](https://en.wikipedia.org/wiki/ISO_3166-2:JP)) without country prefix (for example, `"NY"`, `"NSW"`, `"03"`).
200
+
},
201
+
"deliveryTime": { # A delivery time for this product. # Required. The delivery time associated with `deliveryArea` for this product.
202
+
"maxHandlingTimeDays": 42, # Required. The maximum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0.
203
+
"maxTransitTimeDays": 42, # Required. The maximum number of business days (inclusive) between when the product ships and when the product is delivered.
204
+
"minHandlingTimeDays": 42, # Required. The minimum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0.
205
+
"minTransitTimeDays": 42, # Required. The minimum number of business days (inclusive) between when the product ships and when the product is delivered.
206
+
},
207
+
},
208
+
],
209
+
"productId": { # The Content API ID of the product. # Required. The `id` of the product.
210
+
"productId": "A String", # The Content API ID of the product, in the form `channel:contentLanguage:targetCountry:offerId`.
0 commit comments