| Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 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.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> | 
 | 82 | <p class="firstline">Retrieves the status of a Merchant Center account.</p> | 
 | 83 | <p class="toc_element"> | 
 | 84 |   <code><a href="#list">list(merchantId, pageToken=None, maxResults=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>A description of how to use this function | 
 | 93 |  | 
 | 94 | Args: | 
 | 95 |   body: object, The request body. (required) | 
 | 96 |     The object takes the form of: | 
 | 97 |  | 
 | 98 | { | 
| Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 99 |     "entries": [ # The request entries to be processed in the batch. | 
 | 100 |       { # A batch entry encoding a single non-batch accountstatuses request. | 
| Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 101 |         "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 |  | 
 | 110 | Returns: | 
 | 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 Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 115 |     "entries": [ # The result of the execution of the batch requests. | 
 | 116 |       { # A batch entry encoding a single non-batch accountstatuses response. | 
| Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 117 |         "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. | 
 | 137 |               "exampleItems": [ # Example items featuring the issue. | 
 | 138 |                 { # 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. | 
 | 139 |                   "itemId": "A String", # Unique item ID as specified in the uploaded product data. | 
 | 140 |                   "submittedValue": "A String", # The item value that was submitted. | 
 | 141 |                   "link": "A String", # Landing page of the item. | 
 | 142 |                   "valueOnLandingPage": "A String", # The actual value on the landing page. | 
 | 143 |                   "title": "A String", # Title of the item. | 
 | 144 |                 }, | 
 | 145 |               ], | 
 | 146 |               "submittedValue": "A String", # Submitted value that causes the issue. | 
 | 147 |               "numItems": 42, # Number of items in the account found to have the said issue. | 
 | 148 |               "id": "A String", # Issue identifier. | 
 | 149 |             }, | 
 | 150 |           ], | 
 | 151 |           "accountId": "A String", # The ID of the account for which the status is reported. | 
 | 152 |         }, | 
 | 153 |       }, | 
 | 154 |     ], | 
 | 155 |   }</pre> | 
 | 156 | </div> | 
 | 157 |  | 
 | 158 | <div class="method"> | 
 | 159 |     <code class="details" id="get">get(merchantId, accountId)</code> | 
 | 160 |   <pre>Retrieves the status of a Merchant Center account. | 
 | 161 |  | 
 | 162 | Args: | 
 | 163 |   merchantId: string, The ID of the managing account. (required) | 
 | 164 |   accountId: string, The ID of the account. (required) | 
 | 165 |  | 
 | 166 | Returns: | 
 | 167 |   An object of the form: | 
 | 168 |  | 
 | 169 |     { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time. | 
 | 170 |     "kind": "content#accountStatus", # Identifies what kind of resource this is. Value: the fixed string "content#accountStatus". | 
 | 171 |     "dataQualityIssues": [ # A list of data quality issues. | 
 | 172 |       { | 
 | 173 |         "displayedValue": "A String", # Actual value displayed on the landing page. | 
 | 174 |         "severity": "A String", # Severity of the problem. | 
 | 175 |         "lastChecked": "A String", # Last time the account was checked for this issue. | 
 | 176 |         "country": "A String", # Country for which this issue is reported. | 
 | 177 |         "exampleItems": [ # Example items featuring the issue. | 
 | 178 |           { # 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. | 
 | 179 |             "itemId": "A String", # Unique item ID as specified in the uploaded product data. | 
 | 180 |             "submittedValue": "A String", # The item value that was submitted. | 
 | 181 |             "link": "A String", # Landing page of the item. | 
 | 182 |             "valueOnLandingPage": "A String", # The actual value on the landing page. | 
 | 183 |             "title": "A String", # Title of the item. | 
 | 184 |           }, | 
 | 185 |         ], | 
 | 186 |         "submittedValue": "A String", # Submitted value that causes the issue. | 
 | 187 |         "numItems": 42, # Number of items in the account found to have the said issue. | 
 | 188 |         "id": "A String", # Issue identifier. | 
 | 189 |       }, | 
 | 190 |     ], | 
 | 191 |     "accountId": "A String", # The ID of the account for which the status is reported. | 
 | 192 |   }</pre> | 
 | 193 | </div> | 
 | 194 |  | 
 | 195 | <div class="method"> | 
 | 196 |     <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code> | 
 | 197 |   <pre>Lists the statuses of the sub-accounts in your Merchant Center account. | 
 | 198 |  | 
 | 199 | Args: | 
 | 200 |   merchantId: string, The ID of the managing account. (required) | 
 | 201 |   pageToken: string, The token returned by the previous request. | 
 | 202 |   maxResults: integer, The maximum number of account statuses to return in the response, used for paging. | 
 | 203 |  | 
 | 204 | Returns: | 
 | 205 |   An object of the form: | 
 | 206 |  | 
 | 207 |     { | 
| Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 208 |     "nextPageToken": "A String", # The token for the retrieval of the next page of account statuses. | 
| Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 209 |     "kind": "content#accountstatusesListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountstatusesListResponse". | 
 | 210 |     "resources": [ | 
 | 211 |       { # The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time. | 
 | 212 |         "kind": "content#accountStatus", # Identifies what kind of resource this is. Value: the fixed string "content#accountStatus". | 
 | 213 |         "dataQualityIssues": [ # A list of data quality issues. | 
 | 214 |           { | 
 | 215 |             "displayedValue": "A String", # Actual value displayed on the landing page. | 
 | 216 |             "severity": "A String", # Severity of the problem. | 
 | 217 |             "lastChecked": "A String", # Last time the account was checked for this issue. | 
 | 218 |             "country": "A String", # Country for which this issue is reported. | 
 | 219 |             "exampleItems": [ # Example items featuring the issue. | 
 | 220 |               { # 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. | 
 | 221 |                 "itemId": "A String", # Unique item ID as specified in the uploaded product data. | 
 | 222 |                 "submittedValue": "A String", # The item value that was submitted. | 
 | 223 |                 "link": "A String", # Landing page of the item. | 
 | 224 |                 "valueOnLandingPage": "A String", # The actual value on the landing page. | 
 | 225 |                 "title": "A String", # Title of the item. | 
 | 226 |               }, | 
 | 227 |             ], | 
 | 228 |             "submittedValue": "A String", # Submitted value that causes the issue. | 
 | 229 |             "numItems": 42, # Number of items in the account found to have the said issue. | 
 | 230 |             "id": "A String", # Issue identifier. | 
 | 231 |           }, | 
 | 232 |         ], | 
 | 233 |         "accountId": "A String", # The ID of the account for which the status is reported. | 
 | 234 |       }, | 
 | 235 |     ], | 
 | 236 |   }</pre> | 
 | 237 | </div> | 
 | 238 |  | 
 | 239 | <div class="method"> | 
 | 240 |     <code class="details" id="list_next">list_next(previous_request, previous_response)</code> | 
 | 241 |   <pre>Retrieves the next page of results. | 
 | 242 |  | 
 | 243 | Args: | 
 | 244 |   previous_request: The request for the previous page. (required) | 
 | 245 |   previous_response: The response from the request for the previous page. (required) | 
 | 246 |  | 
 | 247 | Returns: | 
 | 248 |   A request object that you can call 'execute()' on to request the next | 
 | 249 |   page. Returns None if there are no more items in the collection. | 
 | 250 |     </pre> | 
 | 251 | </div> | 
 | 252 |  | 
 | 253 | </body></html> |