AI-generated Key Takeaways
- 
          
Use this batch service to retrieve the statuses of multiple products in a single request.
 - 
          
The request body utilizes
ProductstatusesCustomBatchRequestcontaining individual product requests. - 
          
The response body includes an array of
ProductstatusesCustomBatchResponseEntry, each detailing a product's status. - 
          
This service requires authorization with the
https://www.googleapis.com/auth/contentscope. 
- HTTP request
 - Request body
 - Response body
 - Authorization scopes
 - ProductstatusesCustomBatchRequest
 - ProductstatusesCustomBatchRequestEntry
 - ProductstatusesCustomBatchResponseEntry
 - Try it!
 
Gets the statuses of multiple products in a single request.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/productstatuses/batch
Request body
The request body contains an instance of ProductstatusesCustomBatchRequest.
Response body
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "entries": [
    {
      object ( | 
                  
| Fields | |
|---|---|
entries[] | 
                    
                       
 The result of the execution of the batch requests.  | 
                  
kind | 
                    
                       
 Identifies what kind of resource this is. Value: the fixed string "  | 
                  
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
ProductstatusesCustomBatchRequest
| JSON representation | 
|---|
{
  "entries": [
    {
      object ( | 
              
| Fields | |
|---|---|
entries[] | 
                
                   
 The request entries to be processed in the batch.  | 
              
ProductstatusesCustomBatchRequestEntry
A batch entry encoding a single non-batch productstatuses request.
| JSON representation | 
|---|
{ "batchId": integer, "merchantId": string, "method": string, "productId": string, "includeAttributes": boolean, "destinations": [ string ] }  | 
              
| Fields | |
|---|---|
batchId | 
                
                   
 An entry ID, unique within the batch request.  | 
              
merchantId | 
                
                   
 The ID of the managing account.  | 
              
method | 
                
                   
 The method of the batch entry. Acceptable values are: 
  | 
              
productId | 
                
                   
 The ID of the product whose status to get.  | 
              
includeAttributes | 
                
                   
 Deprecated: Setting this field has no effect and attributes are never included.  | 
              
destinations[] | 
                
                   
 If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.  | 
              
ProductstatusesCustomBatchResponseEntry
A batch entry encoding a single non-batch productstatuses response.
| JSON representation | 
|---|
{ "batchId": integer, "kind": string, "productStatus": { object (  | 
              
| Fields | |
|---|---|
batchId | 
                
                   
 The ID of the request entry this entry responds to.  | 
              
kind | 
                
                   
 Identifies what kind of resource this is. Value: the fixed string "  | 
              
productStatus | 
                
                   
 The requested product status. Only defined if the request was successful.  | 
              
errors | 
                
                   
 A list of errors for failed custombatch entries.  |