I need the ranking for a specific domain in relation to a Keyword. I guess this should be possible with the Google Search API (PHP).
My Problem: I get this error every Time I try to receive the Data:
User does not have sufficient permission for site ""
I used this Method https://github.com/google/google-api-php-client#authentication-with-oauth to authenticate the access. I have added the Domain in the Google Developer Console and confirmed the Domain successfully. I can request data via the Google Search Console Test API Tool without an error but not via the PHP Lib in my project. I have tried a lot (other Domains, authenticate with a Service Account, other Google Account, etc) and read some posts with the same Problem but unfortunately without a solution.
Any Ideas what could be the problem or a Link with a hint?
Thanks.