Im using: + python 2.5.4 + awapi_python_lib_11.1.1, v201003 + lxml 2.2.6 + ZSI-2.0_rc3
When using the original example-script "get_all_campaings.py" modified for using a proxy: ... # Initialize appropriate service. campaign_service = client.GetCampaignService( 'https://adwords-sandbox.google.com', 'v201003', 'proxy.aon.at: 8080') ... I get the following debug informations: ===================================================================================== C:\Setup\Programme\awapi_python_lib_11.1.1\examples \v201003>get_all_campaigns_pr oxy.py Traceback (most recent call last): File "C:\Setup\Programme\awapi_python_lib_11.1.1\examples \v201003\get_all_camp aigns_proxy.py", line 41, in <module> campaigns = campaign_service.Get(selector)[0] File "C:\Programme\Python25\Lib\site-packages\aw_api \CampaignService.py", line 111, in Get 'Campaign', self.__loc, request) File "C:\Programme\Python25\Lib\site-packages\aw_api\WebService.py", line 353, in CallMethod raise Error(msg) aw_api.Errors.Error: Moved Permanently. The document has moved. [RAW DATA: _____ ____________________________ Tue Sep 21 18:53:16 2010 REQUEST: <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/ encoding/" xm lns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ZSI="http://www.z olera.com/schemas/ZSI/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><RequestHeader xmlns ="https://adwords.google.com/api/adwords/cm/ v201003"><authToken>xxx...xxx</authToke n><userAgent>AWAPI PyLib v11.1.1: GoogleTest</ userAgent><developerToken>mymail...@g mail.com++EUR</ developerToken><clientEmail>client_1+mymail...@gmail.com</clientEmai l></RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body xmlns:ns1="https:// adwords.go ogle.com/api/adwords/cm/v201003"><ns1:get xmlns:ns1="https:// adwords.google.com/ api/adwords/cm/v201003"><ns1:selector></ns1:selector></ns1:get></SOAP- ENV:Body>< /SOAP-ENV:Envelope> _________________________________ Tue Sep 21 18:53:17 2010 RESPONSE: 301 Moved Permanently ------- Location: https://adwords.google.com/api/adwords/cm/v201003/CampaignService Content-Type: text/html; charset=UTF-8 Date: Tue, 21 Sep 2010 16:49:21 GMT Expires: Tue, 21 Sep 2010 16:49:21 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE X-Cache: MISS from proxy.aon.at-w08 Via: 1.0 WARSPROXY08 (squid/3.0.STABLE21) Proxy-Connection: close <HTML> <HEAD> <TITLE>Moved Permanently</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Moved Permanently</H1> The document has moved <A HREF="https://adwords.google.com/api/adwords/ cm/v20100 3/CampaignService">here</A>. </BODY> </HTML> ] =========================================================== When starting the unmodified script (without proxy) everything works fine and that's the corresponding output: =========================================================== C:\Setup\Programme\awapi_python_lib_11.1.1\examples \v201003>get_all_campaigns.py [2010-09-21 18:51:42,358::DEBUG::AdWords API Python Client Library v11.1.1] Star tTime: 2010-09-21 18:51:40 *** Outgoing HTTP headers ********************************************** User-Agent: ZSI 2.0.0 (http://pywebsvcs.sf.net); xml.etree.cElementTree v1.0.6 ************************************************************************ *** Outgoing SOAP ****************************************************** <?xml version='1.0' encoding='UTF-8'?> <ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"> <ns0:Header> <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/ cm/v20100 3"> <ns1:authToken>xxxxxx</ns1:authToken> <ns1:userAgent>AWAPI PyLib v11.1.1: GoogleTest</ns1:userAgent> <ns1:developerToken>mymail...@gmail.com++eur</ns1:developerToken> <ns1:clientEmail>client_1+mymail...@gmail.com</ns1:clientEmail> </ns1:RequestHeader> </ns0:Header> <ns0:Body> <ns1:get xmlns:ns1="https://adwords.google.com/api/adwords/cm/ v201003"> <ns1:selector /> </ns1:get> </ns0:Body> </ns0:Envelope> ************************************************************************ *** Incoming HTTP headers ********************************************** 200 OK Content-Type: text/xml; charset=UTF-8 SOAPAction: "" Date: Tue, 21 Sep 2010 16:47:46 GMT Expires: Tue, 21 Sep 2010 16:47:46 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE Transfer-Encoding: chunked ************************************************************************ *** Incoming SOAP ****************************************************** <?xml version='1.0' encoding='UTF-8'?> <ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"> <ns0:Header> <ns1:ResponseHeader xmlns:ns1="https://adwords.google.com/api/ adwords/cm/v2010 03"> <ns1:requestId>effb2f384b62fd35fecf77739a4e9d0f</ns1:requestId> <ns1:operations>1</ns1:operations> <ns1:responseTime>1144</ns1:responseTime> <ns1:units>1</ns1:units> </ns1:ResponseHeader> </ns0:Header> <ns0:Body> <ns1:getResponse xmlns:ns1="https://adwords.google.com/api/adwords/ cm/v201003" > <ns1:rval> <ns1:totalNumEntries>1</ns1:totalNumEntries> <ns1:Page.Type>CampaignPage</ns1:Page.Type> <ns1:totalBudget> <ns1:period>DAILY</ns1:period> <ns1:amount> <ns1:ComparableValue.Type>Money</ns1:ComparableValue.Type> <ns1:microAmount>0</ns1:microAmount> </ns1:amount> <ns1:deliveryMethod>STANDARD</ns1:deliveryMethod> </ns1:totalBudget> <ns1:entries> <ns1:id>180600</ns1:id> <ns1:name>ruumtest</ns1:name> <ns1:status>PAUSED</ns1:status> <ns1:servingStatus>SERVING</ns1:servingStatus> <ns1:startDate>20100920</ns1:startDate> <ns1:endDate>20101231</ns1:endDate> <ns1:budget> <ns1:period>DAILY</ns1:period> <ns1:amount> <ns1:ComparableValue.Type>Money</ns1:ComparableValue.Type> <ns1:microAmount>50000000</ns1:microAmount> </ns1:amount> <ns1:deliveryMethod>STANDARD</ns1:deliveryMethod> </ns1:budget> <ns1:biddingStrategy ns2:type="ManualCPC" xmlns:ns2="http:// www.w3.org/2001 /XMLSchema-instance"> <ns1:BiddingStrategy.Type>ManualCPC</ns1:BiddingStrategy.Type> <ns1:positionPreference>OFF</ns1:positionPreference> </ns1:biddingStrategy> <ns1:autoKeywordMatchingStatus>OPT_OUT</ ns1:autoKeywordMatchingStatus> <ns1:campaignStats> <ns1:network>ALL</ns1:network> <ns1:Stats.Type>CampaignStats</ns1:Stats.Type> </ns1:campaignStats> <ns1:adServingOptimizationStatus>OPTIMIZE</ ns1:adServingOptimizationStatus> <ns1:frequencyCap> <ns1:impressions>0</ns1:impressions> </ns1:frequencyCap> </ns1:entries> </ns1:rval> </ns1:getResponse> </ns0:Body> </ns0:Envelope> ************************************************************************ EndTime: 2010-09-21 18:51:42 [2010-09-21 18:51:42,453::DEBUG::AdWords API Python Client Library v11.1.1] host =adwords-sandbox.google.com service=CampaignService method=get operator=None res ponseTime=1144 operations=1 units=1 requestId=effb2f384b62fd35fecf77739a4e9d0f i sFault=False [2010-09-21 18:51:42,453::DEBUG::AdWords API Python Client Library v11.1.1] DEBU G: None Campaign with id '180600', name 'ruumtest', and status 'PAUSED' was found. Usage: 1 units, 1 operations =================================================================== Any hints, what could be the reason for the problems? Thanks in advance Helmut Schierer -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en