blob: 5472b426a428f682307c8cc6fa2af1664f5e7362 [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.accountstatuses.html">accountstatuses</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">A description of how to use this function</p>
80<p class="toc_element">
81 <code><a href="#get">get(merchantId, accountId)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080082<p class="firstline">Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070083<p class="toc_element">
84 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080085<p class="firstline">Lists the statuses of the sub-accounts in your Merchant Center account. This method can only be called for multi-client accounts.</p>
Craig Citro065b5302014-08-14 00:47:23 -070086<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>A description of how to use this function
93
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 accountstatuses request.
Craig Citro065b5302014-08-14 00:47:23 -0700101 "batchId": 42, # An entry ID, unique within the batch request.
102 "method": "A String", # The method (get).
103 "merchantId": "A String", # The ID of the managing account.
104 "accountId": "A String", # The ID of the (sub-)account whose status to get.
105 },
106 ],
107 }
108
109
110Returns:
111 An object of the form:
112
113 {
114 "kind": "content#accountstatusesCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountstatusesCustomBatchResponse".
Craig Citroe633be12015-03-02 13:40:36 -0800115 "entries": [ # The result of the execution of the batch requests.
116 { # A batch entry encoding a single non-batch accountstatuses response.
Craig Citro065b5302014-08-14 00:47:23 -0700117 "batchId": 42, # The ID of the request entry this entry responds to.
118 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
119 "message": "A String", # The message of the first error in errors.
120 "code": 42, # The HTTP status of the first error in errors.
121 "errors": [ # A list of errors.
122 { # An error returned by the API.
123 "reason": "A String", # The error code.
124 "domain": "A String", # The domain of the error.
125 "message": "A String", # A description of the error.
126 },
127 ],
128 },
129 "accountStatus": { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time. # The requested account status. Defined if and only if the request was successful.
130 "kind": "content#accountStatus", # Identifies what kind of resource this is. Value: the fixed string "content#accountStatus".
131 "dataQualityIssues": [ # A list of data quality issues.
132 {
133 "displayedValue": "A String", # Actual value displayed on the landing page.
134 "severity": "A String", # Severity of the problem.
135 "lastChecked": "A String", # Last time the account was checked for this issue.
136 "country": "A String", # Country for which this issue is reported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400137 "detail": "A String", # A more detailed description of the issue.
138 "submittedValue": "A String", # Submitted value that causes the issue.
139 "numItems": 42, # Number of items in the account found to have the said issue.
140 "location": "A String", # The attribute name that is relevant for the issue.
141 "id": "A String", # Issue identifier.
Craig Citro065b5302014-08-14 00:47:23 -0700142 "exampleItems": [ # Example items featuring the issue.
143 { # An example of an item that has poor data quality. An item value on the landing page differs from what is submitted, or conflicts with a policy.
144 "itemId": "A String", # Unique item ID as specified in the uploaded product data.
145 "submittedValue": "A String", # The item value that was submitted.
146 "link": "A String", # Landing page of the item.
147 "valueOnLandingPage": "A String", # The actual value on the landing page.
148 "title": "A String", # Title of the item.
149 },
150 ],
Craig Citro065b5302014-08-14 00:47:23 -0700151 },
152 ],
153 "accountId": "A String", # The ID of the account for which the status is reported.
154 },
155 },
156 ],
157 }</pre>
158</div>
159
160<div class="method">
161 <code class="details" id="get">get(merchantId, accountId)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800162 <pre>Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
Craig Citro065b5302014-08-14 00:47:23 -0700163
164Args:
165 merchantId: string, The ID of the managing account. (required)
166 accountId: string, The ID of the account. (required)
167
168Returns:
169 An object of the form:
170
171 { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.
172 "kind": "content#accountStatus", # Identifies what kind of resource this is. Value: the fixed string "content#accountStatus".
173 "dataQualityIssues": [ # A list of data quality issues.
174 {
175 "displayedValue": "A String", # Actual value displayed on the landing page.
176 "severity": "A String", # Severity of the problem.
177 "lastChecked": "A String", # Last time the account was checked for this issue.
178 "country": "A String", # Country for which this issue is reported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400179 "detail": "A String", # A more detailed description of the issue.
180 "submittedValue": "A String", # Submitted value that causes the issue.
181 "numItems": 42, # Number of items in the account found to have the said issue.
182 "location": "A String", # The attribute name that is relevant for the issue.
183 "id": "A String", # Issue identifier.
Craig Citro065b5302014-08-14 00:47:23 -0700184 "exampleItems": [ # Example items featuring the issue.
185 { # An example of an item that has poor data quality. An item value on the landing page differs from what is submitted, or conflicts with a policy.
186 "itemId": "A String", # Unique item ID as specified in the uploaded product data.
187 "submittedValue": "A String", # The item value that was submitted.
188 "link": "A String", # Landing page of the item.
189 "valueOnLandingPage": "A String", # The actual value on the landing page.
190 "title": "A String", # Title of the item.
191 },
192 ],
Craig Citro065b5302014-08-14 00:47:23 -0700193 },
194 ],
195 "accountId": "A String", # The ID of the account for which the status is reported.
196 }</pre>
197</div>
198
199<div class="method">
200 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800201 <pre>Lists the statuses of the sub-accounts in your Merchant Center account. This method can only be called for multi-client accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700202
203Args:
204 merchantId: string, The ID of the managing account. (required)
205 pageToken: string, The token returned by the previous request.
206 maxResults: integer, The maximum number of account statuses to return in the response, used for paging.
207
208Returns:
209 An object of the form:
210
211 {
Craig Citroe633be12015-03-02 13:40:36 -0800212 "nextPageToken": "A String", # The token for the retrieval of the next page of account statuses.
Craig Citro065b5302014-08-14 00:47:23 -0700213 "kind": "content#accountstatusesListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountstatusesListResponse".
214 "resources": [
215 { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.
216 "kind": "content#accountStatus", # Identifies what kind of resource this is. Value: the fixed string "content#accountStatus".
217 "dataQualityIssues": [ # A list of data quality issues.
218 {
219 "displayedValue": "A String", # Actual value displayed on the landing page.
220 "severity": "A String", # Severity of the problem.
221 "lastChecked": "A String", # Last time the account was checked for this issue.
222 "country": "A String", # Country for which this issue is reported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400223 "detail": "A String", # A more detailed description of the issue.
224 "submittedValue": "A String", # Submitted value that causes the issue.
225 "numItems": 42, # Number of items in the account found to have the said issue.
226 "location": "A String", # The attribute name that is relevant for the issue.
227 "id": "A String", # Issue identifier.
Craig Citro065b5302014-08-14 00:47:23 -0700228 "exampleItems": [ # Example items featuring the issue.
229 { # An example of an item that has poor data quality. An item value on the landing page differs from what is submitted, or conflicts with a policy.
230 "itemId": "A String", # Unique item ID as specified in the uploaded product data.
231 "submittedValue": "A String", # The item value that was submitted.
232 "link": "A String", # Landing page of the item.
233 "valueOnLandingPage": "A String", # The actual value on the landing page.
234 "title": "A String", # Title of the item.
235 },
236 ],
Craig Citro065b5302014-08-14 00:47:23 -0700237 },
238 ],
239 "accountId": "A String", # The ID of the account for which the status is reported.
240 },
241 ],
242 }</pre>
243</div>
244
245<div class="method">
246 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
247 <pre>Retrieves the next page of results.
248
249Args:
250 previous_request: The request for the previous page. (required)
251 previous_response: The response from the request for the previous page. (required)
252
253Returns:
254 A request object that you can call 'execute()' on to request the next
255 page. Returns None if there are no more items in the collection.
256 </pre>
257</div>
258
259</body></html>