Method: apprecovery.addTargeting
逐步更新恢复操作的定位条件信息。请注意,只有在创建恢复操作的过程中选择的条件才可以展开。
HTTP 请求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting
网址采用 gRPC 转码语法。
路径参数
参数 |
packageName |
string
必需。应用(要为其更新恢复操作)的软件包名称。
|
appRecoveryId |
string (int64 format)
必需。与应用恢复操作对应的 ID。
|
请求正文
请求正文中包含结构如下的数据:
字段 |
targetingUpdate |
object (TargetingUpdate )
指定定位条件更新,例如地区、Android SDK 版本等。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
TargetingUpdate
更新定位条件的类型。请注意,这始终是一个子集定位条件。
JSON 表示法 |
{
// 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 .
} |
字段 |
联合字段 criteria 。恢复操作的定位条件。请注意,除非定位条件不是 all_users,否则定位条件应始终与应用恢复操作创建过程中使用的条件相同。如果两者不同,更新将被拒。如果之前将定位条件设置为定位 all_users,则无法进行定位条件更新。如果不能根据请求扩展定位条件组,则会抛出错误。criteria 只能是下列其中一项: |
regions |
object (Regions )
其他地区按恢复操作进行定位。
|
androidSdks |
object (AndroidSdks )
其他 Android SDK 级别按恢复操作进行定位。
|
allUsers |
object (AllUsers )
定位所有用户。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-18。
[null,null,["最后更新时间 (UTC):2024-12-18。"],[[["Incrementally update targeting for a recovery action, expanding only criteria selected during its creation."],["Utilize an HTTP POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting` to initiate the update."],["The request body must contain a `targetingUpdate` object specifying updates for regions, Android SDK versions, or user targeting."],["Targeting updates must align with the criteria initially set for the recovery action; attempting to expand beyond those parameters will result in an error."],["Successful updates result in an empty response body."]]],["This outlines how to update the targeting of an app recovery action using a `POST` request to a specific URL. The request requires the app's package name and recovery action ID as path parameters. The request body should contain a `targetingUpdate` object, specifying criteria like `regions` or `androidSdks` to expand the targeted group, the criteria used must be the same that was used in creation of the action. If successful, the response is empty; requires an `androidpublisher` authorization scope.\n"]]