Google Play Android Developer API . generatedapks

Instance Methods

close()

Close httplib2 connections.

download(packageName, versionCode, downloadId, x__xgafv=None)

Downloads a single signed APK generated from an app bundle.

download_media(packageName, versionCode, downloadId, x__xgafv=None)

Downloads a single signed APK generated from an app bundle.

list(packageName, versionCode, x__xgafv=None)

Returns download metadata for all APKs that were generated from a given app bundle.

Method Details

close()
Close httplib2 connections.
download(packageName, versionCode, downloadId, x__xgafv=None)
Downloads a single signed APK generated from an app bundle.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: integer, Version code of the app bundle. (required)
  downloadId: string, Download ID, which uniquely identifies the APK to download. Can be obtained from the response of `generatedapks.list` method. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
download_media(packageName, versionCode, downloadId, x__xgafv=None)
Downloads a single signed APK generated from an app bundle.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: integer, Version code of the app bundle. (required)
  downloadId: string, Download ID, which uniquely identifies the APK to download. Can be obtained from the response of `generatedapks.list` method. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
list(packageName, versionCode, x__xgafv=None)
Returns download metadata for all APKs that were generated from a given app bundle.

Args:
  packageName: string, Package name of the app. (required)
  versionCode: integer, Version code of the app bundle. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response to list generated APKs.
  "generatedApks": [ # All generated APKs, grouped by the APK signing key.
    { # Download metadata for split, standalone and universal APKs, as well as asset pack slices, signed with a given key.
      "certificateSha256Hash": "A String", # SHA256 hash of the APK signing public key certificate.
      "generatedAssetPackSlices": [ # List of asset pack slices which will be served for this app bundle, signed with a key corresponding to certificate_sha256_hash.
        { # Download metadata for an asset pack slice.
          "downloadId": "A String", # Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.
          "moduleName": "A String", # Name of the module that this asset slice belongs to.
          "sliceId": "A String", # Asset slice ID.
          "version": "A String", # Asset module version.
        },
      ],
      "generatedSplitApks": [ # List of generated split APKs, signed with a key corresponding to certificate_sha256_hash.
        { # Download metadata for a split APK.
          "downloadId": "A String", # Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.
          "moduleName": "A String", # Name of the module that this APK belongs to.
          "splitId": "A String", # Split ID. Empty for the main split of the base module.
          "variantId": 42, # ID of the generated variant.
        },
      ],
      "generatedStandaloneApks": [ # List of generated standalone APKs, signed with a key corresponding to certificate_sha256_hash.
        { # Download metadata for a standalone APK.
          "downloadId": "A String", # Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.
          "variantId": 42, # ID of the generated variant.
        },
      ],
      "generatedUniversalApk": { # Download metadata for a universal APK. # Generated universal APK, signed with a key corresponding to certificate_sha256_hash. This field is not set if no universal APK was generated for this signing key.
        "downloadId": "A String", # Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.
      },
    },
  ],
}