1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2_1.html">Content API for Shopping</a> . <a href="content_v2_1.localinventory.html">localinventory</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#custombatch">custombatch(body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Updates local inventory for multiple products or stores in a single request.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(merchantId, productId, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Updates the local inventory of a product in your Merchant Center account.</p>
86<h3>Method Details</h3>
87<div class="method">
88    <code class="details" id="close">close()</code>
89  <pre>Close httplib2 connections.</pre>
90</div>
91
92<div class="method">
93    <code class="details" id="custombatch">custombatch(body=None, x__xgafv=None)</code>
94  <pre>Updates local inventory for multiple products or stores in a single request.
95
96Args:
97  body: object, The request body.
98    The object takes the form of:
99
100{
101  &quot;entries&quot;: [ # The request entries to be processed in the batch.
102    { # Batch entry encoding a single local inventory update request.
103      &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
104      &quot;localInventory&quot;: { # Local inventory resource. For accepted attribute values, see the local product inventory feed specification. # Local inventory of the product.
105        &quot;availability&quot;: &quot;A String&quot;, # Availability of the product. For accepted attribute values, see the local product inventory feed specification.
106        &quot;instoreProductLocation&quot;: &quot;A String&quot;, # In-store product location.
107        &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#localInventory`&quot;
108        &quot;pickupMethod&quot;: &quot;A String&quot;, # Supported pickup method for this offer. Unless the value is &quot;not supported&quot;, this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification.
109        &quot;pickupSla&quot;: &quot;A String&quot;, # Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification.
110        &quot;price&quot;: { # Price of the product.
111          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
112          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
113        },
114        &quot;quantity&quot;: 42, # Quantity of the product. Must be nonnegative.
115        &quot;salePrice&quot;: { # Sale price of the product. Mandatory if `sale_price_effective_date` is defined.
116          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
117          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
118        },
119        &quot;salePriceEffectiveDate&quot;: &quot;A String&quot;, # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as &#x27;null&#x27; if undecided.
120        &quot;storeCode&quot;: &quot;A String&quot;, # Required. Store code of this local inventory resource.
121      },
122      &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
123      &quot;method&quot;: &quot;A String&quot;, # Method of the batch request entry. Acceptable values are: - &quot;`insert`&quot;
124      &quot;productId&quot;: &quot;A String&quot;, # The ID of the product for which to update local inventory.
125    },
126  ],
127}
128
129  x__xgafv: string, V1 error format.
130    Allowed values
131      1 - v1 error format
132      2 - v2 error format
133
134Returns:
135  An object of the form:
136
137    {
138  &quot;entries&quot;: [ # The result of the execution of the batch requests.
139    { # Batch entry encoding a single local inventory update response.
140      &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
141      &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
142        &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
143        &quot;errors&quot;: [ # A list of errors.
144          { # An error returned by the API.
145            &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
146            &quot;message&quot;: &quot;A String&quot;, # A description of the error.
147            &quot;reason&quot;: &quot;A String&quot;, # The error code.
148          },
149        ],
150        &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
151      },
152      &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#localinventoryCustomBatchResponseEntry`&quot;
153    },
154  ],
155  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#localinventoryCustomBatchResponse`&quot;.
156}</pre>
157</div>
158
159<div class="method">
160    <code class="details" id="insert">insert(merchantId, productId, body=None, x__xgafv=None)</code>
161  <pre>Updates the local inventory of a product in your Merchant Center account.
162
163Args:
164  merchantId: string, The ID of the account that contains the product. This account cannot be a multi-client account. (required)
165  productId: string, The REST ID of the product for which to update local inventory. (required)
166  body: object, The request body.
167    The object takes the form of:
168
169{ # Local inventory resource. For accepted attribute values, see the local product inventory feed specification.
170  &quot;availability&quot;: &quot;A String&quot;, # Availability of the product. For accepted attribute values, see the local product inventory feed specification.
171  &quot;instoreProductLocation&quot;: &quot;A String&quot;, # In-store product location.
172  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#localInventory`&quot;
173  &quot;pickupMethod&quot;: &quot;A String&quot;, # Supported pickup method for this offer. Unless the value is &quot;not supported&quot;, this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification.
174  &quot;pickupSla&quot;: &quot;A String&quot;, # Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification.
175  &quot;price&quot;: { # Price of the product.
176    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
177    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
178  },
179  &quot;quantity&quot;: 42, # Quantity of the product. Must be nonnegative.
180  &quot;salePrice&quot;: { # Sale price of the product. Mandatory if `sale_price_effective_date` is defined.
181    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
182    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
183  },
184  &quot;salePriceEffectiveDate&quot;: &quot;A String&quot;, # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as &#x27;null&#x27; if undecided.
185  &quot;storeCode&quot;: &quot;A String&quot;, # Required. Store code of this local inventory resource.
186}
187
188  x__xgafv: string, V1 error format.
189    Allowed values
190      1 - v1 error format
191      2 - v2 error format
192
193Returns:
194  An object of the form:
195
196    { # Local inventory resource. For accepted attribute values, see the local product inventory feed specification.
197  &quot;availability&quot;: &quot;A String&quot;, # Availability of the product. For accepted attribute values, see the local product inventory feed specification.
198  &quot;instoreProductLocation&quot;: &quot;A String&quot;, # In-store product location.
199  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#localInventory`&quot;
200  &quot;pickupMethod&quot;: &quot;A String&quot;, # Supported pickup method for this offer. Unless the value is &quot;not supported&quot;, this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification.
201  &quot;pickupSla&quot;: &quot;A String&quot;, # Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification.
202  &quot;price&quot;: { # Price of the product.
203    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
204    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
205  },
206  &quot;quantity&quot;: 42, # Quantity of the product. Must be nonnegative.
207  &quot;salePrice&quot;: { # Sale price of the product. Mandatory if `sale_price_effective_date` is defined.
208    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
209    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
210  },
211  &quot;salePriceEffectiveDate&quot;: &quot;A String&quot;, # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as &#x27;null&#x27; if undecided.
212  &quot;storeCode&quot;: &quot;A String&quot;, # Required. Store code of this local inventory resource.
213}</pre>
214</div>
215
216</body></html>