I get the above error when I try to obtain the keywords using
TargetingIdeaService. Heres the stack trace.

*** Outgoing HTTP headers
**********************************************
POST /api/adwords/o/v200909/TargetingIdeaService?wsdl HTTP/1.0
Host: adwords-sandbox.google.com
User-agent: SOAPpy 0.12.0 (http://pywebsvcs.sf.net)
Content-type: text/xml; charset="UTF-8"
Content-length: 2187
SOAPAction: "get"
************************************************************************
*** Outgoing SOAP
******************************************************
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:xsd3="http://www.w3.org/2001/XMLSchema";
  xmlns:xsi3="http://www.w3.org/2001/XMLSchema-instance";
>
<SOAP-ENV:Header>
<authToken xsi3:type="xsd3:string">THE TOKEN HERE</authToken>
<developerToken xsi3:type="xsd3:string">THE TOKEN HERE</
developerToken>
<clientCustomerId xsi3:type="xsd3:string">EMAIL ID HERE</
clientCustomerId>
<applicationToken xsi3:type="xsd3:string">THE TOKEN HERE</
applicationToken>
<useragent xsi3:type="xsd3:string">UA HERE</useragent>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200909">
<xsd3:v1>
<TargetingIdeaSelector>
<searchParameters SOAP-ENC:arrayType="ns2:SOAPStruct[3]"
xsi3:type="SOAP-ENC:Array" xmlns:ns2="http://soapinterop.org/xsd";>
<item>
<keywords SOAP-ENC:arrayType="ns2:SOAPStruct[1]" xsi3:type="SOAP-
ENC:Array">
<item>
<text>house</text>
<matchType>BROAD</matchType>
</item>
</keywords>
<type xsi3:type="xsd3:string">RelatedToKeywordSearchParameter</type>
</item>
<item>
<type xsi3:type="xsd3:string">LanguageTargetSearchParameter</type>
<languageTargets SOAP-ENC:arrayType="ns2:SOAPStruct[1]"
xsi3:type="SOAP-ENC:Array">
<item>
<languageCode xsi3:type="xsd3:string">en</languageCode>
</item>
</languageTargets>
</item>
<item>
<type xsi3:type="xsd3:string">CountryTargetSearchParameter</type>
<countryTargets SOAP-ENC:arrayType="ns2:SOAPStruct[1]" xsi3:type="SOAP-
ENC:Array">
<item>
<countryCode xsi3:type="xsd3:string">US</countryCode>
</item>
</countryTargets>
</item>
</searchParameters>
<ideaType>KEYWORD</ideaType>
<paging>
<startIndex>0</startIndex>
<numberResults>100</numberResults>
</paging>
<requestType>IDEAS</requestType>
</TargetingIdeaSelector>
</xsd3:v1>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************************************
code= 200
msg= OK
headers= Content-Type: text/xml

Date: Thu, 18 Mar 2010 18:33:23 GMT

Expires: Thu, 18 Mar 2010 18:33:23 GMT

Cache-Control: private, max-age=0

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

Server: GSE

X-XSS-Protection: 0


content-type= text/xml
data= <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated file, do not edit -->
<!-- Copyright 2008 Google Inc. All Rights Reserved -->
<wsdl:definitions
  targetNamespace="https://adwords.google.com/api/adwords/o/v200909";
  xmlns:tns="https://adwords.google.com/api/adwords/o/v200909";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <wsdl:types>

THEN COMPLETE WSDL DEFINTION FILE FOLLOWED BY

  </wsdl:binding>
  <wsdl:service name="TargetingIdeaService">
    <wsdl:port binding="tns:TargetingIdeaServiceSoapBinding"
name="TargetingIdeaServiceInterfacePort">
      <wsdlsoap:address location="http://0.optimization-webapi-sandbox-
canary.optimization-webapi.ads-optimization-
frontend.cg.borg.google.com.:4024/api/adwords/o/v200909/
TargetingIdeaService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
************************************************************************
[<class 'SOAPpy.Errors.Error'>, <Error : expected `SOAP-ENV:Envelope',
gto `wsdl:definitions'>, <traceback object at 0x945916c>]
<class 'SOAPpy.Errors.Error'>
<Error : expected `SOAP-ENV:Envelope', gto `wsdl:definitions'>
<traceback object at 0x945916c>
Traceback (most recent call last):
  File "testSample.py", line 85, in <module>
    page = soapProxy.get(in0)
  File "/media/Work/working/freelance/odesk/ranksense/SOAPpy/
Client.py", line 471, in __call__
    return self.__r_call(*args, **kw)
  File "/media/Work/working/freelance/odesk/ranksense/SOAPpy/
Client.py", line 493, in __r_call
    self.__hd, self.__ma)
  File "/media/Work/working/freelance/odesk/ranksense/SOAPpy/
Client.py", line 396, in __call
    p, attrs = parseSOAPRPC(r, attrs = 1)
  File "/media/Work/working/freelance/odesk/ranksense/SOAPpy/
Parser.py", line 1049, in parseSOAPRPC
    t = _parseSOAP(xml_str, rules = rules)
  File "/media/Work/working/freelance/odesk/ranksense/SOAPpy/
Parser.py", line 1029, in _parseSOAP
    parser.parse(inpsrc)
  File "/usr/local/lib/python2.6/dist-packages/PyXML-0.8.4-py2.6-linux-
i686.egg/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python2.6/dist-packages/PyXML-0.8.4-py2.6-linux-
i686.egg/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/lib/python2.6/dist-packages/PyXML-0.8.4-py2.6-linux-
i686.egg/_xmlplus/sax/expatreader.py", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/local/lib/python2.6/dist-packages/PyXML-0.8.4-py2.6-linux-
i686.egg/_xmlplus/sax/expatreader.py", line 353, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/media/Work/working/freelance/odesk/ranksense/SOAPpy/
Parser.py", line 99, in startElementNS
    (self._prem_r[name[0]], name[1])
Error: <Error : expected `SOAP-ENV:Envelope', gto `wsdl:definitions'>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to