Hi Dmitry, Thank you for bringing this to our attention. We were able to replicate the problem and confirmed that the behavior is caused by a bug in the library. An issue has been created on the Google Code site that includes a workaround you can use: http://code.google.com/p/google-api-adwords-python-lib/issues/detail?id=82. In general, if you find a bug in the client library feel free to submit an issue directly to the Google Code site.
Thanks Again, Eric Koleda, AdWords API Team On Jul 29, 2:41 pm, dnedbaylo <dmytro.nedba...@gmail.com> wrote: > 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 -~----------~----~----~----~------~----~------~--~---