REST Resource: accounts.notificationsubscriptions
Resource: NotificationSubscription
Merepresentasikan langganan notifikasi yang dimiliki oleh akun Penjual.
Representasi JSON |
{
"name": string,
"registeredEvent": enum (NotificationEventType ),
"callBackUri": string,
// Union field interested_in can be only one of the following:
"allManagedAccounts": boolean,
"targetAccount": string
// End of list of possible types for union field interested_in .
} |
Kolom |
name |
string
Hanya output. name konfigurasi notifikasi. Dibuat oleh Content API setelah pembuatan NotificationSubscription baru. account mewakili ID penjual dari penjual yang memiliki konfigurasi. Format: accounts/{account}/notificationsubscriptions/{notificationSubscription}
|
registeredEvent |
enum (NotificationEventType )
Peristiwa yang ingin diberitahukan kepada penjual.
|
callBackUri |
string
URL yang akan digunakan untuk mengirim notifikasi ke penjual.
|
Kolom union interested_in . interested_in hanya dapat berupa salah satu dari hal berikut:
|
allManagedAccounts |
boolean
Jika nilai ini benar, akun yang meminta akan diberi tahu tentang peristiwa yang ditentukan untuk semua akun terkelola (dapat berupa sub-akun atau akun tertaut lainnya) termasuk akun yang baru ditambahkan setiap hari.
|
targetAccount |
string
name akun yang notifikasinya ingin Anda terima. Format: accounts/{account}
|
NotificationEventType
Merepresentasikan jenis peristiwa yang notifikasinya ingin diterima penjual.
Enum |
NOTIFICATION_EVENT_TYPE_UNSPECIFIED |
Jenis peristiwa notifikasi tidak ditentukan. |
PRODUCT_STATUS_CHANGE |
Notifikasi perubahan status produk, misalnya saat produk tidak disetujui. |
Metode |
|
Membuat langganan notifikasi untuk bisnis. |
|
Menghapus langganan notifikasi untuk penjual. |
|
Mendapatkan langganan notifikasi untuk akun. |
|
Mendapatkan semua langganan notifikasi untuk penjual. |
|
Memperbarui langganan notifikasi yang ada untuk penjual. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-24 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-24 UTC."],[[["NotificationSubscription enables merchants to receive notifications about specific events related to their account."],["Merchants can configure which events trigger notifications, such as product status changes, and provide a callback URL to receive them."],["The API offers methods to create, delete, retrieve, and update notification subscriptions."],["It allows merchants to receive notifications for events occurring on all managed accounts or a specific target account."]]],["Merchants can create `NotificationSubscription` resources to receive updates about specific events. Each subscription includes a `name`, a `registeredEvent` (e.g., `PRODUCT_STATUS_CHANGE`), and a `callBackUri` for notification delivery. Merchants can specify if they want to receive events regarding `allManagedAccounts` or a `targetAccount`. Available methods include `create`, `delete`, `get`, `list`, and `patch` for managing these subscriptions. Notification event type can be `PRODUCT_STATUS_CHANGE` or `NOTIFICATION_EVENT_TYPE_UNSPECIFIED`.\n"]]