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