# Google Play Developer API . edits . images

## Instance Methods

Deletes the image (specified by id) from the edit.

Deletes all images for the specified language and image type.

Lists all images for the specified language and image type.

Uploads a new image and adds it to the list of images for the specified language and image type.

### Method Details

`delete(packageName, editId, language, imageType, imageId)`

    Deletes the image (specified by id) from the edit.

    Args:
      packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
      editId: string, Unique identifier for this edit. (required)
      language: string, The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". (required)
      imageType: string, A parameter (required)
        Allowed values
          featureGraphic -
          icon -
          phoneScreenshots -
          promoGraphic -
          sevenInchScreenshots -
          tenInchScreenshots -
          tvBanner -
          tvScreenshots -
          wearScreenshots -
      imageId: string, Unique identifier an image within the set of images attached to this edit. (required)

`deleteall(packageName, editId, language, imageType)`

    Deletes all images for the specified language and image type.

    Args:
      packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
      editId: string, Unique identifier for this edit. (required)
      language: string, The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". (required)
      imageType: string, A parameter (required)
        Allowed values
          featureGraphic -
          icon -
          phoneScreenshots -
          promoGraphic -
          sevenInchScreenshots -
          tenInchScreenshots -
          tvBanner -
          tvScreenshots -
          wearScreenshots -

    Returns:
      An object of the form:

        {
        "deleted": [
          {
            "url": "A String", # A URL that will serve a preview of the image.
            "sha1": "A String", # A sha1 hash of the image that was uploaded.
            "id": "A String", # A unique id representing this image.
          },
        ],
      }

`list(packageName, editId, language, imageType)`

    Lists all images for the specified language and image type.

    Args:
      packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
      editId: string, Unique identifier for this edit. (required)
      language: string, The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". (required)
      imageType: string, A parameter (required)
        Allowed values
          featureGraphic -
          icon -
          phoneScreenshots -
          promoGraphic -
          sevenInchScreenshots -
          tenInchScreenshots -
          tvBanner -
          tvScreenshots -
          wearScreenshots -

    Returns:
      An object of the form:

        {
        "images": [
          {
            "url": "A String", # A URL that will serve a preview of the image.
            "sha1": "A String", # A sha1 hash of the image that was uploaded.
            "id": "A String", # A unique id representing this image.
          },
        ],
      }

`upload(packageName, editId, language, imageType, media_body=None, media_mime_type=None)`

    Uploads a new image and adds it to the list of images for the specified language and image type.

    Args:
      packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
      editId: string, Unique identifier for this edit. (required)
      language: string, The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT". (required)
      imageType: string, A parameter (required)
        Allowed values
          featureGraphic -
          icon -
          phoneScreenshots -
          promoGraphic -
          sevenInchScreenshots -
          tenInchScreenshots -
          tvBanner -
          tvScreenshots -
          wearScreenshots -
      media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
      media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.

    Returns:
      An object of the form:

        {
        "image": {
          "url": "A String", # A URL that will serve a preview of the image.
          "sha1": "A String", # A sha1 hash of the image that was uploaded.
          "id": "A String", # A unique id representing this image.
        },
      }