[XML-SIG] Debugging adwords SOAP service
Toni Vicens Arasanz
tvicens at vinissimus.com
Thu Mar 29 10:28:13 CEST 2007
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.
More information about the XML-SIG
mailing list