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.html">Content API for Shopping</a> . <a href="content_v2.datafeedstatuses.html">datafeedstatuses</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#custombatch">custombatch(body)</a></code></p> 79<p class="firstline">Gets multiple Merchant Center datafeed statuses in a single request.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(merchantId, datafeedId, language=None, country=None)</a></code></p> 82<p class="firstline">Retrieves the status of a datafeed from your Merchant Center account.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None)</a></code></p> 85<p class="firstline">Lists the statuses of the datafeeds in your Merchant Center account.</p> 86<p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88<p class="firstline">Retrieves the next page of results.</p> 89<h3>Method Details</h3> 90<div class="method"> 91 <code class="details" id="custombatch">custombatch(body)</code> 92 <pre>Gets multiple Merchant Center datafeed statuses in a single request. 93 94Args: 95 body: object, The request body. (required) 96 The object takes the form of: 97 98{ 99 "entries": [ # The request entries to be processed in the batch. 100 { # A batch entry encoding a single non-batch datafeedstatuses request. 101 "language": "A String", # The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that for multi-target datafeeds this parameter is required. 102 "country": "A String", # The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that for multi-target datafeeds this parameter is required. 103 "merchantId": "A String", # The ID of the managing account. 104 "batchId": 42, # An entry ID, unique within the batch request. 105 "datafeedId": "A String", # The ID of the data feed to get. 106 "method": "A String", 107 }, 108 ], 109 } 110 111 112Returns: 113 An object of the form: 114 115 { 116 "kind": "content#datafeedstatusesCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedstatusesCustomBatchResponse". 117 "entries": [ # The result of the execution of the batch requests. 118 { # A batch entry encoding a single non-batch datafeedstatuses response. 119 "batchId": 42, # The ID of the request entry this entry responds to. 120 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed. 121 "message": "A String", # The message of the first error in errors. 122 "code": 42, # The HTTP status of the first error in errors. 123 "errors": [ # A list of errors. 124 { # An error returned by the API. 125 "reason": "A String", # The error code. 126 "domain": "A String", # The domain of the error. 127 "message": "A String", # A description of the error. 128 }, 129 ], 130 }, 131 "datafeedStatus": { # The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished. # The requested data feed status. Defined if and only if the request was successful. 132 "kind": "content#datafeedStatus", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus". 133 "errors": [ # The list of errors occurring in the feed. 134 { # An error occurring in the feed, like "invalid price". 135 "count": "A String", # The number of occurrences of the error in the feed. 136 "message": "A String", # The error message, e.g., "Invalid price". 137 "code": "A String", # The code of the error, e.g., "validation/invalid_value". 138 "examples": [ # A list of example occurrences of the error, grouped by product. 139 { # An example occurrence for a particular error. 140 "itemId": "A String", # The ID of the example item. 141 "value": "A String", # The problematic value. 142 "lineNumber": "A String", # Line number in the data feed where the example is found. 143 }, 144 ], 145 }, 146 ], 147 "language": "A String", # The two-letter ISO 639-1 language for which the status is reported. 148 "processingStatus": "A String", # The processing status of the feed. 149 "itemsTotal": "A String", # The number of items in the feed that were processed. 150 "country": "A String", # The country for which the status is reported, represented as a CLDR territory code. 151 "warnings": [ # The list of errors occurring in the feed. 152 { # An error occurring in the feed, like "invalid price". 153 "count": "A String", # The number of occurrences of the error in the feed. 154 "message": "A String", # The error message, e.g., "Invalid price". 155 "code": "A String", # The code of the error, e.g., "validation/invalid_value". 156 "examples": [ # A list of example occurrences of the error, grouped by product. 157 { # An example occurrence for a particular error. 158 "itemId": "A String", # The ID of the example item. 159 "value": "A String", # The problematic value. 160 "lineNumber": "A String", # Line number in the data feed where the example is found. 161 }, 162 ], 163 }, 164 ], 165 "lastUploadDate": "A String", # The last date at which the feed was uploaded. 166 "itemsValid": "A String", # The number of items in the feed that were valid. 167 "datafeedId": "A String", # The ID of the feed for which the status is reported. 168 }, 169 }, 170 ], 171 }</pre> 172</div> 173 174<div class="method"> 175 <code class="details" id="get">get(merchantId, datafeedId, language=None, country=None)</code> 176 <pre>Retrieves the status of a datafeed from your Merchant Center account. 177 178Args: 179 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required) 180 datafeedId: string, The ID of the datafeed. (required) 181 language: string, The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. 182 country: string, The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. 183 184Returns: 185 An object of the form: 186 187 { # The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished. 188 "kind": "content#datafeedStatus", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus". 189 "errors": [ # The list of errors occurring in the feed. 190 { # An error occurring in the feed, like "invalid price". 191 "count": "A String", # The number of occurrences of the error in the feed. 192 "message": "A String", # The error message, e.g., "Invalid price". 193 "code": "A String", # The code of the error, e.g., "validation/invalid_value". 194 "examples": [ # A list of example occurrences of the error, grouped by product. 195 { # An example occurrence for a particular error. 196 "itemId": "A String", # The ID of the example item. 197 "value": "A String", # The problematic value. 198 "lineNumber": "A String", # Line number in the data feed where the example is found. 199 }, 200 ], 201 }, 202 ], 203 "language": "A String", # The two-letter ISO 639-1 language for which the status is reported. 204 "processingStatus": "A String", # The processing status of the feed. 205 "itemsTotal": "A String", # The number of items in the feed that were processed. 206 "country": "A String", # The country for which the status is reported, represented as a CLDR territory code. 207 "warnings": [ # The list of errors occurring in the feed. 208 { # An error occurring in the feed, like "invalid price". 209 "count": "A String", # The number of occurrences of the error in the feed. 210 "message": "A String", # The error message, e.g., "Invalid price". 211 "code": "A String", # The code of the error, e.g., "validation/invalid_value". 212 "examples": [ # A list of example occurrences of the error, grouped by product. 213 { # An example occurrence for a particular error. 214 "itemId": "A String", # The ID of the example item. 215 "value": "A String", # The problematic value. 216 "lineNumber": "A String", # Line number in the data feed where the example is found. 217 }, 218 ], 219 }, 220 ], 221 "lastUploadDate": "A String", # The last date at which the feed was uploaded. 222 "itemsValid": "A String", # The number of items in the feed that were valid. 223 "datafeedId": "A String", # The ID of the feed for which the status is reported. 224 }</pre> 225</div> 226 227<div class="method"> 228 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code> 229 <pre>Lists the statuses of the datafeeds in your Merchant Center account. 230 231Args: 232 merchantId: string, The ID of the account that manages the datafeeds. This account cannot be a multi-client account. (required) 233 pageToken: string, The token returned by the previous request. 234 maxResults: integer, The maximum number of products to return in the response, used for paging. 235 236Returns: 237 An object of the form: 238 239 { 240 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeed statuses. 241 "kind": "content#datafeedstatusesListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedstatusesListResponse". 242 "resources": [ 243 { # The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished. 244 "kind": "content#datafeedStatus", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus". 245 "errors": [ # The list of errors occurring in the feed. 246 { # An error occurring in the feed, like "invalid price". 247 "count": "A String", # The number of occurrences of the error in the feed. 248 "message": "A String", # The error message, e.g., "Invalid price". 249 "code": "A String", # The code of the error, e.g., "validation/invalid_value". 250 "examples": [ # A list of example occurrences of the error, grouped by product. 251 { # An example occurrence for a particular error. 252 "itemId": "A String", # The ID of the example item. 253 "value": "A String", # The problematic value. 254 "lineNumber": "A String", # Line number in the data feed where the example is found. 255 }, 256 ], 257 }, 258 ], 259 "language": "A String", # The two-letter ISO 639-1 language for which the status is reported. 260 "processingStatus": "A String", # The processing status of the feed. 261 "itemsTotal": "A String", # The number of items in the feed that were processed. 262 "country": "A String", # The country for which the status is reported, represented as a CLDR territory code. 263 "warnings": [ # The list of errors occurring in the feed. 264 { # An error occurring in the feed, like "invalid price". 265 "count": "A String", # The number of occurrences of the error in the feed. 266 "message": "A String", # The error message, e.g., "Invalid price". 267 "code": "A String", # The code of the error, e.g., "validation/invalid_value". 268 "examples": [ # A list of example occurrences of the error, grouped by product. 269 { # An example occurrence for a particular error. 270 "itemId": "A String", # The ID of the example item. 271 "value": "A String", # The problematic value. 272 "lineNumber": "A String", # Line number in the data feed where the example is found. 273 }, 274 ], 275 }, 276 ], 277 "lastUploadDate": "A String", # The last date at which the feed was uploaded. 278 "itemsValid": "A String", # The number of items in the feed that were valid. 279 "datafeedId": "A String", # The ID of the feed for which the status is reported. 280 }, 281 ], 282 }</pre> 283</div> 284 285<div class="method"> 286 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 287 <pre>Retrieves the next page of results. 288 289Args: 290 previous_request: The request for the previous page. (required) 291 previous_response: The response from the request for the previous page. (required) 292 293Returns: 294 A request object that you can call 'execute()' on to request the next 295 page. Returns None if there are no more items in the collection. 296 </pre> 297</div> 298 299</body></html>