Method: monetization.subscriptions.basePlans.offers.deactivate
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ปิดใช้งานข้อเสนอการสมัครใช้บริการ เมื่อปิดใช้งานแล้ว สมาชิกปัจจุบันจะยังคงสมัครรับข้อมูลได้ต่อไป แต่ข้อเสนอจะใช้ไม่ได้สำหรับสมาชิกใหม่
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName | string ต้องระบุ แอปหลัก (ชื่อแพ็กเกจ) ของข้อเสนอที่จะปิดใช้งาน |
productId | string ต้องระบุ การสมัครใช้บริการระดับบนสุด (รหัส) ของข้อเสนอที่จะปิดใช้งาน |
basePlanId | string ต้องระบุ แพ็กเกจเริ่มต้น (รหัส) หลักของข้อเสนอที่จะปิดใช้งาน |
offerId | string ต้องระบุ รหัสข้อเสนอที่ไม่ซ้ำกันของข้อเสนอที่จะปิดใช้งาน |
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
ช่อง |
latencyTolerance | enum (ProductUpdateLatencyTolerance ) ไม่บังคับ การยอมรับเวลาในการตอบสนองสำหรับการนำการอัปเดตผลิตภัณฑ์นี้ไปใช้ ค่าเริ่มต้นคือคำนึงถึงเวลาในการตอบสนอง |
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ SubscriptionOffer
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 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"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[[["Deactivates a subscription offer, preventing new subscriptions while existing ones remain active."],["Sends a POST request to the specified URL with necessary path parameters like package name, product ID, base plan ID, and offer ID."],["Optionally includes a request body specifying the latency tolerance for the update."],["Upon success, returns a SubscriptionOffer object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This API call deactivates a subscription offer for an Android app. It uses a `POST` request to a specific URL, incorporating the app's package name, subscription ID, base plan ID, and offer ID as required path parameters. The request body, in JSON format, allows for specifying `latencyTolerance`. A successful request returns data of `SubscriptionOffer`, and requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. The deactivation makes the offer unavailable to new subscribers.\n"]]