I'm working with the v201008 AdWords API using the TargetingIdeaSevice with requestType = STATS and running into a situation where keywords containing a percent sign followed by a number are getting slightly mangled. For example, when sending the keyword "%15 cash back", the requestedAttributeType.KEYWORD gets returned simply as "cash back". I'm attaching a sample of the XML being sent and retrieved. Am I doing something wrong?
Request: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header>...</soapenv:Header> <soapenv:Body> <get xmlns="https://adwords.google.com/api/adwords/o/v201008"> <selector> <searchParameters xsi:type="ns8:RelatedToKeywordSearchParameter" xmlns:ns8="https://adwords.google.com/api/adwords/o/v201008"> <keywords> <ns9:text xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201008">%15 cash back</ns9:text> <ns10:matchType xmlns:ns10="https://adwords.google.com/api/adwords/cm/v201008">BROAD</ns10:matchType> </keywords> </searchParameters> <searchParameters xsi:type="ns11:KeywordMatchTypeSearchParameter" xmlns:ns11="https://adwords.google.com/api/adwords/o/v201008"> <keywordMatchTypes>BROAD</keywordMatchTypes> </searchParameters> <searchParameters xsi:type="ns12:CountryTargetSearchParameter" xmlns:ns12="https://adwords.google.com/api/adwords/o/v201008"> <countryTargets> <ns13:excluded xmlns:ns13="https://adwords.google.com/api/adwords/cm/v201008">false</ns13:excluded> <ns14:countryCode xmlns:ns14="https://adwords.google.com/api/adwords/cm/v201008">US</ns14:countryCode> </countryTargets> </searchParameters> <searchParameters xsi:type="ns15:LanguageTargetSearchParameter" xmlns:ns15="https://adwords.google.com/api/adwords/o/v201008"> <languageTargets> <ns16:languageCode xmlns:ns16="https://adwords.google.com/api/adwords/cm/v201008">en</ns16:languageCode> </languageTargets> </searchParameters> <ideaType>KEYWORD</ideaType> <requestType>STATS</requestType> <requestedAttributeTypes>KEYWORD</requestedAttributeTypes> <requestedAttributeTypes>GLOBAL_MONTHLY_SEARCHES</requestedAttributeTypes> <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes> <requestedAttributeTypes>KEYWORD_CATEGORY</requestedAttributeTypes> <paging> <ns17:startIndex xmlns:ns17="https://adwords.google.com/api/adwords/cm/v201008">0</ns17:startIndex> <ns18:numberResults xmlns:ns18="https://adwords.google.com/api/adwords/cm/v201008">500</ns18:numberResults> </paging> </selector> </get> </soapenv:Body> </soapenv:Envelope> Response: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ns2:ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/o/v201008" xmlns="https://adwords.google.com/api/adwords/cm/v201008"> <requestId>f12f3399e01442c6a66d5415382863b7</requestId> <operations>1</operations> <responseTime>159</responseTime> <units>6</units> </ns2:ResponseHeader> </soap:Header> <soap:Body> <ns2:getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201008" xmlns:ns2="https://adwords.google.com/api/adwords/o/v201008"> <ns2:rval> <ns2:totalNumEntries>1</ns2:totalNumEntries> <ns2:entries> <ns2:data> <ns2:key>KEYWORD</ns2:key> <ns2:value xsi:type="ns2:KeywordAttribute" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:Attribute.Type>KeywordAttribute</ns2:Attribute.Type> <ns2:value> <Criterion.Type>Keyword</Criterion.Type> <text>cash back</text> <matchType>BROAD</matchType> </ns2:value> </ns2:value> </ns2:data> <ns2:data> <ns2:key>GLOBAL_MONTHLY_SEARCHES</ns2:key> <ns2:value xsi:type="ns2:LongAttribute" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:Attribute.Type>LongAttribute</ns2:Attribute.Type> <ns2:value>673000</ns2:value> </ns2:value> </ns2:data> <ns2:data> <ns2:key>AVERAGE_TARGETED_MONTHLY_SEARCHES</ns2:key> <ns2:value xsi:type="ns2:LongAttribute" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:Attribute.Type>LongAttribute</ns2:Attribute.Type> <ns2:value>246000</ns2:value> </ns2:value> </ns2:data> </ns2:entries> </ns2:rval> </ns2:getResponse> </soap:Body> </soap:Envelope> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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