Page Summary
-
The
Imageresource represents an uploaded image and is used by the ImagesService. -
An Image is defined by its
id,url,sha1, andsha256. -
Available methods for the Image resource include
delete,deleteall,list, andupload. -
Potential errors when working with Image resources include generic server errors (5xx) and concurrency update errors (409).
Resource: Image
An uploaded image. The resource for ImagesService.
| JSON representation |
|---|
{ "id" : string , "url" : string , "sha1" : string , "sha256" : string } |
| Fields | |
|---|---|
id
|
A unique id representing this image. |
url
|
A URL that will serve a preview of the image. |
sha1
|
A sha1 hash of the image. |
sha256
|
A sha256 hash of the image. |
Methods |
|
|---|---|
|
Deletes the image (specified by id) from the edit. |
|
Deletes all images for the specified language and image type. |
|
Lists all images. |
|
Uploads an image of the specified language and image type, and adds to the edit. |
Error codes
The operations of this resource, return the following HTTP error codes:
| Error code | Reason | Description | Resolution |
|---|---|---|---|
400
|
invalidValue
|
An invalid value was provided in the request. This is often returned for a malformed or invalid purchase token. | Correct the invalid field value in the request body or parameters based on the API reference. |
400
|
required
|
A required field or parameter is missing from the request. | Consult the API documentation to ensure all mandatory fields and parameters are included. |
403
|
userInsufficientPermission
|
The user does not have sufficient permission to perform the requested operation. | Ensure the authenticated user has the necessary permissions in the Google Play Console. See Using a service account for more details. |
404
|
notFound
|
The requested resource could not be found. | Verify the identifiers (e.g., purchase token, package name, product ID, subscription ID) are correct. |
409
|
concurrentUpdate
|
There was an attempt to update an object that is being updated concurrently. | Retry the request with exponential backoff. Avoid simultaneous modifications to the same resource. |
5xx
|
Generic error
|
Generic error in the Google Play server. | Retry your request. If the problem persists contact your Google Play account manager or submit a support request. Consider checking the Play Status Dashboard for any known outages. |

