REST Resource: edits.countryavailability

  • TrackCountryAvailability provides information on where your app's content is available per track.

  • You can choose to sync a track's availability with the production track or specify countries individually.

  • TrackTargetedCountry represents a single country where track content is available, identified by a two-letter CLDR code.

  • The "get" method allows you to retrieve country availability information.

Resource: TrackCountryAvailability

Resource for per-track country availability information.

JSON representation
{
  "syncWithProduction": boolean,
  "countries": [
    {
      object (TrackTargetedCountry)
    }
  ],
  "restOfWorld": boolean
}
Fields
syncWithProduction

boolean

Whether this track's availability is synced with the default production track. See https://support.google.com/googleplay/android-developer/answer/7550024 for more information on syncing country availability with production.

Note that if this is true, the returned "countries" and "restOfWorld" fields will reflect the values for the default production track.

countries[]

object (TrackTargetedCountry)

A list of one or more countries where artifacts in this track are available.

This list includes all countries that are targeted by the track, even if only specific carriers are targeted in that country.

restOfWorld

boolean

Whether artifacts in this track are available to "rest of the world" countries.

TrackTargetedCountry

Representation of a single country where the contents of a track are available.

JSON representation
{
  "countryCode": string
}
Fields
countryCode

string

The country to target, as a two-letter CLDR code.

Methods

get

Gets country availability.

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.