Sitemaps
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源表示形式
站点地图
包含作为站点地图提交的特定网址的相关详细信息。
{
"path": string,
"lastSubmitted": datetime,
"isPending": boolean,
"isSitemapsIndex": boolean,
"type": string,
"lastDownloaded": datetime,
"warnings": long,
"errors": long,
"contents": [
{
"type": string,
"submitted": long,
"indexed": long
}
]
}
属性名称 |
值 |
说明 |
备注 |
contents[] |
list |
站点地图中的各种内容类型。 |
|
contents[].indexed |
N/A |
已弃用;请勿使用。 |
|
contents[].submitted |
long |
(属于内容类型)站点地图中的网址数量。 |
|
contents[].type |
string |
此站点地图中特定类型的内容。例如:web 。
可接受的值包括:
<ph type="x-smartling-placeholder"></ph>
- “
androidApp ”
- “
image ”
- “
iosApp ”
- “
mobile ”
- “
news ”
- “
pattern ”
- “
video ”
- “
web ”
|
|
errors |
long |
站点地图中的错误数量。这些都是站点地图本身的问题,您需要先修正这些问题,然后才能正确处理。 |
|
isPending |
boolean |
如果为 true,则表示站点地图尚未处理。 |
|
isSitemapsIndex |
boolean |
如果值为 true,则站点地图是站点地图的集合。 |
|
lastDownloaded |
datetime |
日期和上次下载此站点地图的时间。日期格式为 RFC 3339 格式 (yyyy-mm-dd)。 |
|
lastSubmitted |
datetime |
日期和此站点地图的提交时间。日期格式为 RFC 3339 格式 (yyyy-mm-dd)。 |
|
path |
string |
站点地图的网址。 |
|
type |
string |
站点地图的类型。例如:rssFeed 。
可接受的值包括:
<ph type="x-smartling-placeholder"></ph>
- “
atomFeed ”
- “
notSitemap ”
- “
patternSitemap ”
- “
rssFeed ”
- “
sitemap ”
- “
urlList ”
|
|
warnings |
long |
站点地图警告的数量。这些通常是与站点地图中的网址有关的非严重问题。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-08-29。"],[[["\u003cp\u003eThe Sitemap resource provides detailed information about URLs submitted through a sitemap file, including submission date, download date, and error/warning counts.\u003c/p\u003e\n"],["\u003cp\u003eThe resource representation includes properties for content types, error/warning numbers, and sitemap metadata like path, type, and processing status.\u003c/p\u003e\n"],["\u003cp\u003eA sitemap can contain various content types, including web pages, images, videos, news articles, mobile pages and Android/iOS apps.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage sitemaps through dedicated methods to delete, retrieve information, list, and submit them.\u003c/p\u003e\n"]]],["This resource provides details about a submitted sitemap, including its `path`, `lastSubmitted` and `lastDownloaded` dates, and whether it's `isPending` or an `isSitemapsIndex`. It lists `contents` with types like `web`, `image`, or `video`, and the number of `submitted` URLs per type. It also reports `errors` and `warnings`. Key actions include the ability to `delete`, `get`, `list`, or `submit` a sitemap.\n"],null,[]]