AI-generated Key Takeaways
-
This document outlines how to incrementally update targeting for a recovery action by adding criteria such as regions or Android SDK versions, noting that only criteria selected during the recovery action creation can be expanded.
-
The update is performed using an HTTP POST request to a specific URL that includes the package name and app recovery ID as path parameters.
-
The request body contains a
targetingUpdate
object specifying the new targeting criteria. -
If the request is successful, the response body is empty.
-
The required authorization scope for this operation is
https://www.googleapis.com/auth/androidpublisher
.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- TargetingUpdate
- Try it!
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 |
Required. Package name of the app for which recovery action is to be updated. |
appRecoveryId |
Required. ID corresponding to the app recovery action. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"targetingUpdate": {
object ( |
Fields | |
---|---|
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 |
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 |
Additional regions are targeted by the recovery action. |
androidSdks |
Additional android sdk levels are targeted by the recovery action. |
allUsers |
All users are targeted. |