When trying to come up with a minimal
TargetingIdeaService.getBulkKeywordIdeas
example in Ruby I ended with the below:

srv = @api.service :TargetingIdeaService, :v201101
srv.get_bulk_keyword_ideas({
  :idea_type => 'KEYWORD',
  :paging => { :start_index => 0, :number_results => 1 },
  :request_type => 'IDEAS',
  :search_parameters => [
    {
      :xsi_type => 'RelatedToUrlSearchParameter',
      :urls => 'example.net',
    }
  ],
})

This returns the below Hash:

{:total_num_entries=>1,
 :entries=>
  [{:data=>
     [{:value=>
        {:value=>"KEYWORD",
         :xsi_type=>"IdeaTypeAttribute",
         :attribute_type=>"IdeaTypeAttribute"},
       :key=>"IDEA_TYPE"}]}]}

Do I have to specify requestedAttributeTypes to get the actual suggested
keywords (if so, which ones?), or is this a limitation of the sandbox
and I would get the keywords if I ran this against the production API?

— Piotr Szotkowski
-- 
READ TO COMPREHEND. WRITE TO STDOUT. DRINK TO FORGET.



Attachment: signature.asc
Description: Digital signature

Reply via email to