Ora siamo su LinkedIn: per notizie e risorse della Ricerca Google su come rendere il tuo sito rilevabile,
seguici su LinkedIn.
REST Resource: urlNotifications
Risorsa: UrlNotification
UrlNotification
è la risorsa utilizzata in tutte le chiamate all'API Indexing. Descrive un evento nel ciclo di vita di un documento web.
Rappresentazione JSON |
{
"url": string,
"type": enum(UrlNotificationType ),
"notifyTime": string
} |
Campi |
url |
string
L'oggetto di questa notifica. L'URL deve essere di proprietà del publisher di questa notifica e, in caso di notifiche URL_UPDATED , deve poter essere sottoposto a scansione da parte di Google.
|
type |
enum(UrlNotificationType )
L'evento del ciclo di vita dell'URL per il quale Google riceve una notifica.
|
notifyTime |
string (Timestamp format)
Timestamp di creazione per questa notifica. Gli utenti non devono specificarlo, il campo viene ignorato al momento della richiesta. Un timestamp in formato "Zulu" UTC RFC3339, preciso al nanosecondo. Esempio: "2014-10-02T15:01:23.045123456Z" .
|
UrlNotificationType
Specifica i diversi eventi che possono accadere a un determinato URL.
Enum |
URL_NOTIFICATION_TYPE_UNSPECIFIED |
Non specificato. |
URL_UPDATED |
L'URL specificato (documento web) è stato aggiornato. |
URL_DELETED |
L'URL specificato (documento web) è stato eliminato. |
Metodi |
|
Consente di ottenere metadati relativi a un documento web. |
|
Informa che un URL è stato aggiornato o eliminato. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-02-17 UTC.
[null,null,["Ultimo aggiornamento 2025-02-17 UTC."],[[["`UrlNotification` is the resource used for communicating URL updates and deletions to Google's Indexing API."],["The `UrlNotification` object utilizes `url`, `type`, and `notifyTime` fields to provide details about web document events."],["`UrlNotificationType` defines the specific event being communicated, such as URL updates (`URL_UPDATED`) or deletions (`URL_DELETED`)."],["The Indexing API provides methods for publishing URL notifications and retrieving web document metadata."]]],["The `UrlNotification` resource represents an event in a web document's lifecycle, used within the Indexing API. It includes the document's `url` (which must be owned by the publisher and crawlable if `URL_UPDATED`), the `type` of event (`URL_UPDATED` or `URL_DELETED`), and `notifyTime`. The API provides `publish` to send updates or deletions. A `getMetadata` method provides web document's information. `UrlNotificationType` defines the event type.\n"]]