Hello,

Check SOAP  version in your  server.

 

Regards,

Gopal Rathod

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of ????? ???????
Sent: Monday, January 27, 2014 7:13 PM
To: [email protected]
Subject: $user->GetService()

 

Hello!

I have a problem with this simple code: 

 

require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';

$user = new AdWordsUser(null, '@gmail.com', '', '');

$user->SetClientId('1234567890');

$campaignServiceObject = $user->GetService('CampaignService', 'v201309');

 

And i have:

 

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: 
Couldn't load from 
'https://adwords.google.com/api/adwords/cm/v201309/CampaignService?wsdl' : 
failed to load external entity 
"https://adwords.google.com/api/adwords/cm/v201309/CampaignService?wsdl"; in 
D:\xampp\htdocs\adwords_api2\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php:169
 Stack trace: #0 
D:\xampp\htdocs\adwords_api2\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php(169):
 SoapClient->SoapClient('https://adwords...', Array) #1 
D:\xampp\htdocs\adwords_api2\src\Google\Api\Ads\AdWords\Lib\AdWordsSoapClient.php(52):
 AdsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 
'CampaignService', 'https://adwords...') #2 
D:\xampp\htdocs\adwords_api2\src\Google\Api\Ads\AdWords\v201309\CampaignService.php(6192):
 AdWordsSoapClient->__construct('https://adwords...', Array, 
Object(AdWordsUser), 'CampaignService', 'https://adwords...') #3 
D:\xampp\htdocs\adwords_api2\src\Google\Api\Ads\Common\Lib\SoapClientFactory.php(149):
 CampaignServi 
inD:\xampp\htdocs\adwords_api2\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php 
on line 169

 

If i change CampaignService to another service i will have the same error.

I tried to upload this code to production server and i had the same.

 

How to solve this problem?

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
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].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to