AI-generated Key Takeaways
- 
          UrlNotificationis the resource used for communicating URL updates and deletions to Google's Indexing API.
- 
          The UrlNotificationobject utilizesurl,type, andnotifyTimefields to provide details about web document events.
- 
          UrlNotificationTypedefines 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. 
Resource: UrlNotification
UrlNotification is the resource used in all Indexing API calls. It describes one event in the life cycle of a Web Document.
| JSON representation | |
|---|---|
| 
{
  "url": string,
  "type": enum( | |
| Fields | |
|---|---|
| url | 
 
                    The object of this notification. The URL must be owned by the publisher of this notification and, in case of  | 
| type | 
 The URL life cycle event that Google is being notified about. | 
| notifyTime | 
 
 Creation timestamp for this notification. Users should not specify it, the field is ignored at the request time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:  | 
UrlNotificationType
Specifies the different events that can happen to a given URL.
| Enums | |
|---|---|
| URL_NOTIFICATION_TYPE_UNSPECIFIED | Unspecified. | 
| URL_UPDATED | The given URL (Web document) has been updated. | 
| URL_DELETED | The given URL (Web document) has been deleted. | 
| Methods | |
|---|---|
| 
 | Gets metadata about a Web Document. | 
| 
 | Notifies that a URL has been updated or deleted. |