Reputation: 363
Good day!
I have a series of domains on Google Search Console:
I have permissions for all three of them as Domain property (without protocol prefixes). I want to use the GSC API (PHP) to scrape the data but for some reasons, I get an "insufficient credentials" error message when I try to run my request against sub.domain.eu and test.sub.domain.eu
Google_Service_Webmasters->searchanalytics->query($siteUrl, $query);
In the error message I see that it tries to access http://sub.domain.eu but I can't find a way to force the GSC API to use the https version.
Did anybody have a similar problem and get give me a hint how to solve it?
Upvotes: 1
Views: 104
Reputation: 363
Apparently it was enough to add the protocol to the site:
$siteUrl = "https://sub.domain.eu"
even though
$siteUrl = "domain.eu"
was working just fine
Upvotes: 0