Method: monetization.subscriptions.patch
HTTP 요청
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{subscription.packageName}/subscriptions/{subscription.productId}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
subscription.packageName |
string
변경할 수 없습니다. 상위 앱의 패키지 이름입니다.
|
subscription.productId |
string
변경할 수 없습니다. 제품의 고유한 제품 ID입니다. 상위 앱 내에서 고유합니다. 제품 ID는 소문자(a~z), 숫자(0~9), 밑줄(_), 점(.)으로 이루어져 있어야 합니다. 소문자나 숫자로 시작하고 1~40자 길이여야 합니다.
|
쿼리 매개변수
매개변수 |
updateMask |
string (FieldMask format)
필수 항목입니다. 업데이트할 필드 목록입니다. 정규화된 필드 이름의 쉼표로 구분된 목록입니다. 예: "user.displayName,photo"
|
regionsVersion |
object (RegionsVersion )
필수 항목입니다. 정기 결제에 사용되는 사용 가능한 지역 버전입니다.
|
allowMissing |
boolean
선택사항입니다. true로 설정되었는데 주어진 packageName 및 productId가 있는 정기 결제가 존재하지 않는 경우 정기 결제가 생성됩니다. 새 정기 결제가 생성되면 updateMask는 무시됩니다.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
선택사항입니다. 이 제품 업데이트의 전파에 허용되는 지연 시간입니다. 기본값은 latency-sensitive입니다.
|
요청 본문
요청 본문에 Subscription
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 Subscription
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/androidpublisher
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-12-17(UTC)
[null,null,["최종 업데이트: 2024-12-17(UTC)"],[[["Updates an existing subscription, or creates a new one if it doesn't exist and `allowMissing` is set to true."],["Uses `PATCH` HTTP request with specified path and query parameters to update the subscription details."],["Requires providing the `packageName`, `productId`, `updateMask`, and `regionsVersion` for updates."],["Request and response bodies contain a `Subscription` object, allowing access to subscription data."],["Needs `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This document outlines the process for updating an existing subscription via a `PATCH` HTTP request to the Android Publisher API. Key actions include specifying the subscription to update using `packageName` and `productId` in the URL path. Required `updateMask` and `regionsVersion` query parameters detail the fields to modify and the region version. The request body uses the `Subscription` resource. Optional parameters `allowMissing` allows creating missing subscriptions, and `latencyTolerance` adjusts update propagation. Successful requests return an updated `Subscription` resource. The process requires `androidpublisher` authorization scope.\n"]]