Webmaster tools API and PHP
Date : March 29 2020, 07:55 AM
help you fix your problem Here is a working example to fetch the sites list. I used my xhttp class, which is a PHP cURL wrapper, to hide the finer details in using cURL. <?php
// Set account login info
$data['post'] = array(
'accountType' => 'HOSTED_OR_GOOGLE', // indicates a Google account
'Email' => '', // full email address
'Passwd' => '',
'service' => 'sitemaps', // Name of the Google service
'source' => 'codecri.me-example-1.0' // Application's name'
);
// POST request
$response = xhttp::fetch('https://www.google.com/accounts/ClientLogin', $data);
// Extract Auth
preg_match('/Auth=(.+)/', $response['body'], $matches);
$auth = $matches[1];
$data = array();
$data['headers'] = array(
'Authorization' => 'GoogleLogin auth="'.$auth.'"',
);
// GET request
$response = xhttp::fetch('https://www.google.com/webmasters/tools/feeds/sites/', $data);
echo $response['body'];
?>
|
App Engine + Webmaster Tools
Date : March 29 2020, 07:55 AM
|
Google Webmaster Tools API
Date : March 29 2020, 07:55 AM
may help you . I figured it out. It was because I had not assigned the appropriate permissions in the Webmaster Tools Interface to the user that I was trying to connect with. Just had to click on the gear next to each site and add the user.
|
sitemap-tax-post_tag.xml not found - webmaster tools
Date : March 29 2020, 07:55 AM
Hope that helps Solved ! Because I used Yoast plugin. I removed it and install Google XML Sitemaps and All In One SEO Pack then you must fetch same URL's from your webmaster tools(googlebot-fetch).
|
"Missing XML tag" Error in Google Webmaster Tools Using Sitemap From Yoast SEO Tools
Date : March 29 2020, 07:55 AM
|