Method: apprecovery.addTargeting

Incrementally update targeting for a recovery action. Note that only the criteria selected during the creation of recovery action can be expanded.

HTTP request

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

Required. Package name of the app for which recovery action is to be updated.

appRecoveryId

string (int64 format)

Required. ID corresponding to the app recovery action.

Request body

The request body contains data with the following structure:

JSON representation
{
  "targetingUpdate": {
    object (TargetingUpdate)
  }
}
Fields
targetingUpdate

object (TargetingUpdate)

Specifies targeting updates such as regions, android sdk versions etc.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidpublisher

TargetingUpdate

Update type for targeting. Note it is always a subset Targeting.

JSON representation
{

  // Union field criteria can be only one of the following:
  "regions": {
    object (Regions)
  },
  "androidSdks": {
    object (AndroidSdks)
  },
  "allUsers": {
    object (AllUsers)
  }
  // End of list of possible types for union field criteria.
}
Fields
Union field criteria. Criteria for targeting in recovery action. Note that unless the criteria is not all_users, the criteria should always be the same as what was used during creation of app recovery action. Otherwise the update is rejected. In case criteria was previously set to target all_users, targeting update is impossible. In case the target group cannot be expanded as per the request, an error is thrown. criteria can be only one of the following:
regions

object (Regions)

Additional regions are targeted by the recovery action.

androidSdks

object (AndroidSdks)

Additional android sdk levels are targeted by the recovery action.

allUsers

object (AllUsers)

All users are targeted.