Re: PHP: SOAP-ERROR: Parsing WSDL

2017-03-23 Thread Cristiano Morozino
Hi Peter,

This means that I can't test the API via localhost ? If I can, what I need 
to configure in my Apache ?

Em quinta-feira, 23 de março de 2017 01:13:00 UTC-3, Peter Oliquino 
escreveu:
>
> Hi Cristiano,
>
> Could you confirm if you are loading the WSDL via https? If yes, could you 
> also check if you have the OpenSSL 
>  enabled? Should the issue 
> persist, you may get in touch with the PHP client library owners directly 
> via this link .
>
> 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/54c2c416-7075-4cf1-b265-49cfa88991d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PHP: SOAP-ERROR: Parsing WSDL

2017-03-22 Thread Cristiano Morozino
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.13621560704   3. 
Google\AdsApi\Examples\AdWords\v201702\BasicOperations\GetCampaigns::runExample()
 
/Users/alan/workspace/php/adwords/GetCampaings.php:87
0.18782031584   4. 
Google\AdsApi\AdWords\v201702\cm\CampaignService->get() 
/Users/alan/workspace/php/adwords/GetCampaings.php:53
0.18782032336   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.18782032336   6. 
Google\AdsApi\AdWords\AdWordsHeaderHandler->generateHttpHeaders() 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:86
0.18782032336   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.18782032336   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.18792032336   9. Google\Auth\OAuth2->fetchAuthToken() 
/Users/alan/workspace/php/adwords/vendor/google/auth/src/Credentials/UserRefreshCredentials.php:92
0.20822604200  10. 
Google\Auth\HttpHandler\Guzzle6HttpHandler->__invoke() 
/Users/alan/workspace/php/adwords/vendor/google/auth/src/OAuth2.php:492
0.20822604256  11. GuzzleHttp\Client->send() 
/Users/alan/workspace/php/adwords/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php:34
1.55942707240  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 
>  for setting up your PHP 
> client library? If you are upgrading from an older version, you could also 
> refer to this document 
>  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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at

PHP: SOAP-ERROR: Parsing WSDL

2017-03-21 Thread Cristiano Morozino
Hi,

I try to do my first API call using api-php, but after following all steps, 
when I put on my console php GetCampaings.php return this messages.

How I can do to fix it ?

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/extensions/no-debug-non-zts-20121212/php_curl.dll' - 
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/php_curl.dll, 9): 
image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/extensions/no-debug-non-zts-20121212/php_openssl.dll' - 
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/php_openssl.dll, 
9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/extensions/no-debug-non-zts-20121212/php_soap.dll' - 
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/php_soap.dll, 9): 
image not found in Unknown on line 0

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 
'https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl' : 
failed to load external entity 
"https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl;
 in 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php
 
on line 65
PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing 
WSDL: Couldn't load from 
'https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl' : 
failed to load external entity 
"https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl;
 in 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:65
Stack trace:
#0 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(65):
 
SoapClient->SoapClient('https://adwords...', Array)
#1 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201702/cm/CampaignService.php(144):
 
Google\AdsApi\Common\AdsSoapClient->__construct('https://adwords...', Array)
#2 [internal function]: 
Google\AdsApi\AdWords\v201702\cm\CampaignService->__construct(Array)
#3 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39):
 
ReflectionClass->newInstanceArgs in 
/Users/alan/workspace/php/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php
 
on line 65

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/3621a976-d7af-4c15-bf2f-a0839666ba30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.