Hi Eric
related_search =
@ti_srv.module::RelatedToKeywordSearchParameter.new
base_kwd = []
options[:keywords].each do |k|
base_kwd = @ti_srv.module::Keyword.new
base_kwd.text = k
base_kwd.matchType = 'BROAD'
end
related_search.keywords = [base_kwd]
as you suggested.. I am trying to create an arrary of keywords and
pass to relatedToKeywordSearchParameter.. but seems like its not
working
whats wrong with above code?
THanks
Ajit
On Feb 4, 10:26 am, AdWords API Advisor <[email protected]>
wrote:
> HiAjit,
>
> The Keyword.text field can only accept one value. Instead what you
> should do is create multiple Keyword objects and pass them into the
> field RelatedToKeywordSearchParameter.keywords as an array.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 3, 12:59 pm,Ajit<[email protected]> wrote:
>
> > Hello All
>
> > related_search =
> > ti_srv.module::RelatedToKeywordSearchParameter.new
> > base_kwd = ti_srv.module::Keyword.new
> > base_kwd.text = ['google', 'yahoo']
> > base_kwd.matchType = 'EXACT'
> > related_search.keywords = [base_kwd]
>
> > is it possible to pass an array of keywords in base_kwd.text?
>
> > thanks in advance
>
> >Ajit
--
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.