Method: monetization.subscriptions.basePlans.deactivate
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ปิดใช้งานแพ็กเกจเริ่มต้น เมื่อปิดใช้งานแล้ว แพ็กเกจเริ่มต้นจะไม่สามารถสมัครใช้บริการได้สำหรับสมาชิกใหม่ แต่สมาชิกเดิมจะยังคงสมัครใช้บริการต่อไปได้
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ต้องระบุ แอปหลัก (ชื่อแพ็กเกจ) ของแพ็กเกจเริ่มต้นที่จะปิดใช้งาน
|
productId |
string
ต้องระบุ การสมัครใช้บริการหลัก (รหัส) ของแพ็กเกจเริ่มต้นที่จะปิดใช้งาน
|
basePlanId |
string
ต้องระบุ รหัสแพ็กเกจเริ่มต้นที่ไม่ซ้ำกันของแพ็กเกจเริ่มต้นที่จะปิดใช้งาน
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
ไม่บังคับ ความคลาดเคลื่อนของเวลาในการตอบสนองสำหรับการนำไปใช้งานการอัปเดตผลิตภัณฑ์นี้ ค่าเริ่มต้นคือคำนึงถึงความล่าช้า
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Subscription
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-12-17 UTC"],[[["Deactivates a base plan, making it unavailable to new subscribers while existing subscribers retain access."],["Requires a POST request to a specific endpoint with package name, product ID, and base plan ID as path parameters."],["Optionally accepts a request body specifying the latency tolerance for the product update propagation."],["Upon success, the response returns a Subscription object."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details the process for deactivating a base plan for an Android app subscription. The key action is a `POST` HTTP request to a specified URL, including `packageName`, `productId`, and `basePlanId` as required path parameters. The request body can optionally include a `latencyTolerance` field. Upon successful deactivation, existing subscribers maintain their subscriptions. The response body returns an instance of `Subscription`. This operation requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope.\n"]]