views:

20

answers:

0

Hello all,

Here is how I build the report, the problem is that we do not know how to pull the segment data for non-paid traffic - please advice. Thanks

  report = Garb::Report.new(profile,
    :limit => 10,
    :sort => :visits.desc,
    :start_date => (Date.today - 30),
    :end_date => Date.today,
    :segment => {:segment_id => "-5"}, # -5 is the id of non-paid traffic segment according to google docs
    :metrics => :visits,
    :dimensions => [:source, :keyword])

Cheers Lukasz