Debugging adwords SOAP service

Toni Vicens Arasanz <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Hello list,

Could anybody help me to debug a SOAP service problem? I'm really stuck 
with it!

I'm trying to update adwords ads using their SOAP services.
Here is the code I'm trying to run:

AdService = SOAPpy.SOAPProxy('https://adwords.google.com/api/adwords/v9/AdService', header = headers, encoding="ISO-8859-15")
AdService.config.debug = 0
ad = AdService.getAd(int(request['adgroupid']),
SOAPpy.Types.longType(long(request['adid'])))
ad.status = SOAPpy.Types.untypedType('Disabled')
AdService.updateAds([ad])


And here is the error I'm getting:

Error Type: faultType
Error Value: ('soapenv:Server.userException', "The request did not contain
a header named 'email'.", <SOAPpy.Types.structType detail at 1109859308>:
{'fault': <SOAPpy.Types.structType fault at 1109860108>: {'message': "The
request did not contain a header named 'email'.", 'code': '1'}})


Here is the definition of the service
https://adwords.google.com/api/adwords/v9/AdService?wsdl

In order to debug the problem I turned on xml debugging on

AdService.config.debug = 1

and I was able to confirm that when updateAds is called the "header" 
which should carry information as email, password, developerToken, etc. 
are not beeing sent.

Any ideas where I should look next?

Thank you very much in advance,
Toni.

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.