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.regionalinventory.html">regionalinventory</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 regional inventory for multiple products or regions 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">Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.</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 regional inventory for multiple products or regions 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    { # A batch entry encoding a single non-batch regional inventory request.
103      &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
104      &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
105      &quot;method&quot;: &quot;A String&quot;, # Method of the batch request entry. Acceptable values are: - &quot;`insert`&quot;
106      &quot;productId&quot;: &quot;A String&quot;, # The ID of the product for which to update price and availability.
107      &quot;regionalInventory&quot;: { # Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region. # Price and availability of the product.
108        &quot;availability&quot;: &quot;A String&quot;, # The availability of the product.
109        &quot;customAttributes&quot;: [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form.
110          {
111            &quot;groupValues&quot;: [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided.
112              # Object with schema name: CustomAttribute
113            ],
114            &quot;name&quot;: &quot;A String&quot;, # The name of the attribute. Underscores will be replaced by spaces upon insertion.
115            &quot;value&quot;: &quot;A String&quot;, # The value of the attribute.
116          },
117        ],
118        &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#regionalInventory`&quot;.
119        &quot;price&quot;: { # The price of the product.
120          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
121          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
122        },
123        &quot;regionId&quot;: &quot;A String&quot;, # The ID uniquely identifying each region.
124        &quot;salePrice&quot;: { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined.
125          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
126          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
127        },
128        &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 might be specified as &#x27;null&#x27; if undecided.
129      },
130    },
131  ],
132}
133
134  x__xgafv: string, V1 error format.
135    Allowed values
136      1 - v1 error format
137      2 - v2 error format
138
139Returns:
140  An object of the form:
141
142    {
143  &quot;entries&quot;: [ # The result of the execution of the batch requests.
144    { # A batch entry encoding a single non-batch regional inventory response.
145      &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
146      &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.
147        &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
148        &quot;errors&quot;: [ # A list of errors.
149          { # An error returned by the API.
150            &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
151            &quot;message&quot;: &quot;A String&quot;, # A description of the error.
152            &quot;reason&quot;: &quot;A String&quot;, # The error code.
153          },
154        ],
155        &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
156      },
157      &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#regionalinventoryCustomBatchResponseEntry`&quot;.
158      &quot;regionalInventory&quot;: { # Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region. # Price and availability of the product.
159        &quot;availability&quot;: &quot;A String&quot;, # The availability of the product.
160        &quot;customAttributes&quot;: [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form.
161          {
162            &quot;groupValues&quot;: [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided.
163              # Object with schema name: CustomAttribute
164            ],
165            &quot;name&quot;: &quot;A String&quot;, # The name of the attribute. Underscores will be replaced by spaces upon insertion.
166            &quot;value&quot;: &quot;A String&quot;, # The value of the attribute.
167          },
168        ],
169        &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#regionalInventory`&quot;.
170        &quot;price&quot;: { # The price of the product.
171          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
172          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
173        },
174        &quot;regionId&quot;: &quot;A String&quot;, # The ID uniquely identifying each region.
175        &quot;salePrice&quot;: { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined.
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;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 might be specified as &#x27;null&#x27; if undecided.
180      },
181    },
182  ],
183  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#regionalinventoryCustomBatchResponse`&quot;.
184}</pre>
185</div>
186
187<div class="method">
188    <code class="details" id="insert">insert(merchantId, productId, body=None, x__xgafv=None)</code>
189  <pre>Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.
190
191Args:
192  merchantId: string, The ID of the account that contains the product. This account cannot be a multi-client account. (required)
193  productId: string, The REST ID of the product for which to update the regional inventory. (required)
194  body: object, The request body.
195    The object takes the form of:
196
197{ # Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region.
198  &quot;availability&quot;: &quot;A String&quot;, # The availability of the product.
199  &quot;customAttributes&quot;: [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form.
200    {
201      &quot;groupValues&quot;: [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided.
202        # Object with schema name: CustomAttribute
203      ],
204      &quot;name&quot;: &quot;A String&quot;, # The name of the attribute. Underscores will be replaced by spaces upon insertion.
205      &quot;value&quot;: &quot;A String&quot;, # The value of the attribute.
206    },
207  ],
208  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#regionalInventory`&quot;.
209  &quot;price&quot;: { # The price of the product.
210    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
211    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
212  },
213  &quot;regionId&quot;: &quot;A String&quot;, # The ID uniquely identifying each region.
214  &quot;salePrice&quot;: { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined.
215    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
216    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
217  },
218  &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 might be specified as &#x27;null&#x27; if undecided.
219}
220
221  x__xgafv: string, V1 error format.
222    Allowed values
223      1 - v1 error format
224      2 - v2 error format
225
226Returns:
227  An object of the form:
228
229    { # Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region.
230  &quot;availability&quot;: &quot;A String&quot;, # The availability of the product.
231  &quot;customAttributes&quot;: [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form.
232    {
233      &quot;groupValues&quot;: [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided.
234        # Object with schema name: CustomAttribute
235      ],
236      &quot;name&quot;: &quot;A String&quot;, # The name of the attribute. Underscores will be replaced by spaces upon insertion.
237      &quot;value&quot;: &quot;A String&quot;, # The value of the attribute.
238    },
239  ],
240  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#regionalInventory`&quot;.
241  &quot;price&quot;: { # The price of the product.
242    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
243    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
244  },
245  &quot;regionId&quot;: &quot;A String&quot;, # The ID uniquely identifying each region.
246  &quot;salePrice&quot;: { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined.
247    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
248    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
249  },
250  &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 might be specified as &#x27;null&#x27; if undecided.
251}</pre>
252</div>
253
254</body></html>