Hello,

We're having the same problems with this; it's only happening on some 
machines as opposed to others, all running the exact same script.

Is there a particular version of adspygoogle that this was linked back to?

Please let us know.

Thanks,

Colin

On Wednesday, June 12, 2013 12:41:28 AM UTC-4, Takeshi Hagikura wrote:
>
> Hi, 
>
> We can't replicate it on our side. 
> Let me confirm, does it occur every time or sporadically? 
> Does the exact same code (except for the version difference) succeed with 
> v201209 and fail with v201302?
>
> Is is possible to log the WSDL received in the proxy server?
> Looks like it's failing in parsing WSDL. It might be possible that proxy 
> is not returning the entire file or something of that nature.
>
> Also FYI, you can omit this field " 'authToken': credential.access_token,".
> Because authToken is for ClientLogin tokens.
>
> Best,
> - Takeshi, AdWords API Team
>
>
> On Tuesday, June 11, 2013 1:29:47 PM UTC+9, Takeshi Hagikura (AdWords API 
> Team) wrote:
>>
>> Hi, 
>>
>> Looks like it's happening on the client side.
>> I'm asking the python library maintainer and get back to you.
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Saturday, June 8, 2013 12:21:54 AM UTC+9, [email protected] wrote:
>>>
>>> When i call GetTargetingIdeaService (code  is almost identical to 
>>> get_keyword_idea.py) i get the Following exception. I recently updated to 
>>> the newest Version, with an older Version this call did not make any 
>>> Problems at all. Is it possible that something in the transition gone wrong?
>>>
>>>
>>> client2 = AdWordsClient(headers={
>>>       'email': MAIL,  
>>>       'password': PASS,                             
>>>       'developerToken': TOKE,
>>>       'authToken': credential.access_token,
>>>       #'clientCustomerId': '123456789',
>>>       'userAgent': AGENT,
>>>       'oauth2credentials': credential ,
>>>      # 'partialFailure': 'y',
>>>     },  config = { 'proxy' :PROXY}                )
>>>
>>>  targeting_idea_service = 
>>> client.GetTargetingIdeaService(version='v201209',http_proxy='
>>> 192.168.0.32:3128') <- error
>>>
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "O:\Corporate Development\00 Data 
>>> Mining\PythonScripts\workspace\iCrossingScripts\keywordExtract.py", line 
>>> 221, in <module>
>>>     main(client,row)
>>>   File "O:\Corporate Development\00 Data 
>>> Mining\PythonScripts\workspace\iCrossingScripts\keywordExtract.py", line 
>>> 46, in main
>>>     targeting_idea_service = 
>>> client.GetTargetingIdeaService(version='v201302',http_proxy='IP')
>>>   File 
>>> "C:\Python27\lib\site-packages\adspygoogle\adwords\AdWordsClient.py", line 
>>> 1457, in GetTargetingIdeaService
>>>     self.__logger, 'TargetingIdeaService')
>>>   File 
>>> "C:\Python27\lib\site-packages\adspygoogle\adwords\GenericAdWordsService.py",
>>>  
>>> line 89, in __init__
>>>     namespace, namespace_extractor)
>>>   File 
>>> "C:\Python27\lib\site-packages\adspygoogle\common\GenericApiService.py", 
>>> line 103, in __init__
>>>     wsdl_url, noroot=1, http_proxy=self._op_config['http_proxy'])
>>>   File "C:\Python27\lib\site-packages\adspygoogle\SOAPpy\WSDL.py", line 
>>> 67, in __init__
>>>     self.wsdl = reader.loadFromString(str(wsdlsource))
>>>   File 
>>> "C:\Python27\lib\site-packages\adspygoogle\SOAPpy\wstools\WSDLTools.py", 
>>> line 47, in loadFromString
>>>     return self.loadFromStream(StringIO(data))
>>>   File 
>>> "C:\Python27\lib\site-packages\adspygoogle\SOAPpy\wstools\WSDLTools.py", 
>>> line 28, in loadFromStream
>>>     document = DOM.loadDocument(stream)
>>>   File 
>>> "C:\Python27\lib\site-packages\adspygoogle\SOAPpy\wstools\Utility.py", line 
>>> 602, in loadDocument
>>>     return xml.dom.minidom.parse(data)
>>>   File "C:\Python27\lib\site-packages\_xmlplus\dom\minidom.py", line 
>>> 1915, in parse
>>>     return expatbuilder.parse(file)
>>>   File "C:\Python27\lib\site-packages\_xmlplus\dom\expatbuilder.py", 
>>> line 930, in parse
>>>     result = builder.parseFile(file)
>>>   File "C:\Python27\lib\site-packages\_xmlplus\dom\expatbuilder.py", 
>>> line 207, in parseFile
>>>     parser.Parse(buffer, 0)
>>> xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, 
>>> column 6
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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