Class SitemapsResource
The "sitemaps" collection of methods.
Inherited Members
Namespace: Google.Apis.SearchConsole.v1
Assembly: Google.Apis.SearchConsole.v1.dll
Syntax
public class SitemapsResource
Constructors
SitemapsResource(IClientService)
Constructs a new resource.
Declaration
public SitemapsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.
Declaration
public virtual SitemapsResource.DeleteRequest Delete(string siteUrl, string feedpath)
Parameters
Type | Name | Description |
---|---|---|
string | siteUrl | The site's URL, including protocol. For example: |
string | feedpath | The URL of the actual sitemap. For example: |
Returns
Type | Description |
---|---|
SitemapsResource.DeleteRequest |
Get(string, string)
Retrieves information about a specific sitemap.
Declaration
public virtual SitemapsResource.GetRequest Get(string siteUrl, string feedpath)
Parameters
Type | Name | Description |
---|---|---|
string | siteUrl | The site's URL, including protocol. For example: |
string | feedpath | The URL of the actual sitemap. For example: |
Returns
Type | Description |
---|---|
SitemapsResource.GetRequest |
List(string)
Lists the sitemaps-entries submitted for this site, or included in the
sitemap index file (if sitemapIndex
is specified in the request).
Declaration
public virtual SitemapsResource.ListRequest List(string siteUrl)
Parameters
Type | Name | Description |
---|---|---|
string | siteUrl | The site's URL, including protocol. For example: |
Returns
Type | Description |
---|---|
SitemapsResource.ListRequest |
Submit(string, string)
Submits a sitemap for a site.
Declaration
public virtual SitemapsResource.SubmitRequest Submit(string siteUrl, string feedpath)
Parameters
Type | Name | Description |
---|---|---|
string | siteUrl | The site's URL, including protocol. For example: |
string | feedpath | The URL of the actual sitemap. For example: |
Returns
Type | Description |
---|---|
SitemapsResource.SubmitRequest |