Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in ......./googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:78 #502

Closed
astrotauter opened this issue Jun 29, 2018 · 7 comments
Assignees
Labels

Comments

@astrotauter
Copy link

Hi !

I posted this issue on Adwords API forum, but Adwords API Team suggested to post this issue on PHP client library. You can see my problem in below link

https://groups.google.com/forum/#!topic/adwords-api/9JlXrmkMuNE

I googled a lot about this error, but all is saying network or ISP problems.
I set Adwords account automatically with API, but this error occurs from time to time. And the locations in which error happens are different.
Even though I moved to another places for setting the same error happens.
What should I do to escape from this problem?

When I have tested in another adwords account, this kind of error doesn't happen.
Is it possible that specific Adwords server has a network problem?

Thanks in advance!

@fiboknacky fiboknacky self-assigned this Jun 29, 2018
@fiboknacky fiboknacky added the P2 label Jun 29, 2018
@fiboknacky
Copy link
Member

fiboknacky commented Jun 29, 2018

Hello there,

Could you first describe how you installed this library?
And did you also get WSDLs installed locally too?

When I have tested in another adwords account, this kind of error doesn't happen.

Could you tell what kinds of account it is? Is it the test account or production account?
If you could tell the IDs of both accounts, it would be great.

Regards,
Knack

@astrotauter
Copy link
Author

Hi,

After I posted this, I fortunately succeeded in Adwords setting with API on the right account I wish to set. But I am afraid this kind of errors would happen again.

I installed adwords-php-library with wget command, and the account that I tested was another product account. The account that made problems is 'astrotauter08@gmail.com' and '위너투자-주식1' campaign.

Thanks ^^

@fiboknacky
Copy link
Member

I installed adwords-php-library with wget command, and the account that I tested was another product account. The account that made problems is 'astrotauter08@gmail.com' and '위너투자-주식1' campaign.

That doesn't sound like a typical way of installing the library.
Have you followed any of the steps described in README?

And could you answer all my questions in the previous reply?

  • Did you also get WSDLs installed locally too?
  • Could you tell what kinds of account it is?
  • Is it the test account or production account?

Best,
Knack

@astrotauter
Copy link
Author

Hi,

I'm sorry for my bad memory. I remember I installed this library 'using composer require', and I am using this library on web browser. My account is product account.

Below is the error log.

Thanks!


Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:78
Stack trace:
#0 /var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(78): SoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1, 0)
#1 [internal function]: Google\AdsApi\Common\AdsSoapClient->__doRequest('<?xml version="...', 'https://adwords...', '', 1, 0)
#2 /var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(119): SoapClient->__soapCall('mutate', Array, NULL, Array, Array)
#3 /var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201710/cm/AdGroupAdService.php(191): Google\AdsApi\Common\AdsSoapClient->__soapCall('mutate', Array)
#4 /var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/examples/AdWords/v201710/BasicOperations/AddExpandedTextAd in /var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php on line 78

@fiboknacky
Copy link
Member

Could you update to v201806 please, as v201710 is going to be sunset very soon?
This might be a cause of the errors as well.

Finally, you haven't answered my question regarding WSDLs yet.

Did you also get WSDLs installed locally too?

@astrotauter
Copy link
Author

I'm sorry but I don't remember how I installed WSDL.

Anyway I had better update to the latest version.

Thanks!

@fiboknacky
Copy link
Member

OK. I'll close this issue for now. Feel free to reach out to us if you still face with the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants