Method: monetization.subscriptions.basePlans.activate
เปิดใช้งานแพ็กเกจเริ่มต้น เมื่อเปิดใช้งานแล้ว แพ็กเกจเริ่มต้นจะพร้อมให้บริการแก่สมาชิกใหม่
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate
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
[null,null,["อัปเดตล่าสุด 2024-12-17 UTC"],[[["Activates a specified base plan, making it available to new subscribers within a parent subscription and app package."],["Requires a POST request to a specific endpoint, providing the package name, product ID, and base plan ID in the URL path."],["Optionally accepts a request body to define the latency tolerance for the product update propagation."],["Upon successful activation, the response returns details of the updated subscription."],["Requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines how to activate a base plan for subscriptions via an HTTP POST request. The request targets a specific application (`packageName`), subscription (`productId`), and base plan (`basePlanId`). The request body can optionally include a `latencyTolerance` field, defaulting to latency-sensitive. Upon success, the response returns a `Subscription` instance. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. The URL structure utilizes gRPC Transcoding.\n"]]