Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: accounts.updateNotifications
กําหนดการตั้งค่าการแจ้งเตือน PubSub สําหรับบัญชีที่จะแจ้งให้ Business Profile ทราบหัวข้อที่จะส่งการแจ้งเตือน PubSub
- รีวิวใหม่สำหรับสถานที่ที่บัญชีเป็นผู้ดูแลจัดการ
- รีวิวที่อัปเดตสำหรับสถานที่ที่บัญชีดูแล
GoogleUpdates
ใหม่สำหรับสถานที่ที่จัดการโดยบัญชี
แต่ละบัญชีจะมีทรัพยากรการตั้งค่าการแจ้งเตือนเพียงรายการเดียว และสามารถตั้งค่าหัวข้อ PubSub ได้เพียงรายการเดียว
คำขอ HTTP
PUT https://mybusiness.googleapis.com/v4/{name=accounts/*/notifications}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ชื่อทรัพยากรการตั้งค่าการแจ้งเตือน
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Notifications
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Notifications
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-01 UTC
[null,null,["อัปเดตล่าสุด 2023-12-01 UTC"],[[["This documentation describes how to set Pub/Sub notification settings for a Business Profile account using the deprecated `Notifications` resource."],["These settings determine which topic receives notifications for new or updated reviews and Google Updates for locations managed by the account."],["The `Notifications` resource uses a PUT request and requires specifying the account name in the path parameters."],["To use this API, you need to include either `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage` in your OAuth scope."],["It is recommended to use the Notifications API (`https://developers.google.com/my-business/reference/notifications/rest/v1/accounts/updateNotificationSetting`) instead of this deprecated resource."]]],[]]