Sure, I have opened issue 77: http://code.google.com/p/google-api-ads-ruby/issues/detail?id=77
Thanks, Roman On Tuesday, June 26, 2012 2:21:21 AM UTC-7, Anash P. Oommen wrote: > > Hi, > > Could you please report an issue at > http://code.google.com/p/google-api-ads-ruby/issues/list ? The Ruby > library maintainer will follow up with you over the issue tracker. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Tuesday, 26 June 2012 02:24:48 UTC+5:30, Roman Fuchs wrote: >> >> Hi, >> >> When I query the TrafficEstimatorService with the newest Ruby client >> library, I get an ApiException for keywords with Non-ASCII characters (e.g. >> "Aigües"). >> >> This is the exact error I get: >> *AdsCommon::Errors::ApiException***Unknown exception with error: >> ParseError at [row,col]:[1,1730] Message: XML document structures must >> start and end within the same entity. >> >> - *file:* savon_service.rb >> - *location:* handle_errors >> - *line: *118 >> >> >> Or with different input (a longer list of keywords), I have alternatively >> seen these errors: >> Unknown exception with error: Unmarshalling Error: ParseError at >> [row,col]:[1,231125] Message: XML document structures must start and end >> within the same entity. >> or >> Unknown exception with error: ParseError at [row,col]:[1,235050] Message: >> The element type "env:Envelope" must be terminated by the matching end-tag >> "</env:Envelope>". >> >> I'm using the following Ruby Gems: >> gem 'google-adwords-api', '0.6.2' >> gem 'google-ads-common', '0.7.3' >> >> Here is the SOAP request XML that leads to the exception: >> <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd=" >> http://www.w3.org/2001/XMLSchema" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl=" >> https://adwords.google.com/api/adwords/o/v201109" xmlns:env=" >> http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0=" >> https://adwords.google.com/api/adwords/cm/v201109"><env:Header><wsdl:RequestHeader >> >> xmlns="https://adwords.google.com/api/adwords/cm/v201109"><userAgent>Ruby >> Sample (AwApi-Ruby/0.6.2, Common-Ruby/0.7.3, Savon/1.0.0, ruby/1.9.3, >> HTTPI/1.0.0, >> net_http)</userAgent><developerToken>[...]</developerToken><authToken>[...]</authToken></wsdl:RequestHeader></env:Header><env:Body><get >> >> xmlns="https://adwords.google.com/api/adwords/o/v201109"><selector><searchParameters >> >> xsi:type="RelatedToKeywordSearchParameter"><keywords><ns0:text>Aigües >> </ns0:text><ns0:matchType>BROAD</ns0:matchType></keywords></searchParameters><ideaType>KEYWORD</ideaType><requestType>STATS</requestType><requestedAttributeTypes>CRITERION</requestedAttributeTypes><requestedAttributeTypes>GLOBAL_MONTHLY_SEARCHES</requestedAttributeTypes><paging><ns0:startIndex>0</ns0:startIndex><ns0:numberResults>2000</ns0:numberResults></paging></selector></get></env:Body></env:Envelope> >> >> The request succeeds, when I replace Aigües with Aigues: >> <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd=" >> http://www.w3.org/2001/XMLSchema" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl=" >> https://adwords.google.com/api/adwords/o/v201109" xmlns:env=" >> http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0=" >> https://adwords.google.com/api/adwords/cm/v201109"><env:Header><wsdl:RequestHeader >> >> xmlns="https://adwords.google.com/api/adwords/cm/v201109"><userAgent>Ruby >> Sample (AwApi-Ruby/0.6.2, Common-Ruby/0.7.3, Savon/1.0.0, ruby/1.9.3, >> HTTPI/1.0.0, >> net_http)</userAgent><developerToken>[...]</developerToken><authToken>[...]</authToken></wsdl:RequestHeader></env:Header><env:Body><get >> >> xmlns="https://adwords.google.com/api/adwords/o/v201109"><selector><searchParameters >> >> xsi:type="RelatedToKeywordSearchParameter"><keywords><ns0:text>Aigues >> </ns0:text><ns0:matchType>BROAD</ns0:matchType></keywords></searchParameters><ideaType>KEYWORD</ideaType><requestType>STATS</requestType><requestedAttributeTypes>CRITERION</requestedAttributeTypes><requestedAttributeTypes>GLOBAL_MONTHLY_SEARCHES</requestedAttributeTypes><paging><ns0:startIndex>0</ns0:startIndex><ns0:numberResults>2000</ns0:numberResults></paging></selector></get></env:Body></env:Envelope> >> >> This used to work with an older client library (google-adwords-api >> 0.5.3), and I haven't made any change my code since upgrading. Am I missing >> some encoding that I now need to manually adjust? Any help is much >> appreciated! >> > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
