Hi,

You'll want to use the KeyworkMatchTypeSearchParameter:

  
http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIdeaService.KeywordMatchTypeSearchParameter.html

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 12:24 pm, Ajit <ajitscor...@gmail.com> wrote:
> Hello team
>
> I am trying to get suggested keyword for a give website. it is working
> fine.. but I only want "BROAD" match type..
>
> is there a way to specify matchtype = "BROAD" for
> RelatedToUrlSearchParameter method.
>
> following is my code:
>
> related_search = @ti_srv.module::RelatedToUrlSearchParameter.new
>       related_search.urls ="http://yahoo.com"#options[:urls]
>
>       g =
> @ti_srv.module::AverageTargetedMonthlySearchesSearchParameter.new
>       o = @ti_srv.module::LongComparisonOperation.new
>       o.minimum = 0
>       o.maximum = 100_000_000_000
>       g.operation = o
>
>       @selector.searchParameters = [related_search, g]
>       @selector.ideaType = 'KEYWORD'
>       @selector.requestType = 'IDEAS'
>
>       @selector.requestedAttributeTypes = ['KEYWORD',
> "AVERAGE_TARGETED_MONTHLY_SEARCHES"]
>
>        paging = @ti_srv.module::Paging.new
>        paging.startIndex = 0
>        paging.numberResults = 20
>       �...@selector.paging = paging
>
>          # Get results
>     index = 20
>     results = []
>     while true
>       page = @ti_srv.get(@selector).rval
>       return nil if page.nil?
>       results += page.entries if page.entries
>       break if page.totalNumEntries > index
>
>       index += paging.numberResults
>
>       paging.startIndex = index
>
>     end
>
>     return results

-- 
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-...@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