Method: urlNotifications.publish
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Powiadamia o zaktualizowaniu lub usunięciu adresu URL.
Żądanie HTTP
POST https://indexing.googleapis.com/v3/urlNotifications:publish
W adresie URL jest używana składnia adnotacji HTTP interfejsów Google API.
Treść żądania
Treść żądania zawiera wystąpienie elementu UrlNotification
.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Dane wyjściowe elementu urlNotifications.publish
Pola |
urlNotificationMetadata |
object(UrlNotificationMetadata )
Opis zdarzeń powiadomień otrzymanych dla tego adresu URL.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/indexing
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-04 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-04 UTC."],[],["The core content describes a URL notification system using the Google Indexing API. It details a `POST` request to `https://indexing.googleapis.com/v3/urlNotifications:publish` to notify about URL updates or deletions. The request body utilizes `UrlNotification`, and a successful response contains `urlNotificationMetadata`. Authorization requires the `https://www.googleapis.com/auth/indexing` OAuth scope. The API provides a feature to try out directly and conforms to the google API HTTP annotation.\n"],null,[]]