Method: apprecovery.addTargeting
복구 작업 타겟팅을 점진적으로 업데이트합니다. 복구 작업 생성 시 선택된 기준만 확장할 수 있습니다.
HTTP 요청
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting
URL은 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 )
모든 사용자를 타겟팅합니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-12-18(UTC)
[null,null,["최종 업데이트: 2024-12-18(UTC)"],[[["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"]]