blob: dfb702347b1301f731968712b64e7cbdd336ad89 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<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">
Craig Citro065b5302014-08-14 00:47:23 -070078 <code><a href="#custombatch">custombatch(body)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Gets multiple Merchant Center datafeed statuses in a single request.</p>
Craig Citro065b5302014-08-14 00:47:23 -070080<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070081 <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>
Craig Citro065b5302014-08-14 00:47:23 -070083<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -080084 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Lists the statuses of the datafeeds in your Merchant Center account.</p>
Craig Citroe633be12015-03-02 13:40:36 -080086<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>
Craig Citro065b5302014-08-14 00:47:23 -070089<h3>Method Details</h3>
90<div class="method">
Craig Citro065b5302014-08-14 00:47:23 -070091 <code class="details" id="custombatch">custombatch(body)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092 <pre>Gets multiple Merchant Center datafeed statuses in a single request.
Craig Citro065b5302014-08-14 00:47:23 -070093
94Args:
95 body: object, The request body. (required)
96 The object takes the form of:
97
98{
Craig Citroe633be12015-03-02 13:40:36 -080099 "entries": [ # The request entries to be processed in the batch.
100 { # A batch entry encoding a single non-batch datafeedstatuses request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700103 "merchantId": "A String", # The ID of the managing account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 "batchId": 42, # An entry ID, unique within the batch request.
105 "datafeedId": "A String", # The ID of the data feed to get.
Craig Citroe633be12015-03-02 13:40:36 -0800106 "method": "A String",
Craig Citro065b5302014-08-14 00:47:23 -0700107 },
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".
Craig Citroe633be12015-03-02 13:40:36 -0800117 "entries": [ # The result of the execution of the batch requests.
118 { # A batch entry encoding a single non-batch datafeedstatuses response.
Craig Citro065b5302014-08-14 00:47:23 -0700119 "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 },
Craig Citroe633be12015-03-02 13:40:36 -0800131 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700132 "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".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700135 "count": "A String", # The number of occurrences of the error in the feed.
Craig Citro065b5302014-08-14 00:47:23 -0700136 "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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700142 "lineNumber": "A String", # Line number in the data feed where the example is found.
Craig Citro065b5302014-08-14 00:47:23 -0700143 },
144 ],
145 },
146 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147 "language": "A String", # The two-letter ISO 639-1 language for which the status is reported.
Craig Citro065b5302014-08-14 00:47:23 -0700148 "processingStatus": "A String", # The processing status of the feed.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700149 "itemsTotal": "A String", # The number of items in the feed that were processed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 "country": "A String", # The country for which the status is reported, represented as a CLDR territory code.
Craig Citro065b5302014-08-14 00:47:23 -0700151 "warnings": [ # The list of errors occurring in the feed.
152 { # An error occurring in the feed, like "invalid price".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700153 "count": "A String", # The number of occurrences of the error in the feed.
Craig Citro065b5302014-08-14 00:47:23 -0700154 "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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700160 "lineNumber": "A String", # Line number in the data feed where the example is found.
Craig Citro065b5302014-08-14 00:47:23 -0700161 },
162 ],
163 },
164 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000165 "lastUploadDate": "A String", # The last date at which the feed was uploaded.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700166 "itemsValid": "A String", # The number of items in the feed that were valid.
Craig Citro065b5302014-08-14 00:47:23 -0700167 "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">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 <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.
Craig Citro065b5302014-08-14 00:47:23 -0700177
178Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 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.
Craig Citro065b5302014-08-14 00:47:23 -0700183
184Returns:
185 An object of the form:
186
Craig Citroe633be12015-03-02 13:40:36 -0800187 { # The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.
Craig Citro065b5302014-08-14 00:47:23 -0700188 "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".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700191 "count": "A String", # The number of occurrences of the error in the feed.
Craig Citro065b5302014-08-14 00:47:23 -0700192 "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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700198 "lineNumber": "A String", # Line number in the data feed where the example is found.
Craig Citro065b5302014-08-14 00:47:23 -0700199 },
200 ],
201 },
202 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 "language": "A String", # The two-letter ISO 639-1 language for which the status is reported.
Craig Citro065b5302014-08-14 00:47:23 -0700204 "processingStatus": "A String", # The processing status of the feed.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700205 "itemsTotal": "A String", # The number of items in the feed that were processed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206 "country": "A String", # The country for which the status is reported, represented as a CLDR territory code.
Craig Citro065b5302014-08-14 00:47:23 -0700207 "warnings": [ # The list of errors occurring in the feed.
208 { # An error occurring in the feed, like "invalid price".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700209 "count": "A String", # The number of occurrences of the error in the feed.
Craig Citro065b5302014-08-14 00:47:23 -0700210 "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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700216 "lineNumber": "A String", # Line number in the data feed where the example is found.
Craig Citro065b5302014-08-14 00:47:23 -0700217 },
218 ],
219 },
220 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000221 "lastUploadDate": "A String", # The last date at which the feed was uploaded.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700222 "itemsValid": "A String", # The number of items in the feed that were valid.
Craig Citro065b5302014-08-14 00:47:23 -0700223 "datafeedId": "A String", # The ID of the feed for which the status is reported.
224 }</pre>
225</div>
226
227<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800228 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700229 <pre>Lists the statuses of the datafeeds in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700230
231Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 merchantId: string, The ID of the account that manages the datafeeds. This account cannot be a multi-client account. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800233 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.
Craig Citro065b5302014-08-14 00:47:23 -0700235
236Returns:
237 An object of the form:
238
239 {
Craig Citroe633be12015-03-02 13:40:36 -0800240 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeed statuses.
Craig Citro065b5302014-08-14 00:47:23 -0700241 "kind": "content#datafeedstatusesListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedstatusesListResponse".
242 "resources": [
Craig Citroe633be12015-03-02 13:40:36 -0800243 { # The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.
Craig Citro065b5302014-08-14 00:47:23 -0700244 "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".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700247 "count": "A String", # The number of occurrences of the error in the feed.
Craig Citro065b5302014-08-14 00:47:23 -0700248 "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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700254 "lineNumber": "A String", # Line number in the data feed where the example is found.
Craig Citro065b5302014-08-14 00:47:23 -0700255 },
256 ],
257 },
258 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 "language": "A String", # The two-letter ISO 639-1 language for which the status is reported.
Craig Citro065b5302014-08-14 00:47:23 -0700260 "processingStatus": "A String", # The processing status of the feed.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700261 "itemsTotal": "A String", # The number of items in the feed that were processed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700262 "country": "A String", # The country for which the status is reported, represented as a CLDR territory code.
Craig Citro065b5302014-08-14 00:47:23 -0700263 "warnings": [ # The list of errors occurring in the feed.
264 { # An error occurring in the feed, like "invalid price".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700265 "count": "A String", # The number of occurrences of the error in the feed.
Craig Citro065b5302014-08-14 00:47:23 -0700266 "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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700272 "lineNumber": "A String", # Line number in the data feed where the example is found.
Craig Citro065b5302014-08-14 00:47:23 -0700273 },
274 ],
275 },
276 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000277 "lastUploadDate": "A String", # The last date at which the feed was uploaded.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700278 "itemsValid": "A String", # The number of items in the feed that were valid.
Craig Citro065b5302014-08-14 00:47:23 -0700279 "datafeedId": "A String", # The ID of the feed for which the status is reported.
280 },
281 ],
282 }</pre>
283</div>
284
Craig Citroe633be12015-03-02 13:40:36 -0800285<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
Craig Citro065b5302014-08-14 00:47:23 -0700299</body></html>