CheckUploadStatus
Returns a list of image upload tasks created by the Upload operation.
Tasks (including both completed tasks and tasks that finished with an error) are stored for about one day.
Restrictions
The method response may contain no more than 10,000 upload tasks.
The total number of tasks that meet the specified criteria is shown in the TotalObjectsCount output parameter. If the total is more than 10,000, you must use the Limit and Offset parameters to set up paged selection in order to get all the images.
Input data
The input data structure in JSON is shown below.
{
"method": "AdImage",
"param": {
/* AdImageRequest */
"Action": (string),
"SelectionCriteria": {
/* AdImageSelectionCriteria */
"Logins": [
(string)
...
],
"AdImageUploadTaskIDS": [
(int)
...
],
"Limit": (int),
"Offset": (int)
},
}
}
Parameters are described below.
Parameter |
Description |
Required |
AdImageRequest object |
||
|
Action: CheckUploadStatus. |
Yes |
|
The |
For agencies |
AdImageSelectionCriteria object |
||
|
For agencies, an array containing usernames of clients (no more than 10) to perform the operation for. For advertisers, this parameter is ignored. |
For agencies |
|
Array containing the numbers of upload tasks. |
No |
|
The number of tasks in the response. The maximum allowed value is 10,000. If omitted, the limit is 10,000. When combined with the |
No |
|
The number of tasks that should be skipped when getting the selection. If omitted, 0 is assumed. When combined with the |
No |
Notes |
||
|
Output data
The output data structure in JSON is shown below.
{
"data": {
/* AdImageResponse */
"AdImageUploads": [
{ /* AdImage */
"Login": (string),
"AdImageUploadTaskID": (int),
"Status": (string),
"AdImageHash": (string),
"AdImageURL": (string),
"SourceURL": (string)
"Name": (string),
"Error": {
/* Error */
"FaultCode": (int),
"FaultString": (string),
"FaultDetail": (string)
}
}
...
],
"TotalObjectsCount": (int)
}
}
Parameters are described below.
Parameter |
Description |
AdImageResponse object |
|
|
Array of |
|
The total number of tasks that match the set criteria (without the |
AdImageUpload object |
|
|
Username of the image's owner. |
|
Number of the image upload task. |
|
Status of the image upload:
|
|
Hash of the image. This parameter is returned if the image was uploaded successfully. |
|
The link to the uploaded image. This parameter is returned if the image was uploaded successfully. |
|
The URL that the image was uploaded from. |
|
Caption (description) for the image. |
|
The |
Error object |
|
|
Error code. |
|
Textual message about the error. |
|
Detailed description of the reason for the error. |
Examples of input data
Python
{
'Action': 'CheckUploadStatus',
'SelectionCriteria': {
'Logins': ['agrom','larry'],
'AdImageUploadTaskIDS': [571703,571705,571707],
'Limit': 20,
'Offset': 60
}
}
PHP
array(
'Action' => 'CheckUploadStatus',
'SelectionCriteria' => array(
'Logins' => array('agrom','larry'),
'AdImageUploadTaskIDS' => array(571703,571705,571707),
'Limit' => 20,
'Offset' =60
)
)
Perl
{
'Action' => 'CheckUploadStatus',
'SelectionCriteria' ={
'Logins' => ['agrom','larry'],
'AdImageUploadTaskIDS' => [571703,571705,571707],
'Limit' => 20,
'Offset' =60
}
}