Method: monetization.onetimeproducts.patch
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HTTP 요청
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{oneTimeProduct.packageName}/onetimeproducts/{oneTimeProduct.productId}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
oneTimeProduct.packageName |
string
필수 항목. 변경할 수 없습니다. 상위 앱의 패키지 이름입니다.
|
oneTimeProduct.productId |
string
필수 항목입니다. 변경할 수 없습니다. 제품의 고유 제품 ID입니다. 상위 앱 내에서 고유합니다. 제품 ID는 숫자 또는 소문자로 시작해야 하며 숫자 (0~9), 소문자 (a~z), 밑줄 (_), 마침표 (.)를 포함할 수 있습니다.
|
쿼리 매개변수
매개변수 |
updateMask |
string (FieldMask format)
필수 항목입니다. 업데이트할 필드 목록입니다. 정규화된 필드 이름의 쉼표로 구분된 목록입니다. 예: "user.displayName,photo"
|
regionsVersion |
object (RegionsVersion )
필수 항목입니다. 일회성 제품에 사용되는 가용 지역의 버전입니다.
|
allowMissing |
boolean
선택사항입니다. true로 설정되었는데 주어진 packageName 및 productId의 일회성 제품이 존재하지 않는 경우 일회성 제품이 생성됩니다. 새 일회성 제품이 생성될 경우 updateMask는 무시됩니다.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
선택사항입니다. 이 제품 업데이트의 전파에 허용되는 지연 시간입니다. 기본적으로 지연 시간에 민감합니다.
|
요청 본문
요청 본문에 OneTimeProduct
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 OneTimeProduct
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/androidpublisher
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# Method: monetization.onetimeproducts.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates or updates a one-time product.\n\n### HTTP request\n\n`PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{oneTimeProduct.packageName}/onetimeproducts/{oneTimeProduct.productId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `oneTimeProduct.packageName` | `string` Required. Immutable. Package name of the parent app. |\n| `oneTimeProduct.productId` | `string` Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.). |\n\n### Query parameters\n\n| Parameters ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The list of fields to be updated. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| `regionsVersion` | `object (`[RegionsVersion](/android-publisher/api-ref/rest/v3/RegionsVersion)`)` Required. The version of the available regions being used for the one-time product. |\n| `allowMissing` | `boolean` Optional. If set to true, and the one-time product with the given packageName and productId doesn't exist, the one-time product will be created. If a new one-time product is created, updateMask is ignored. |\n| `latencyTolerance` | `enum (`[ProductUpdateLatencyTolerance](/android-publisher/api-ref/rest/v3/ProductUpdateLatencyTolerance)`)` Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive. |\n\n### Request body\n\nThe request body contains an instance of [OneTimeProduct](/android-publisher/api-ref/rest/v3/monetization.onetimeproducts#OneTimeProduct).\n\n### Response body\n\nIf successful, the response body contains an instance of [OneTimeProduct](/android-publisher/api-ref/rest/v3/monetization.onetimeproducts#OneTimeProduct).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]