AI-generated Key Takeaways
-
An app recovery action with a recovery status of DRAFT can be created, but this action does not execute the recovery.
-
The HTTP request to create an app recovery action uses a POST method to a URL that includes the package name of the app.
-
The request body for creating an app recovery action requires specifying targeting criteria and the type of recovery action, such as a remote in-app update.
-
A successful response to creating an app recovery action will contain a newly created instance of AppRecoveryAction.
-
The action type RemoteInAppUpdate is represented by an object that includes a boolean field
isRemoteInAppUpdateRequested
which must be set to true if this action type is desired.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- RemoteInAppUpdate
- Try it!
Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
packageName |
Required. Package name of the app on which recovery action is performed. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "targeting": { object ( |
Fields | |
---|---|
targeting |
Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. |
Union field recovery_action . Type of app recovery action to be performed. Required. recovery_action can be only one of the following: |
|
remoteInAppUpdate |
Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes. |
Response body
If successful, the response body contains a newly created instance of AppRecoveryAction
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
RemoteInAppUpdate
Object representation for Remote in-app update action type.
JSON representation |
---|
{ "isRemoteInAppUpdateRequested": boolean } |
Fields | |
---|---|
isRemoteInAppUpdateRequested |
Required. Set to true if Remote In-App Update action type is needed. |