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