We're now on LinkedIn: For news and resources from Google Search on making your site discoverable,
follow us on LinkedIn.
REST Resource: urlNotifications
المورد: UrlNotification
UrlNotification
هو المورد المستخدَم في كل طلبات البيانات من Indexing API. ويصف هذا المورد حدثًا واحدًا في دورة حياة مستند الويب.
الحقول |
url |
string
يمثل الهدف من هذا الإشعار. يجب أن يملك ناشر هذا الإشعار عنوان URL، وفي حال الإشعارات بخصوص URL_UPDATED ، يجب أن يسمح العنوان لمحرك البحث Google بالزحف إليه.
|
type |
enum(UrlNotificationType )
يمثل الحدث الذي يطرأ على دورة حياة عنوان URL والذي يتم إرسال إشعار إلى Google بشأنه.
|
notifyTime |
string (Timestamp format)
الطابع الزمني لإنشاء هذا الإشعار. على المستخدمين عدم تحديده، ويتم تجاهل هذا الحقل في وقت الطلب. يجب أن يكون طابعًا زمنيًا بالتنسيق RFC3339 UTC "Zulu" وبدقّة تصل إلى نانوثانية. مثال: "2014-10-02T15:01:23.045123456Z"
|
UrlNotificationType
يحدّد هذا الإشعار الأحداث المختلفة التي قد تطرأ على عنوان URL معيّن.
عمليات التعداد |
URL_NOTIFICATION_TYPE_UNSPECIFIED |
غير محدد |
URL_UPDATED |
تمّ تعديل عنوان URL المحدد (مستند الويب). |
URL_DELETED |
تم حذف عنوان URL المحدّد (مستند الويب). |
الطُرق |
|
توفر هذه الطريقة بيانات وصفية حول مستند ويب. |
|
تُعلِم هذه الطريقة بأنه تم تعديل أو حذف أحد عناوين URL. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-02-17 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-02-17 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`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"]]