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 "entries": [ # The request entries to be processed in the batch. 102 { # Batch entry encoding a single local inventory update request. 103 "batchId": 42, # An entry ID, unique within the batch request. 104 "localInventory": { # Local inventory resource. For accepted attribute values, see the local product inventory feed specification. # Local inventory of the product. 105 "availability": "A String", # Availability of the product. For accepted attribute values, see the local product inventory feed specification. 106 "instoreProductLocation": "A String", # In-store product location. 107 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#localInventory`" 108 "pickupMethod": "A String", # Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. 109 "pickupSla": "A String", # 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 "price": { # Price of the product. 111 "currency": "A String", # The currency of the price. 112 "value": "A String", # The price represented as a number. 113 }, 114 "quantity": 42, # Quantity of the product. Must be nonnegative. 115 "salePrice": { # Sale price of the product. Mandatory if `sale_price_effective_date` is defined. 116 "currency": "A String", # The currency of the price. 117 "value": "A String", # The price represented as a number. 118 }, 119 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided. 120 "storeCode": "A String", # Required. Store code of this local inventory resource. 121 }, 122 "merchantId": "A String", # The ID of the managing account. 123 "method": "A String", # Method of the batch request entry. Acceptable values are: - "`insert`" 124 "productId": "A String", # 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 "entries": [ # The result of the execution of the batch requests. 139 { # Batch entry encoding a single local inventory update response. 140 "batchId": 42, # The ID of the request entry this entry responds to. 141 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed. 142 "code": 42, # The HTTP status of the first error in `errors`. 143 "errors": [ # A list of errors. 144 { # An error returned by the API. 145 "domain": "A String", # The domain of the error. 146 "message": "A String", # A description of the error. 147 "reason": "A String", # The error code. 148 }, 149 ], 150 "message": "A String", # The message of the first error in `errors`. 151 }, 152 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#localinventoryCustomBatchResponseEntry`" 153 }, 154 ], 155 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#localinventoryCustomBatchResponse`". 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 "availability": "A String", # Availability of the product. For accepted attribute values, see the local product inventory feed specification. 171 "instoreProductLocation": "A String", # In-store product location. 172 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#localInventory`" 173 "pickupMethod": "A String", # Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. 174 "pickupSla": "A String", # 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 "price": { # Price of the product. 176 "currency": "A String", # The currency of the price. 177 "value": "A String", # The price represented as a number. 178 }, 179 "quantity": 42, # Quantity of the product. Must be nonnegative. 180 "salePrice": { # Sale price of the product. Mandatory if `sale_price_effective_date` is defined. 181 "currency": "A String", # The currency of the price. 182 "value": "A String", # The price represented as a number. 183 }, 184 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided. 185 "storeCode": "A String", # 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 "availability": "A String", # Availability of the product. For accepted attribute values, see the local product inventory feed specification. 198 "instoreProductLocation": "A String", # In-store product location. 199 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#localInventory`" 200 "pickupMethod": "A String", # Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. 201 "pickupSla": "A String", # 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 "price": { # Price of the product. 203 "currency": "A String", # The currency of the price. 204 "value": "A String", # The price represented as a number. 205 }, 206 "quantity": 42, # Quantity of the product. Must be nonnegative. 207 "salePrice": { # Sale price of the product. Mandatory if `sale_price_effective_date` is defined. 208 "currency": "A String", # The currency of the price. 209 "value": "A String", # The price represented as a number. 210 }, 211 "salePriceEffectiveDate": "A String", # A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided. 212 "storeCode": "A String", # Required. Store code of this local inventory resource. 213}</pre> 214</div> 215 216</body></html>