Google Books API – Cannot determine user location for geographically restricted operation

I’m trying to use Google Books API but with no luck, Ive searched the internett for solution but found none that works for my case. This is the error:

Type: Google_Service_Exception
Code: 403
Message: { "error": { "errors": [ { "domain": "global", "reason": "unknownLocation", "message": "Cannot determine user location for geographically restricted operation." } ], "code": 403, "message": "Cannot determine user location for geographically restricted operation." } } 
File: /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient/src/Google/Http/REST.php
Line: 118



Trace
    #0 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient/src/Google/Http/REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp/Psr7/Response), Object(GuzzleHttp/Psr7/Request), 'Google_Service_...')
    #1 [internal function]: Google_Http_REST::doExecute(Object(GuzzleHttp/Client), Object(GuzzleHttp/Psr7/Request), 'Google_Service_...')
    #2 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient/src/Google/Task/Runner.php(176): call_user_func_array(Array, Array)
    #3 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient/src/Google/Http/REST.php(58): Google_Task_Runner->run()
    #4 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient/src/Google/Client.php(788): Google_Http_REST::execute(Object(GuzzleHttp/Client), Object(GuzzleHttp/Psr7/Request), 'Google_Service_...', Array)
    #5 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient/src/Google/Service/Resource.php(232): Google_Client->execute(Object(GuzzleHttp/Psr7/Request), 'Google_Service_...')
    #6 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/google/apiclient-services/src/Google/Service/Books/Resource/Volumes.php(81): Google_Service_Resource->call('list', Array, 'Google_Service_...')
    #7 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/routes/home.php(55): Google_Service_Books_Resource_Volumes->listVolumes('a', Array)
    #8 [internal function]: Closure->{closure}(Object(Slim/Http/Request), Object(Slim/Http/Response), Array)
    #9 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim/Http/Request), Object(Slim/Http/Response), Array)
    #10 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/Route.php(344): Slim/Handlers/Strategies/RequestResponse->__invoke(Object(Closure), Object(Slim/Http/Request), Object(Slim/Http/Response), Array)
    #11 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim/Route->__invoke(Object(Slim/Http/Request), Object(Slim/Http/Response))
    #12 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/Route.php(316): Slim/Route->callMiddlewareStack(Object(Slim/Http/Request), Object(Slim/Http/Response))
    #13 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/App.php(476): Slim/Route->run(Object(Slim/Http/Request), Object(Slim/Http/Response))
    #14 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim/App->__invoke(Object(Slim/Http/Request), Object(Slim/Http/Response))
    #15 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/App.php(370): Slim/App->callMiddlewareStack(Object(Slim/Http/Request), Object(Slim/Http/Response))
    #16 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/vendor/slim/slim/Slim/App.php(295): Slim/App->process(Object(Slim/Http/Request), Object(Slim/Http/Response))
    #17 /base/data/home/apps/h~gtmdocx/20170831t094800.403771413616847109/main.php(14): Slim/App->run()
    #18 {main}

Now this is my code in slimPHP:

 $http = new GuzzleHttp/Client([
        'verify' => false
    ]);
    $google = new Google_Client();
    $google->setHttpClient($http);

    $google->setApplicationName("My Application");
    $google->setDeveloperKey("************");
    $service = new Google_Service_Books($google);
    $optParams = array('filter' => 'free-ebooks');
    $results = $service->volumes->listVolumes('a', $optParams);
    foreach ($results as $item) {
        echo $item['volumeInfo']['title'], "<br /> /n";
    }

I tried adding ([‘country’ => ‘NO’]); but still no luck?

Hope someone has a fix to this problem. Thanks!