According to API doc
http://code.google.com/apis/adwords/docs/developer/TrafficEstimatorService.html
checkKeywordTraffic receives a list of KeywordTrafficRequest.
I've done lots of tests, and I'm unable to pass a list of more than
one elements.
I'm using python and adwords API v13.
This example works perfect:
newKeywordsList = []
keywordItem = {
'keywordText': 'keyword one',
'keywordType': SOAPpy.Types.untypedType('Exact'),
'language' : 'en'
}
newKeywordsList.append (keywordItem)
estimation = estimator_service.checkKeywordTraffic (newKeywordsList)
But, then, if I add another item to the list, it fails. Here is an
example of adding two items:
keywordItem = {
'keywordText': 'keyword one',
'keywordType': SOAPpy.Types.untypedType('Exact'),
'language' : 'en'
}
keywordItem2 = {
'keywordText': 'keyword two',
'keywordType': SOAPpy.Types.untypedType('Exact'),
'language' : 'en'
}
newKeywordsList = []
newKeywordsList.append (keywordItem)
newKeywordsList.append (keywordItem2)
estimation = estimator_service.checkKeywordTraffic (newKeywordsList)
The code above produces the following error:
SOAPpy.Types.faultType: <Fault soapenv:Server.userException:
org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to
deserialize. [...]
I am using the sandbox for developing my script. This problem also
happens for estimateKeywordList on the sandbox.
Anyone has an idea of what am I doing wrong, or why it's not working
at all?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---