Index
-
NotificationsApiService
(interface) -
CreateNotificationSubscriptionRequest
(message) -
DeleteNotificationSubscriptionRequest
(message) -
GetNotificationSubscriptionRequest
(message) -
ListNotificationSubscriptionsRequest
(message) -
ListNotificationSubscriptionsResponse
(message) -
NotificationSubscription
(message) -
NotificationSubscription.NotificationEventType
(enum) -
UpdateNotificationSubscriptionRequest
(message)
NotificationsApiService
Service to manage notification subscriptions for merchants
rpc CreateNotificationSubscription(
CreateNotificationSubscriptionRequest
) returns ( NotificationSubscription
)
Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount.
We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type):
-
Subscription for all managed accounts + subscription for self.
-
Multiple "partial" subscriptions for managed accounts + subscription for self.
we will not allow (per business as a subscriber per event type):
-
Multiple self subscriptions.
-
Multiple "all managed accounts" subscriptions.
-
"All managed accounts" subscription and partial subscriptions at the same time.
-
Multiple partial subscriptions for the same target account.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview .
-
rpc DeleteNotificationSubscription(
DeleteNotificationSubscriptionRequest
) returns ( Empty
)
Deletes a notification subscription for a merchant.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview .
-
rpc GetNotificationSubscription(
GetNotificationSubscriptionRequest
) returns ( NotificationSubscription
)
Gets notification subscriptions for an account.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview .
-
rpc ListNotificationSubscriptions(
ListNotificationSubscriptionsRequest
) returns ( ListNotificationSubscriptionsResponse
)
Gets all the notification subscriptions for a merchant.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview .
-
rpc UpdateNotificationSubscription(
UpdateNotificationSubscriptionRequest
) returns ( NotificationSubscription
)
Updates an existing notification subscription for a merchant.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview .
-
CreateNotificationSubscriptionRequest
Request message for the CreateNotificationSubscription method.
Fields | |
---|---|
parent
|
Required. The merchant account that owns the new notification subscription. Format: |
notification_subscription
|
Required. The notification subscription to create. |
DeleteNotificationSubscriptionRequest
Request message for the DeleteNotificationSubscription method.
Fields | |
---|---|
name
|
Required. The name of the notification subscription to be deleted. |
GetNotificationSubscriptionRequest
Request message for the GetNotificationSubscription method.
Fields | |
---|---|
name
|
Required. The |
ListNotificationSubscriptionsRequest
Request message for the ListNotificationSubscription method.
Fields | |
---|---|
parent
|
Required. The merchant account who owns the notification subscriptions. Format: |
page_size
|
The maximum number of notification subscriptions to return in a page. The default value for |
page_token
|
Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token. |
ListNotificationSubscriptionsResponse
Response message for the ListNotificationSubscription method.
Fields | |
---|---|
notification_subscriptions[]
|
The list of notification subscriptions requested by the merchant. |
next_page_token
|
A token, which can be sent as |
NotificationSubscription
Represents a notification subscription owned by a Merchant account.
name
string
Output only. The name
of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription
. The account
represents the merchant ID of the merchant that owns the configuration. Format: accounts/{account}/notificationsubscriptions/{notification_subscription}
registered_event
The event that the merchant wants to be notified about.
call_back_uri
string
URL to be used to push the notification to the merchant.
Union field interested_in
.
interested_in
can be only one of the following:
all_managed_accounts
bool
If this value is true, the requesting account is notified of the specified event for all managed accounts (can be subaccounts or other linked accounts) including newly added accounts on a daily basis.
target_account
string
The name
of the account you want to receive notifications for. Format: accounts/{account}
NotificationEventType
Represents the event type that the merchant is interested in receiving notifications for.
Enums | |
---|---|
NOTIFICATION_EVENT_TYPE_UNSPECIFIED
|
Notifications event type is unspecified. |
PRODUCT_STATUS_CHANGE
|
Notification of product status changes, for example when product becomes disapproved. |
UpdateNotificationSubscriptionRequest
Request message for the UpdateNotificationSubscription method.
Fields | |
---|---|
notification_subscription
|
Required. The new version of the notification subscription that should be updated. |
update_mask
|
List of fields being updated. |