I am new to AdWords APIs. I try to use the apility PHP project to
download reports. But the client will run from behind the company's
HTTP Proxy server. Does the Apility 1.0.3 fix version support such
configuration? If so, what should I do to direct the reportclient to go
through the HTTP proxy server?
Thanks.
hg
Does your proxy allow encrypted (https) connections to pass through?
Some don't -- and if your proxy doesn't then it will be difficult to
access the API.
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
Thanks.
hg
<?PHP
...
$gpproxy = "http://myproxyhost.com";
$gpproxyport = proxy_port_number;
$proxyuid = "proxyuserid";
$proxypwd = "proxypassword";
// Get reportClient
global $soapClients;
$reportClient = $soapClients->getReportClient();
$reportClient->setHTTPProxy($gpproxy, $gpproxyport, $proxyuid,
$proxypwd);
...
getXmlReport("KeyWordReport Apility", "KeywordReportJob", ...);
...
?>
But, I received following error message when I ran the code:
<br /><b>APIlity PHP library => Warning:</b><br />Sorry, there was a
problem while downloading your report. The cURL error message is:
<b><url> malformed</b><font color='red'>error</font> in getXmlReport
(KeywordReportJob)<br />
Following messages are in the debug log:
...
soap_transport_http: scheme = https
soap_transport_http: host = adwords.google.com
soap_transport_http: path = /api/adwords/v3/ReportService
soap_transport_http: query = wsdl
soap_transport_http: set Host: adwords.google.com
soap_transport_http: set User-Agent: NuSOAP/0.7.2 (1.94)
soap_transport_http: set Accept-Encoding: gzip, deflate
soap_transport_http: set Connection: close
soap_transport_http: entered send() with data of length: 0
soap_transport_http: connect connection_timeout 0, response_timeout 30,
scheme https, host adwords.google.com, port 443
soap_transport_http: connect using https
soap_transport_http: cURL connection set up
soap_transport_http: set Content-Length: 0
soap_transport_http: HTTP request: GET
/api/adwords/v3/ReportService?wsdl HTTP/1.1
soap_transport_http: HTTP header: Host: adwords.google.com
soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.2 (1.94)
soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
soap_transport_http: HTTP header: Connection: close
soap_transport_http: HTTP header: Content-Length: 0
soap_transport_http: set cURL payload
soap_transport_http: cURL ERROR: 7: couldn't connect to host<br>url:
https://adwords.google.com:443/api/adwords/v3/ReportService?wsdl<br>http_code:
0<br>header_size: 0<br>request_size: 0<br>filetime:
-1<br>ssl_verify_result: 0<br>redirect_count: 0<br>total_time:
0<br>namelookup_time: 0<br>connect_time: 0<br>pretransfer_time:
0<br>size_upload: 0<br>size_download: 0<br>speed_download:
0<br>speed_upload: 0<br>download_content_length:
0<br>upload_content_length: 0<br>starttransfer_time:
0<br>redirect_time: 0<br>
soap_transport_http: end of send()
wsdl: HTTP ERROR: cURL ERROR: 7: couldn't connect to host<br>url:
https://adwords.google.com:443/api/adwords/v3/ReportService?wsdl<br>http_code:
0<br>header_size: 0<br>request_size: 0<br>filetime:
-1<br>ssl_verify_result: 0<br>redirect_count: 0<br>total_time:
0<br>namelookup_time: 0<br>connect_time: 0<br>pretransfer_time:
0<br>size_upload: 0<br>size_download: 0<br>speed_download:
0<br>speed_upload: 0<br>download_content_length:
0<br>upload_content_length: 0<br>starttransfer_time:
0<br>redirect_time: 0<br>
...
Any help will be appreciated?
Thanks.
hg