REST Resource: edits.expansionfiles

  • An ExpansionFile resource is used to manage expansion files for APKs.

  • The JSON representation of an ExpansionFile includes fields for referencesVersion and fileSize.

  • Available methods for interacting with ExpansionFiles include get, patch, update, and upload.

  • Potential HTTP error codes when using this resource include 5xx for server errors and 409 for concurrency issues.

Resource: ExpansionFile

An expansion file. The resource for ExpansionFilesService.

JSON representation
{
  "referencesVersion": integer,
  "fileSize": string
}
Fields
referencesVersion

integer

If set, this APK's expansion file references another APK's expansion file. The fileSize field will not be set.

fileSize

string (int64 format)

If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes.

Methods

get

Fetches the expansion file configuration for the specified APK.

patch

Patches the APK's expansion file configuration to reference another APK's expansion file.

update

Updates the APK's expansion file configuration to reference another APK's expansion file.

upload

Uploads a new expansion file and attaches to the specified APK.

Error codes

The operations of this resource, return the following HTTP error codes:

Error code Reason Resolution
5xx 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.

409 Concurrency update error.

There was an attempt to update an object that is being updated. For example, a purchase is getting acknowledged by calling the Play Billing Library's acknowledgePurchase() method and by calling the Play Developer API's purchases.products.acknowledge at the same time.

Retry your request.