class Sitemaps extends Resource (View source)

The "sitemaps" collection of methods.

Typical usage is:

 $webmastersService = new Google\Service\Webmasters(...);
 $sitemaps = $webmastersService->sitemaps;

Methods

delete(string $siteUrl, string $feedpath, array $optParams = [])

Deletes a sitemap from this site. (sitemaps.delete)

get(string $siteUrl, string $feedpath, array $optParams = [])

Retrieves information about a specific sitemap. (sitemaps.get)

listSitemaps(string $siteUrl, array $optParams = [])

Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request).

submit(string $siteUrl, string $feedpath, array $optParams = [])

Submits a sitemap for a site. (sitemaps.submit)

Details

delete(string $siteUrl, string $feedpath, array $optParams = [])

Deletes a sitemap from this site. (sitemaps.delete)

Parameters

string $siteUrl

The site's URL, including protocol. For example: http://www.example.com/

string $feedpath

The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml

array $optParams

Optional parameters.

WmxSitemap get(string $siteUrl, string $feedpath, array $optParams = [])

Retrieves information about a specific sitemap. (sitemaps.get)

Parameters

string $siteUrl

The site's URL, including protocol. For example: http://www.example.com/

string $feedpath

The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml

array $optParams

Optional parameters.

Return Value

WmxSitemap

SitemapsListResponse listSitemaps(string $siteUrl, array $optParams = [])

Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request).

(sitemaps.listSitemaps)

Parameters

string $siteUrl

The site's URL, including protocol. For example: http://www.example.com/

array $optParams

Optional parameters.

Return Value

SitemapsListResponse

submit(string $siteUrl, string $feedpath, array $optParams = [])

Submits a sitemap for a site. (sitemaps.submit)

Parameters

string $siteUrl

The site's URL, including protocol. For example: http://www.example.com/

string $feedpath

The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml

array $optParams

Optional parameters.