Debian Codegraph @

docs/dyn/content_v2_1.productstatuses.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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.productstatuses.html">productstatuses</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">Gets the statuses of multiple products in a single request.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(merchantId, productId, destinations=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets the status of a product from your Merchant Center account.</p>
86 <p class="toc_element">
87 <code><a href="#list">list(merchantId, destinations=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Lists the statuses of the products in your Merchant Center account.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</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>Gets the statuses of multiple products in a single request.
101
102 Args:
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 productstatuses request.
109 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
110 &quot;destinations&quot;: [ # If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
111 &quot;A String&quot;,
112 ],
113 &quot;includeAttributes&quot;: True or False, # Deprecated: Setting this field has no effect and attributes are never included.
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 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product whose status to get.
117 },
118 ],
119 }
120
121 x__xgafv: string, V1 error format.
122 Allowed values
123 1 - v1 error format
124 2 - v2 error format
125
126 Returns:
127 An object of the form:
128
129 {
130 &quot;entries&quot;: [ # The result of the execution of the batch requests.
131 { # A batch entry encoding a single non-batch productstatuses response.
132 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
133 &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors for failed custombatch entries. *Note:* Schema errors fail the whole request.
134 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
135 &quot;errors&quot;: [ # A list of errors.
136 { # An error returned by the API.
137 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
138 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
139 &quot;reason&quot;: &quot;A String&quot;, # The error code.
140 },
141 ],
142 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
143 },
144 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#productstatusesCustomBatchResponseEntry`&quot;
145 &quot;productStatus&quot;: { # The status of a product, that is, information about a product computed asynchronously. # The requested product status. Only defined if the request was successful.
146 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
147 &quot;destinationStatuses&quot;: [ # The intended destinations for the product.
148 {
149 &quot;approvedCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
150 &quot;A String&quot;,
151 ],
152 &quot;channel&quot;: &quot;A String&quot;, # The channel of the destination.
153 &quot;destination&quot;: &quot;A String&quot;, # The name of the destination
154 &quot;disapprovedCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
155 &quot;A String&quot;,
156 ],
157 &quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
158 &quot;A String&quot;,
159 ],
160 &quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
161 },
162 ],
163 &quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
164 &quot;itemLevelIssues&quot;: [ # A list of all issues associated with the product.
165 {
166 &quot;applicableCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
167 &quot;A String&quot;,
168 ],
169 &quot;attributeName&quot;: &quot;A String&quot;, # The attribute&#x27;s name, if the issue is caused by a single attribute.
170 &quot;code&quot;: &quot;A String&quot;, # The error code of the issue.
171 &quot;description&quot;: &quot;A String&quot;, # A short issue description in English.
172 &quot;destination&quot;: &quot;A String&quot;, # The destination the issue applies to.
173 &quot;detail&quot;: &quot;A String&quot;, # A detailed issue description in English.
174 &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help with resolving this issue.
175 &quot;resolution&quot;: &quot;A String&quot;, # Whether the issue can be resolved by the merchant.
176 &quot;servability&quot;: &quot;A String&quot;, # How this issue affects serving of the offer.
177 },
178 ],
179 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#productStatus`&quot;
180 &quot;lastUpdateDate&quot;: &quot;A String&quot;, # Date on which the item has been last updated, in ISO 8601 format.
181 &quot;link&quot;: &quot;A String&quot;, # The link to the product.
182 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product for which status is reported.
183 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
184 },
185 },
186 ],
187 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#productstatusesCustomBatchResponse`&quot;.
188 }</pre>
189 </div>
190
191 <div class="method">
192 <code class="details" id="get">get(merchantId, productId, destinations=None, x__xgafv=None)</code>
193 <pre>Gets the status of a product from your Merchant Center account.
194
195 Args:
196 merchantId: string, The ID of the account that contains the product. This account cannot be a multi-client account. (required)
197 productId: string, The REST ID of the product. (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
204 Returns:
205 An object of the form:
206
207 { # The status of a product, that is, information about a product computed asynchronously.
208 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
209 &quot;destinationStatuses&quot;: [ # The intended destinations for the product.
210 {
211 &quot;approvedCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
212 &quot;A String&quot;,
213 ],
214 &quot;channel&quot;: &quot;A String&quot;, # The channel of the destination.
215 &quot;destination&quot;: &quot;A String&quot;, # The name of the destination
216 &quot;disapprovedCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
217 &quot;A String&quot;,
218 ],
219 &quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
220 &quot;A String&quot;,
221 ],
222 &quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
223 },
224 ],
225 &quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
226 &quot;itemLevelIssues&quot;: [ # A list of all issues associated with the product.
227 {
228 &quot;applicableCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
229 &quot;A String&quot;,
230 ],
231 &quot;attributeName&quot;: &quot;A String&quot;, # The attribute&#x27;s name, if the issue is caused by a single attribute.
232 &quot;code&quot;: &quot;A String&quot;, # The error code of the issue.
233 &quot;description&quot;: &quot;A String&quot;, # A short issue description in English.
234 &quot;destination&quot;: &quot;A String&quot;, # The destination the issue applies to.
235 &quot;detail&quot;: &quot;A String&quot;, # A detailed issue description in English.
236 &quot;documentation&quot;: &quot;A String&quot;, # The URL of a web page to help with resolving this issue.
237 &quot;resolution&quot;: &quot;A String&quot;, # Whether the issue can be resolved by the merchant.
238 &quot;servability&quot;: &quot;A String&quot;, # How this issue affects serving of the offer.
239 },
240 ],
241 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#productStatus`&quot;
242 &quot;lastUpdateDate&quot;: &quot;A String&quot;, # Date on which the item has been last updated, in ISO 8601 format.
243 &quot;link&quot;: &quot;A String&quot;, # The link to the product.
244 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product for which status is reported.
245 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
246 }</pre>
247 </div>
248
249 <div class="method">
250 <code class="details" id="list">list(merchantId, destinations=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
251 <pre>Lists the statuses of the products in your Merchant Center account.
252
253 Args:
254 merchantId: string, The ID of the account that contains the products. This account cannot be a multi-client account. (required)
255 destinations: string, If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. (repeated)
256 maxResults: integer, The maximum number of product statuses to return in the response, used for paging. The default value is 25. The maximum value is 250.
257 pageToken: string, The token returned by the previous request.
258 x__xgafv: string, V1 error format.
259 Allowed values
260 1 - v1 error format
261 2 - v2 error format
262
263 Returns:
264 An object of the form:
265
266 {
267 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#productstatusesListResponse`&quot;.
268 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of products statuses.
269 &quot;resources&quot;: [
270 { # The status of a product, that is, information about a product computed asynchronously.
271 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
272 &quot;destinationStatuses&quot;: [ # The intended destinations for the product.
273 {
274 &quot;approvedCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
275 &quot;A String&quot;,
276 ],
277 &quot;channel&quot;: &quot;A String&quot;, # The channel of the destination.
278 &quot;destination&quot;: &quot;A String&quot;, # The name of the destination
279 &quot;disapprovedCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
280 &quot;A String&quot;,
281 ],
282 &quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
283 &quot;A String&quot;,
284 ],
285 &quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
286 },
287 ],
288 &quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
289 &quot;itemLevelIssues&quot;: [ # A list of all issues associated with the product.
290 {
291 &quot;applicableCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
292 &quot;A String&quot;,
293 ],
294 &quot;attributeName&quot;: &quot;A String&quot;, # The attribute&#x27;s name, if the issue is caused by a single attribute.
295 &quot;code&quot;: &quot;A String&quot;, # The error code of the issue.
296 &quot;description&quot;: &quot;A String&quot;, # A short issue description in English.
297 &quot;destination&quot;: &quot;A String&quot;, # The destination the issue applies to.
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;resolution&quot;: &quot;A String&quot;, # Whether the issue can be resolved by the merchant.
301 &quot;servability&quot;: &quot;A String&quot;, # How this issue affects serving of the offer.
302 },
303 ],
304 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#productStatus`&quot;
305 &quot;lastUpdateDate&quot;: &quot;A String&quot;, # Date on which the item has been last updated, in ISO 8601 format.
306 &quot;link&quot;: &quot;A String&quot;, # The link to the product.
307 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product for which status is reported.
308 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
309 },
310 ],
311 }</pre>
312 </div>
313
314 <div class="method">
315 <code class="details" id="list_next">list_next()</code>
316 <pre>Retrieves the next page of results.
317
318 Args:
319 previous_request: The request for the previous page. (required)
320 previous_response: The response from the request for the previous page. (required)
321
322 Returns:
323 A request object that you can call &#x27;execute()&#x27; on to request the next
324 page. Returns None if there are no more items in the collection.
325 </pre>
326 </div>
327
328 </body></html>