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.accountstatuses.html">accountstatuses</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">Retrieves multiple Merchant Center account statuses in a single request.</p>
83<p class="toc_element">
84  <code><a href="#get">get(merchantId, accountId, destinations=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.</p>
86<p class="toc_element">
87  <code><a href="#list">list(merchantId, destinations=None, maxResults=None, name=None, pageToken=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists the statuses of the sub-accounts in your Merchant Center account.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
94    <code class="details" id="close">close()</code>
95  <pre>Close httplib2 connections.</pre>
96</div>
97
98<div class="method">
99    <code class="details" id="custombatch">custombatch(body=None, x__xgafv=None)</code>
100  <pre>Retrieves multiple Merchant Center account statuses in a single request.
101
102Args:
103  body: object, The request body.
104    The object takes the form of:
105
106{
107  &quot;entries&quot;: [ # The request entries to be processed in the batch.
108    { # A batch entry encoding a single non-batch accountstatuses request.
109      &quot;accountId&quot;: &quot;A String&quot;, # The ID of the (sub-)account whose status to get.
110      &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
111      &quot;destinations&quot;: [ # If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
112        &quot;A String&quot;,
113      ],
114      &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
115      &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry. Acceptable values are: - &quot;`get`&quot;
116    },
117  ],
118}
119
120  x__xgafv: string, V1 error format.
121    Allowed values
122      1 - v1 error format
123      2 - v2 error format
124
125Returns:
126  An object of the form:
127
128    {
129  &quot;entries&quot;: [ # The result of the execution of the batch requests.
130    { # A batch entry encoding a single non-batch accountstatuses response.
131      &quot;accountStatus&quot;: { # 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.
132        &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which the status is reported.
133        &quot;accountLevelIssues&quot;: [ # A list of account level issues.
134          {
135            &quot;country&quot;: &quot;A String&quot;, # Country for which this issue is reported.
136            &quot;destination&quot;: &quot;A String&quot;, # The destination the issue applies to. If this field is empty then the issue applies to all available destinations.
137            &quot;detail&quot;: &quot;A String&quot;, # Additional details about the issue.
138            &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help resolving this issue.
139            &quot;id&quot;: &quot;A String&quot;, # Issue identifier.
140            &quot;severity&quot;: &quot;A String&quot;, # Severity of the issue. Acceptable values are: - &quot;`critical`&quot; - &quot;`error`&quot; - &quot;`suggestion`&quot;
141            &quot;title&quot;: &quot;A String&quot;, # Short description of the issue.
142          },
143        ],
144        &quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
145        &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountStatus`&quot;
146        &quot;products&quot;: [ # List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes.
147          {
148            &quot;channel&quot;: &quot;A String&quot;, # The channel the data applies to. Acceptable values are: - &quot;`local`&quot; - &quot;`online`&quot;
149            &quot;country&quot;: &quot;A String&quot;, # The country the data applies to.
150            &quot;destination&quot;: &quot;A String&quot;, # The destination the data applies to.
151            &quot;itemLevelIssues&quot;: [ # List of item-level issues.
152              {
153                &quot;attributeName&quot;: &quot;A String&quot;, # The attribute&#x27;s name, if the issue is caused by a single attribute.
154                &quot;code&quot;: &quot;A String&quot;, # The error code of the issue.
155                &quot;description&quot;: &quot;A String&quot;, # A short issue description in English.
156                &quot;detail&quot;: &quot;A String&quot;, # A detailed issue description in English.
157                &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help with resolving this issue.
158                &quot;numItems&quot;: &quot;A String&quot;, # Number of items with this issue.
159                &quot;resolution&quot;: &quot;A String&quot;, # Whether the issue can be resolved by the merchant.
160                &quot;servability&quot;: &quot;A String&quot;, # How this issue affects serving of the offer.
161              },
162            ],
163            &quot;statistics&quot;: { # Aggregated product statistics.
164              &quot;active&quot;: &quot;A String&quot;, # Number of active offers.
165              &quot;disapproved&quot;: &quot;A String&quot;, # Number of disapproved offers.
166              &quot;expiring&quot;: &quot;A String&quot;, # Number of expiring offers.
167              &quot;pending&quot;: &quot;A String&quot;, # Number of pending offers.
168            },
169          },
170        ],
171        &quot;websiteClaimed&quot;: True or False, # Whether the account&#x27;s website is claimed or not.
172      },
173      &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
174      &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
175        &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
176        &quot;errors&quot;: [ # A list of errors.
177          { # An error returned by the API.
178            &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
179            &quot;message&quot;: &quot;A String&quot;, # A description of the error.
180            &quot;reason&quot;: &quot;A String&quot;, # The error code.
181          },
182        ],
183        &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
184      },
185    },
186  ],
187  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountstatusesCustomBatchResponse`&quot;.
188}</pre>
189</div>
190
191<div class="method">
192    <code class="details" id="get">get(merchantId, accountId, destinations=None, x__xgafv=None)</code>
193  <pre>Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.
194
195Args:
196  merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
197  accountId: string, The ID of the account. (required)
198  destinations: string, If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. (repeated)
199  x__xgafv: string, V1 error format.
200    Allowed values
201      1 - v1 error format
202      2 - v2 error format
203
204Returns:
205  An object of the form:
206
207    { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.
208  &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which the status is reported.
209  &quot;accountLevelIssues&quot;: [ # A list of account level issues.
210    {
211      &quot;country&quot;: &quot;A String&quot;, # Country for which this issue is reported.
212      &quot;destination&quot;: &quot;A String&quot;, # The destination the issue applies to. If this field is empty then the issue applies to all available destinations.
213      &quot;detail&quot;: &quot;A String&quot;, # Additional details about the issue.
214      &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help resolving this issue.
215      &quot;id&quot;: &quot;A String&quot;, # Issue identifier.
216      &quot;severity&quot;: &quot;A String&quot;, # Severity of the issue. Acceptable values are: - &quot;`critical`&quot; - &quot;`error`&quot; - &quot;`suggestion`&quot;
217      &quot;title&quot;: &quot;A String&quot;, # Short description of the issue.
218    },
219  ],
220  &quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
221  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountStatus`&quot;
222  &quot;products&quot;: [ # List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes.
223    {
224      &quot;channel&quot;: &quot;A String&quot;, # The channel the data applies to. Acceptable values are: - &quot;`local`&quot; - &quot;`online`&quot;
225      &quot;country&quot;: &quot;A String&quot;, # The country the data applies to.
226      &quot;destination&quot;: &quot;A String&quot;, # The destination the data applies to.
227      &quot;itemLevelIssues&quot;: [ # List of item-level issues.
228        {
229          &quot;attributeName&quot;: &quot;A String&quot;, # The attribute&#x27;s name, if the issue is caused by a single attribute.
230          &quot;code&quot;: &quot;A String&quot;, # The error code of the issue.
231          &quot;description&quot;: &quot;A String&quot;, # A short issue description in English.
232          &quot;detail&quot;: &quot;A String&quot;, # A detailed issue description in English.
233          &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help with resolving this issue.
234          &quot;numItems&quot;: &quot;A String&quot;, # Number of items with this issue.
235          &quot;resolution&quot;: &quot;A String&quot;, # Whether the issue can be resolved by the merchant.
236          &quot;servability&quot;: &quot;A String&quot;, # How this issue affects serving of the offer.
237        },
238      ],
239      &quot;statistics&quot;: { # Aggregated product statistics.
240        &quot;active&quot;: &quot;A String&quot;, # Number of active offers.
241        &quot;disapproved&quot;: &quot;A String&quot;, # Number of disapproved offers.
242        &quot;expiring&quot;: &quot;A String&quot;, # Number of expiring offers.
243        &quot;pending&quot;: &quot;A String&quot;, # Number of pending offers.
244      },
245    },
246  ],
247  &quot;websiteClaimed&quot;: True or False, # Whether the account&#x27;s website is claimed or not.
248}</pre>
249</div>
250
251<div class="method">
252    <code class="details" id="list">list(merchantId, destinations=None, maxResults=None, name=None, pageToken=None, x__xgafv=None)</code>
253  <pre>Lists the statuses of the sub-accounts in your Merchant Center account.
254
255Args:
256  merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
257  destinations: string, If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. (repeated)
258  maxResults: integer, The maximum number of account statuses to return in the response, used for paging.
259  name: string, If set, only the accounts with the given name (case sensitive) will be returned.
260  pageToken: string, The token returned by the previous request.
261  x__xgafv: string, V1 error format.
262    Allowed values
263      1 - v1 error format
264      2 - v2 error format
265
266Returns:
267  An object of the form:
268
269    {
270  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountstatusesListResponse`&quot;.
271  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of account statuses.
272  &quot;resources&quot;: [
273    { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.
274      &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which the status is reported.
275      &quot;accountLevelIssues&quot;: [ # A list of account level issues.
276        {
277          &quot;country&quot;: &quot;A String&quot;, # Country for which this issue is reported.
278          &quot;destination&quot;: &quot;A String&quot;, # The destination the issue applies to. If this field is empty then the issue applies to all available destinations.
279          &quot;detail&quot;: &quot;A String&quot;, # Additional details about the issue.
280          &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help resolving this issue.
281          &quot;id&quot;: &quot;A String&quot;, # Issue identifier.
282          &quot;severity&quot;: &quot;A String&quot;, # Severity of the issue. Acceptable values are: - &quot;`critical`&quot; - &quot;`error`&quot; - &quot;`suggestion`&quot;
283          &quot;title&quot;: &quot;A String&quot;, # Short description of the issue.
284        },
285      ],
286      &quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
287      &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountStatus`&quot;
288      &quot;products&quot;: [ # List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes.
289        {
290          &quot;channel&quot;: &quot;A String&quot;, # The channel the data applies to. Acceptable values are: - &quot;`local`&quot; - &quot;`online`&quot;
291          &quot;country&quot;: &quot;A String&quot;, # The country the data applies to.
292          &quot;destination&quot;: &quot;A String&quot;, # The destination the data applies to.
293          &quot;itemLevelIssues&quot;: [ # List of item-level issues.
294            {
295              &quot;attributeName&quot;: &quot;A String&quot;, # The attribute&#x27;s name, if the issue is caused by a single attribute.
296              &quot;code&quot;: &quot;A String&quot;, # The error code of the issue.
297              &quot;description&quot;: &quot;A String&quot;, # A short issue description in English.
298              &quot;detail&quot;: &quot;A String&quot;, # A detailed issue description in English.
299              &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help with resolving this issue.
300              &quot;numItems&quot;: &quot;A String&quot;, # Number of items with this issue.
301              &quot;resolution&quot;: &quot;A String&quot;, # Whether the issue can be resolved by the merchant.
302              &quot;servability&quot;: &quot;A String&quot;, # How this issue affects serving of the offer.
303            },
304          ],
305          &quot;statistics&quot;: { # Aggregated product statistics.
306            &quot;active&quot;: &quot;A String&quot;, # Number of active offers.
307            &quot;disapproved&quot;: &quot;A String&quot;, # Number of disapproved offers.
308            &quot;expiring&quot;: &quot;A String&quot;, # Number of expiring offers.
309            &quot;pending&quot;: &quot;A String&quot;, # Number of pending offers.
310          },
311        },
312      ],
313      &quot;websiteClaimed&quot;: True or False, # Whether the account&#x27;s website is claimed or not.
314    },
315  ],
316}</pre>
317</div>
318
319<div class="method">
320    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
321  <pre>Retrieves the next page of results.
322
323Args:
324  previous_request: The request for the previous page. (required)
325  previous_response: The response from the request for the previous page. (required)
326
327Returns:
328  A request object that you can call &#x27;execute()&#x27; on to request the next
329  page. Returns None if there are no more items in the collection.
330    </pre>
331</div>
332
333</body></html>