I've started getting this error over the last couple of days, but I've only just noticed today. It is not just the "CampaignService", I'm also getting it on the "AdGroupService". Here is the stack trace for the error.
in /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:65
Stack trace:
#0 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(65): SoapClient->SoapClient('
https://adwords...', Array)
#1 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201702/cm/CampaignService.php(143): Google\AdsApi\Common\AdsSoapClient->__construct('
https://adwords...', Array)
#2 [internal function]: Google\AdsApi\AdWords\v201702\cm\CampaignService->__construct(Array)
#3 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39): ReflectionClass->newInstanceArgs(Array)
#4 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClientFactory.php(87): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', Array)
#5 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/AdWordsServices.php(55): Google\AdsApi\Common\AdsSoapClientFactory->generateSoapClient(Object(Google\AdsApi\AdWords\AdWordsSession), Object(Google\AdsApi\AdWords\AdWordsHeaderHandler), Object(Google\AdsApi\AdWords\AdWordsServiceDescriptor))
#6 /var/www/html/app/Drivers/Adwords/AdWordsServices.php(52): Google\AdsApi\AdWords\AdWordsServices->get(Object(Google\AdsApi\AdWords\AdWordsSession), 'Google\\AdsApi\\A...')
I've tried loading the file over curl from the same server and it works perfectly.
< HTTP/1.1 200 OK
< Content-Type: text/xml
< Date: Wed, 31 May 2017 08:52:59 GMT
< Expires: Wed, 31 May 2017 08:52:59 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Alt-Svc: quic=":443"; ma=2592000; v="38,37,36,35"
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked