เราอยู่ใน LinkedIn แล้วตอนนี้: หากต้องการข่าวสารและแหล่งข้อมูลจาก Google Search เกี่ยวกับการทำให้เว็บไซต์ของคุณค้นพบได้ โปรด
ติดตามเราใน 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 หนึ่งๆ
Enum |
URL_NOTIFICATION_TYPE_UNSPECIFIED |
ไม่ระบุ |
URL_UPDATED |
มีการอัปเดต URL ที่กำหนด (เอกสารในเว็บ) |
URL_DELETED |
มีการลบ URL ที่กำหนด (เอกสารในเว็บ) |
เมธอด |
|
รับข้อมูลเมตาเกี่ยวกับเอกสารในเว็บ |
|
แจ้งว่ามีการอัปเดตหรือลบ URL |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-02-17 UTC
[null,null,["อัปเดตล่าสุด 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"]]