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 "entries": [ # The request entries to be processed in the batch. 102 { # A batch entry encoding a single non-batch regional inventory request. 103 "batchId": 42, # An entry ID, unique within the batch request. 104 "merchantId": "A String", # The ID of the managing account. 105 "method": "A String", # Method of the batch request entry. Acceptable values are: - "`insert`" 106 "productId": "A String", # The ID of the product for which to update price and availability. 107 "regionalInventory": { # Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region. # Price and availability of the product. 108 "availability": "A String", # The availability of the product. 109 "customAttributes": [ # 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 "groupValues": [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided. 112 # Object with schema name: CustomAttribute 113 ], 114 "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion. 115 "value": "A String", # The value of the attribute. 116 }, 117 ], 118 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#regionalInventory`". 119 "price": { # The price of the product. 120 "currency": "A String", # The currency of the price. 121 "value": "A String", # The price represented as a number. 122 }, 123 "regionId": "A String", # The ID uniquely identifying each region. 124 "salePrice": { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined. 125 "currency": "A String", # The currency of the price. 126 "value": "A String", # The price represented as a number. 127 }, 128 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' 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 "entries": [ # The result of the execution of the batch requests. 144 { # A batch entry encoding a single non-batch regional inventory response. 145 "batchId": 42, # The ID of the request entry this entry responds to. 146 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed. 147 "code": 42, # The HTTP status of the first error in `errors`. 148 "errors": [ # A list of errors. 149 { # An error returned by the API. 150 "domain": "A String", # The domain of the error. 151 "message": "A String", # A description of the error. 152 "reason": "A String", # The error code. 153 }, 154 ], 155 "message": "A String", # The message of the first error in `errors`. 156 }, 157 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#regionalinventoryCustomBatchResponseEntry`". 158 "regionalInventory": { # Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region. # Price and availability of the product. 159 "availability": "A String", # The availability of the product. 160 "customAttributes": [ # 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 "groupValues": [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided. 163 # Object with schema name: CustomAttribute 164 ], 165 "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion. 166 "value": "A String", # The value of the attribute. 167 }, 168 ], 169 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#regionalInventory`". 170 "price": { # The price of the product. 171 "currency": "A String", # The currency of the price. 172 "value": "A String", # The price represented as a number. 173 }, 174 "regionId": "A String", # The ID uniquely identifying each region. 175 "salePrice": { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined. 176 "currency": "A String", # The currency of the price. 177 "value": "A String", # The price represented as a number. 178 }, 179 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. 180 }, 181 }, 182 ], 183 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#regionalinventoryCustomBatchResponse`". 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 "availability": "A String", # The availability of the product. 199 "customAttributes": [ # 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 "groupValues": [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided. 202 # Object with schema name: CustomAttribute 203 ], 204 "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion. 205 "value": "A String", # The value of the attribute. 206 }, 207 ], 208 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#regionalInventory`". 209 "price": { # The price of the product. 210 "currency": "A String", # The currency of the price. 211 "value": "A String", # The price represented as a number. 212 }, 213 "regionId": "A String", # The ID uniquely identifying each region. 214 "salePrice": { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined. 215 "currency": "A String", # The currency of the price. 216 "value": "A String", # The price represented as a number. 217 }, 218 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' 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 "availability": "A String", # The availability of the product. 231 "customAttributes": [ # 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 "groupValues": [ # Subattributes within this attribute group. Exactly one of value or groupValues must be provided. 234 # Object with schema name: CustomAttribute 235 ], 236 "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion. 237 "value": "A String", # The value of the attribute. 238 }, 239 ], 240 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#regionalInventory`". 241 "price": { # The price of the product. 242 "currency": "A String", # The currency of the price. 243 "value": "A String", # The price represented as a number. 244 }, 245 "regionId": "A String", # The ID uniquely identifying each region. 246 "salePrice": { # The sale price of the product. Mandatory if `sale_price_effective_date` is defined. 247 "currency": "A String", # The currency of the price. 248 "value": "A String", # The price represented as a number. 249 }, 250 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. 251}</pre> 252</div> 253 254</body></html>