Hi, Thanks for the example. I've been able to replicate the issue, and I'll work with the core engineering team to resolve the underlying issue. In the mean time the only work around is to use the IdeaTextMatchesSearchParameter available in v201003+.
Best, - Eric On Oct 11, 11:23 am, Serge_Lapin <brianm.icross...@googlemail.com> wrote: > Hi Eric, thanks for your response, > > My remaining issue seems to be the one regarding the use of the > NgramGroupsSearchParameter (v200909), in order to exclude synonyms > from the results :- > > string[] keywords = new string[1]; > keywords[0] = "diet coke"; > > v200909.NgramGroupsSearchParameter > ngramGroupsSearchParameter = new v200909.NgramGroupsSearchParameter(); > if (!_getSynonyms) > { > ngramGroupsSearchParameter.ngramGroups = > keywords; > selector.searchParameters = new > v200909.SearchParameter[] { relatedToKeywordSearchParameter, > keywordMatchTypeSearchParameter, countryTargetSearchParameter, > languageTargetSearchParameter, ngramGroupsSearchParameter }; > } > > As I stated earlier, originally the behaviour seemed to be that > (taking my diet coke example), if I used the code snippet above to > exclude synonyms, then I would get more than one result, results like > "diet coke", "diet coke with lime", "calories in diet coke" etc etc. > Now I always receive one result ("diet coke"). Which behaviour should > I expect? > > And here are the SOAP requests and responses:- > > -----------------BEGIN API CALL--------------------- > > Request > ------- > > POST /api/adwords/o/v200909/TargetingIdeaService > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 2.0.50727.4952) > VsDebuggerCausalityData: uIDPo9pCoBjkQbVAu+r20/ > GRKwkAAAAAfdsxqmcxXkaXn7U6Y2/oAYBGtgDAdGxKsHjqjTyQFNYACQAA > Content-Type: text/xml; charset=utf-8 > SOAPAction: "" > Host: adwords.google.com > Content-Length: 2337 > Expect: 100-continue > Accept-Encoding: gzip > > <?xml version="1.0" encoding="utf-8"?><soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/ > XMLSchema"><soap:Header><RequestHeader xmlns="https:// > adwords.google.com/api/adwords/o/v200909"><applicationToken > xmlns="https://adwords.google.com/api/adwords/cm/ > v200909">********mqyQ</applicationToken><authToken xmlns="https:// > adwords.google.com/api/adwords/cm/v200909">********</ > authToken><developerToken xmlns="https://adwords.google.com/api/ > adwords/cm/v200909">********pb-Q</developerToken></RequestHeader></ > soap:Header><soap:Body><get xmlns="https://adwords.google.com/api/ > adwords/o/v200909"><selector><searchParameters > xsi:type="RelatedToKeywordSearchParameter"><keywords><text > xmlns="https://adwords.google.com/api/adwords/cm/v200909">diet coke</ > text><matchType xmlns="https://adwords.google.com/api/adwords/cm/ > v200909">EXACT</matchType></keywords></ > searchParameters><searchParameters > xsi:type="KeywordMatchTypeSearchParameter"><keywordMatchTypes>EXACT</ > keywordMatchTypes></searchParameters><searchParameters > xsi:type="CountryTargetSearchParameter"><countryTargets><countryCode > xmlns="https://adwords.google.com/api/adwords/cm/v200909">GB</ > countryCode></countryTargets></searchParameters><searchParameters > xsi:type="LanguageTargetSearchParameter"><languageTargets><languageCode > xmlns="https://adwords.google.com/api/adwords/cm/v200909">en</ > languageCode></languageTargets></searchParameters><searchParameters > xsi:type="NgramGroupsSearchParameter"><ngramGroups>diet coke</ > ngramGroups></searchParameters><ideaType>KEYWORD</ > ideaType><requestType>IDEAS</ > requestType><requestedAttributeTypes>KEYWORD</ > requestedAttributeTypes><requestedAttributeTypes>AVERAGE_TARGETED_MONTHLY_S > EARCHES</ > requestedAttributeTypes><requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES< / > requestedAttributeTypes><paging><startIndex xmlns="https:// > adwords.google.com/api/adwords/cm/v200909">0</ > startIndex><numberResults xmlns="https://adwords.google.com/api/ > adwords/cm/v200909">20</numberResults></paging></selector></get></ > soap:Body></soap:Envelope> > > Response > -------- > > SOAPAction: "" > Content-Encoding: > Transfer-Encoding: chunked > X-Content-Type-Options: nosniff > X-Frame-Options: SAMEORIGIN > X-XSS-Protection: 1; mode=block > Cache-Control: private, max-age=0 > Content-Type: text/xml; charset=UTF-8 > Date: Mon, 11 Oct 2010 14:52:34 GMT > Expires: Mon, 11 Oct 2010 14:52:34 GMT > Server: GSE > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/ > envelope/"><soap:Header><ns2:ResponseHeader xmlns:ns2="https:// > adwords.google.com/api/adwords/o/v200909" xmlns="https:// > adwords.google.com/api/adwords/cm/ > v200909"><requestId>3e4937d1e4da5cc3f674863843a99930</ > requestId><operations>1</operations><responseTime>455</ > responseTime><units>6</units></ns2:ResponseHeader></ > soap:Header><soap:Body><ns2:getResponse xmlns="https:// > adwords.google.com/api/adwords/cm/v200909" xmlns:ns2="https:// > adwords.google.com/api/adwords/o/ > v200909"><ns2:rval><ns2:totalNumEntries>1</ > ns2:totalNumEntries><ns2:entries><ns2:data><ns2:key>TARGETED_MONTHLY_SEARCH > ES</ > ns2:key><ns2:value xmlns:xsi="http://www.w3.org/2001/XMLSchema- > instance" > xsi:type="ns2:MonthlySearchVolumeAttribute"><ns2:Attribute.Type>MonthlySear > chVolumeAttribute</ > ns2:Attribute.Type><ns2:value><ns2:year>2010</ns2:year><ns2:month>9</ > ns2:month></ns2:value><ns2:value><ns2:year>2010</ > ns2:year><ns2:month>8</ns2:month><ns2:count>1600</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>7</ > ns2:month><ns2:count>1900</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>6</ > ns2:month><ns2:count>1900</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>5</ > ns2:month><ns2:count>2400</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>4</ > ns2:month><ns2:count>2400</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>3</ > ns2:month><ns2:count>2900</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>2</ > ns2:month><ns2:count>1300</ns2:count></ > ns2:value><ns2:value><ns2:year>2010</ns2:year><ns2:month>1</ > ns2:month><ns2:count>1300</ns2:count></ > ns2:value><ns2:value><ns2:year>2009</ns2:year><ns2:month>12</ > ns2:month><ns2:count>1000</ns2:count></ > ns2:value><ns2:value><ns2:year>2009</ns2:year><ns2:month>11</ > ns2:month><ns2:count>1600</ns2:count></ > ns2:value><ns2:value><ns2:year>2009</ns2:year><ns2:month>10</ > ns2:month><ns2:count>1600</ns2:count></ns2:value></ns2:value></ > ns2:data><ns2:data><ns2:key>KEYWORD</ns2:key><ns2:value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="ns2:KeywordAttribute"><ns2:Attribute.Type>KeywordAttribute</ > ns2:Attribute.Type><ns2:value><Criterion.Type>Keyword</ > Criterion.Type><text>diet coke</text><matchType>EXACT</matchType></ > ns2:value></ns2:value></ > ns2:data><ns2:data><ns2:key>AVERAGE_TARGETED_MONTHLY_SEARCHES</ > ns2:key><ns2:value xmlns:xsi="http://www.w3.org/2001/XMLSchema- > instance" > xsi:type="ns2:LongAttribute"><ns2:Attribute.Type>LongAttribute</ > ns2:Attribute.Type><ns2:value>1900</ns2:value></ns2:value></ns2:data></ > ns2:entries></ns2:rval></ns2:getResponse></soap:Body></soap:Envelope> > > -----------------END API CALL----------------------- > > -----------------BEGIN API CALL--------------------- > > Request > ------- > > POST /api/adwords/o/v200909/TargetingIdeaService > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 2.0.50727.4952) > VsDebuggerCausalityData: uIDPo9tCoBjkQbVAu+r20/ > GRKwkAAAAAfdsxqmcxXkaXn7U6Y2/oAYBGtgDAdGxKsHjqjTyQFNYACQAA > Content-Type: text/xml; charset=utf-8 > SOAPAction: "" > Host: adwords.google.com > Content-Length: 2338 > Expect: 100-continue > Accept-Encoding: gzip > > <?xml version="1.0" encoding="utf-8"?><soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/ > XMLSchema"><soap:Header><RequestHeader xmlns="https:// > adwords.google.com/api/adwords/o/v200909"><applicationToken > xmlns="https://adwords.google.com/api/adwords/cm/ > v200909">********mqyQ</applicationToken><authToken xmlns="https:// > adwords.google.com/api/adwords/cm/v200909">********</ > authToken><developerToken xmlns="https://adwords.google.com/api/ > adwords/cm/v200909">********pb-Q</developerToken></RequestHeader></ > soap:Header><soap:Body><get xmlns="https://adwords.google.com/api/ > adwords/o/v200909"><selector><searchParameters > xsi:type="RelatedToKeywordSearchParameter"><keywords><text > xmlns="https://adwords.google.com/api/adwords/cm/v200909">diet coke</ > text><matchType xmlns="https://adwords.google.com/api/adwords/cm/ > v200909">EXACT</matchType></keywords></ > searchParameters><searchParameters > xsi:type="KeywordMatchTypeSearchParameter"><keywordMatchTypes>EXACT</ > keywordMatchTypes></searchParameters><searchParameters > xsi:type="CountryTargetSearchParameter"><countryTargets><countryCode > xmlns="https://adwords.google.com/api/adwords/cm/v200909">GB</ > countryCode></countryTargets></searchParameters><searchParameters > xsi:type="LanguageTargetSearchParameter"><languageTargets><languageCode > xmlns="https://adwords.google.com/api/adwords/cm/v200909">en</ > languageCode></languageTargets></searchParameters><searchParameters > xsi:type="NgramGroupsSearchParameter"><ngramGroups>diet coke</ > ngramGroups></searchParameters><ideaType>KEYWORD</ > ideaType><requestType>IDEAS</ > requestType><requestedAttributeTypes>KEYWORD</ > requestedAttributeTypes><requestedAttributeTypes>AVERAGE_TARGETED_MONTHLY_S > EARCHES</ > requestedAttributeTypes><requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES< / > requestedAttributeTypes><paging><startIndex xmlns="https:// > adwords.google.com/api/adwords/cm/v200909">20</ > startIndex><numberResults xmlns="https://adwords.google.com/api/ > adwords/cm/v200909">20</numberResults></paging></selector></get></ > soap:Body></soap:Envelope> > > Response > -------- > > SOAPAction: "" > Content-Encoding: > Transfer-Encoding: chunked > X-Content-Type-Options: nosniff > X-Frame-Options: SAMEORIGIN > X-XSS-Protection: 1; mode=block > Cache-Control: private, max-age=0 > Content-Type: text/xml; ... > > read more » -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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