Hey All,

Looks like I have found a bug:

TrafficEstimatorService.EstimateKeywordList method fails when it is
supplied with one-item list.

It sends the following SOAP body:

<SOAP-ENV:Body>
  <estimateKeywordList SOAP-ENC:root="1">
   <v1>
    <text xsi:type="xsd:string">insurance</text>
    <type xsi:type="xsd:string">Broad</type>
   </v1>
  </estimateKeywordList>
 </SOAP-ENV:Body>

And i get the 500 Internal Server Error
<faultstring>java.lang.IllegalArgumentException: argument type
mismatch</faultstring>

SOAP body should be as the next:

<SOAP-ENV:Body>
<estimateKeywordList SOAP-ENC:root="1">
<v1 SOAP-ENC:arrayType="ns1:SOAPStruct[1]" xsi:type="SOAP-ENC:Array"
xmlns:ns1="http://soapinterop.org/xsd";>
<item>
<maxCpc>1000000</maxCpc>
<text xsi:type="xsd:string">mars cruise</text>
<type>Broad</type>
</item>
</v1>
</estimateKeywordList>
</SOAP-ENV:Body>

You can test this bug using tests/
traffic_estimator_service_unittest.py, find testEstimateKeywordListV13
method and remove last element from requests list.

Dmitry

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

Reply via email to