Hi Peter, 

Thanks for help, I update my php version to 7.0 and I follow the steps in 
Github guide.

Now, my problem changes. See:

PHP Fatal error:  Uncaught GuzzleHttp\Exception\RequestException: cURL 
error 51: SSL: certificate verification failed (result: 5) (see 
http://curl.haxx.se/libcurl/c/libcurl-errors.html) in 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187
Stack trace:
#0 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150):
 
GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle),
 
Array)
#1 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103):
 
GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler),
 
Object(GuzzleHttp\Handler\EasyHandle), 
Object(GuzzleHttp\Handler\CurlFactory))
#2 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43):
 
GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), 
Object(GuzzleHttp\Handler\EasyHandle), 
Object(GuzzleHttp\Handler\CurlFactory))
#3 /Users/alan/workspace/php/adwords/vendor/guz in 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
 
on line 187

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 51: 
SSL: certificate verification failed (result: 5) (see 
http://curl.haxx.se/libcurl/c/libcurl-errors.html) in 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
 
on line 187

GuzzleHttp\Exception\RequestException: cURL error 51: SSL: certificate 
verification failed (result: 5) (see 
http://curl.haxx.se/libcurl/c/libcurl-errors.html) in 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
 
on line 187

Call Stack:
    0.0010     378616   1. {main}() 
/Users/alan/workspace/php/adwords/GetCampaings.php:0
    0.0531     684032   2. 
Google\AdsApi\Examples\AdWords\v201702\BasicOperations\GetCampaigns::main() 
/Users/alan/workspace/php/adwords/GetCampaings.php:91
    0.1362    1560704   3. 
Google\AdsApi\Examples\AdWords\v201702\BasicOperations\GetCampaigns::runExample()
 
/Users/alan/workspace/php/adwords/GetCampaings.php:87
    0.1878    2031584   4. 
Google\AdsApi\AdWords\v201702\cm\CampaignService->get() 
/Users/alan/workspace/php/adwords/GetCampaings.php:53
    0.1878    2032336   5. Google\AdsApi\Common\AdsSoapClient->__soapCall() 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201702/cm/CampaignService.php:156
    0.1878    2032336   6. 
Google\AdsApi\AdWords\AdWordsHeaderHandler->generateHttpHeaders() 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:86
    0.1878    2032336   7. 
Google\AdsApi\Common\Util\OAuth2TokenRefresher->getOrFetchAccessToken() 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/AdWordsHeaderHandler.php:72
    0.1878    2032336   8. 
Google\Auth\Credentials\UserRefreshCredentials->fetchAuthToken() 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php:60
    0.1879    2032336   9. Google\Auth\OAuth2->fetchAuthToken() 
/Users/alan/workspace/php/adwords/vendor/google/auth/src/Credentials/UserRefreshCredentials.php:92
    0.2082    2604200  10. 
Google\Auth\HttpHandler\Guzzle6HttpHandler->__invoke() 
/Users/alan/workspace/php/adwords/vendor/google/auth/src/OAuth2.php:492
    0.2082    2604256  11. GuzzleHttp\Client->send() 
/Users/alan/workspace/php/adwords/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php:34
    1.5594    2707240  12. GuzzleHttp\Promise\RejectedPromise->wait() 
/Users/alan/workspace/php/adwords/vendor/guzzlehttp/guzzle/src/Client.php:104


Can you help me?

Em quarta-feira, 22 de março de 2017 03:03:50 UTC-3, Peter Oliquino 
escreveu:
>
> Hi Cristiano,
>
> Could you confirm if your PHP version is up to date and if have you tried 
> referring to the Github guide 
> <https://github.com/googleads/googleads-php-lib> for setting up your PHP 
> client library? If you are upgrading from an older version, you could also 
> refer to this document 
> <https://github.com/googleads/googleads-php-lib/blob/master/UPGRADING.md> on 
> how to migrate.
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/87a24758-a837-47b8-8a52-c632f46666df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to