套件 google.indexing.v3

索引

UrlService

允許網頁開發人員在他們擁有的網址狀態發生變化時通知 Google。

GetUrlNotificationMetadata

rpc GetUrlNotificationMetadata(GetUrlNotificationMetadataRequest) returns (UrlNotificationMetadata)

取得網路文件的相關中繼資料。這個方法「只能」用於查詢先前在正常 Indexing API 通知中顯示的網址,包含透過此 API 接收到的最新 UrlNotification

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/indexing
PublishUrlNotification

rpc PublishUrlNotification(PublishUrlNotificationRequest) returns (PublishUrlNotificationResponse)

通知系統網址已更新或已刪除。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/indexing

GetUrlNotificationMetadataRequest

GetUrlNotificationMetadata 呼叫的輸入內容。

欄位
url

string

受到查詢的網址。

PublishUrlNotificationRequest

PublishUrlNotification 的輸入內容

欄位
url_notification

UrlNotification

通知中提供的網址事件說明。

PublishUrlNotificationResponse

PublishUrlNotification 的輸出內容

欄位
url_notification_metadata

UrlNotificationMetadata

針對此網址接收到的通知事件說明。

UrlNotification

UrlNotification 是所有 Indexing API 呼叫中都會使用的資源,用於說明網路文件生命週期中的一個事件。

欄位
url

string

此通知的物件。網址的擁有者必須為此通知的發布者;如果是 URL_UPDATED 通知,則網址「必須」可供 Google 檢索。

type

UrlNotificationType

Google 接收到的網址生命週期事件通知。

notify_time

Timestamp

此通知的建立時間戳記。使用者「不應」指定此欄位的值;此欄位在要求時會遭到忽略。

UrlNotificationMetadata

針對特定網址最近成功接收的 Indexing API 通知摘要。

欄位
url

string

這個中繼資料參照的網址。

latest_update

UrlNotification

最新接收到的 URL_UPDATED 類型通知。

latest_remove

UrlNotification

最新接收到的 URL_REMOVED 類型通知。

UrlNotificationType

說明特定網址可能發生的不同事件。

列舉
URL_NOTIFICATION_TYPE_UNSPECIFIED 未指明
URL_UPDATED 該網址 (網路文件) 已更新。
URL_DELETED 該網址 (網路文件) 已刪除。