-
Notifications
You must be signed in to change notification settings - Fork 767
Adwords API - Examples/AdWords/v201702 "Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL" #276
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
Comments
Hi Yacouba, Looks like the connection problem with API servers. Best, |
Hi, That's usual. It looks like it works in your browser.
Best, |
I just put the library on a actual live server instead of mamp, and you were right, it went through. And now it is giving me only one error : PHP Fatal error: Class 'SoapClient' not found in /var/www/yacoubaenv/vendor/googleads-php-lib/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php on line 30 Do have you something for that? adsapi_php.ini : [ADWORDS] ; Optional. Set a friendly application name identifier. ; Optional additional AdWords API settings. ; Optional setting for utility usage tracking in the user agent in requests. [ADWORDS_REPORTING] [OAUTH2] ; For installed application or web application flow. ; For service account flow. [SOAP] [PROXY] [LOGGING] Thank you Knack! Y.Keita |
Hello Keita, First, please hide your above refresh tokens as well.
Best, |
Hello Knack, After i installed SOAP toolkit, the program was able to see my info, but didn't retrieve the campaigns Here is my console result : 2017-04-14 21:44:56] AW_SOAP.WARNING: clientCustomerId= ****** operations=1 service=CampaignService method=get responseTime=131 requestId=00054d275a35a2680a37464aef037a4c server=adwords.google.com isFault=1 faultMe <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201702">SOAP-ENV:Headerns1:RequestHeaderns1:clientCustomerId *******</ns1:clie HTTP/1.1 500 Internal Server Error <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Header00054d275a35a2680a37464aef037a4cCampaignServiceget1131</soap:Header>soap:Bodysoap:Faultsoap:Server<faultstring
PHP Fatal error: Uncaught Google\AdsApi\AdWords\v201702\cm\ApiException: [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:''] in /var/www/yacoubaenv/vendor/googleads-php-lib/vendor/googleads/googleads-php |
Hi Keita, As the error message suggested, your developer token hasn't been approved yet. I recommend to go through the Sign Up guide and Make Your First API Call again. If you have questions about developer tokens or the API in general, feel free to reach out at https://groups.google.com/forum/#!forum/adwords-api. Best, |
Thank you so much for the help Knack
…Sent from my iPhone
On Apr 14, 2017, at 10:17 PM, Thanet Knack Praneenararat ***@***.***> wrote:
Hi Keita,
As the error message suggested, your developer token hasn't been approved yet.
This is the part of the process needed for start using the AdWords API as described here.
I recommend to go through the Sign Up guide and Make Your First API Call again.
If you have questions about developer tokens or the API in general, feel free to reach out at https://groups.google.com/forum/#!forum/adwords-api.
Best,
Knack
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello AdWords API team, What should I do to see it running in the web browser also? Please help me! |
Could someone please answer @adhippatil thank you! |
Hello @adhippatil The code example is meant to run on terminal only so you might get correct results when running on the browser. In your case, if it fails always, it may hint that your CA file isn't valid or isn't found. Best, |
Windows 10 with 32 and 64 bit of course. Xamp 3.2. PHP 7.1. Which of these is causing the problem? Its really annoying I can't solve it. |
Could you please check this wiki? |
@fiboknacky checking on it. I have no problem with Mac, I am using Mamp pro 4 which is already built in with SSL CA. Now I am on windows development. Ill let you know how it was solved, hopefully. Thank you for responding so quickly! |
I've got many reports about issues with CA files on Windows PHP. :( |
I have checked this I can't find my crt.
|
@fiboknacky where can I download a curl-ca-bundle.crt file? |
@fiboknacky I got it If you don't have any CA files in your system, download one from curl's website and put it in either the default path above (recommended) or your usual place for them. [https://curl.haxx.se/docs/caextract.html](Can be downloaded here) but its in pem file... |
As described in the wiki,
Could you follow the link please? |
Its in pem file... im looking for crt. |
It should be very similar. Could you try it first? |
I do not know where to download curl.exe. I tried to download this zip https://curl.haxx.se/latest.cgi?curl=tar.bz2 then extract it, I can't find .exe file. |
Sorry I wasn't clear. What I would like you to see is the step 4 in the post:
So, you probably could rename the file and use it as .crt file. Then try moving the file to either of the following:
|
Okay i did what you ask me. The error still showing. I even restart my xamp. |
Check out my php.ini [curl] |
What is the result after specifying path to your CA file? Still same errors? |
I tried to change path curl.cainfo. curl.cainfo="C:\xampp\apache\bin\curl-ca-bundle.crt" Doesn't work. But this one works perfectly!!! : |
This is for PHP 7.1, Xampp 3.2.2, Windows 10 64x/32x. Steps:
This is solve! Mine is working now. Thanks! |
Thanks for replying back and for helping summarizing the steps for other users. :) |
Hello Adwords Api Team,
I was trying to run 'GetCampaigns.php' and i keep receiving 'Fatal error: Uncaught SoapFault exception'. Here is what i see on my terminal:
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 /Applications/MAMP/htdocs/paypercall-adwords-api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php:65
Stack trace:
#0 /Applications/MAMP/htdocs/paypercall-adwords-api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(65): SoapClient->S
oapClient('https://adwords...', Array)
#1 /Applications/MAMP/htdocs/paypercall-adwords-api/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 /Applications/MAMP/htdocs/paypercall-adwords-api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Comm in /Applications/MAMP/htdocs/paypercal
l-adwords-api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php on line 65
Can anyone help me fix this problem? Thank You.
Yacouba Keita
The text was updated successfully, but these errors were encountered: