Sha256: 89fe73611d41f51aa45b87e15c1e3641d48be208701f24821f0aaa4a52303d98

Contents?: true

Size: 909 Bytes

Versions: 8

Compression:

Stored size: 909 Bytes

Contents

require_relative 'resource'

module Eucalyptus
  class Insight < Resource
    def self.known_fields
      [
        :call_to_action_clicks,
        :clicks,
        :unique_clicks,
        :cost_per_total_action,
        :cpc,
        :cost_per_unique_click,
        :cpm,
        :cpp,
        :ctr,
        :website_ctr,
        :unique_ctr,
        :frequency,
        :impressions,
        :reach,
        :relevance_score,
        :roas,
        :social_clicks,
        :unique_social_clicks,
        :social_impressions,
        :social_reach,
        :spend,
        :total_action_value,
        :total_actions,
        :total_unique_actions,
        :cost_per_action_type,
        :action_values,
        :actions
      ]
    end

    def self.find
      raise "An insight can only be used as part of a combined call. Try Insight.all"
    end

    def self.api_path
      'insights'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eucalyptus-0.2.11 lib/eucalyptus/insight.rb
eucalyptus-0.2.10 lib/eucalyptus/insight.rb
eucalyptus-0.2.9 lib/eucalyptus/insight.rb
eucalyptus-0.2.8 lib/eucalyptus/insight.rb
eucalyptus-0.2.7 lib/eucalyptus/insight.rb
eucalyptus-0.2.6 lib/eucalyptus/insight.rb
eucalyptus-0.2.5 lib/eucalyptus/insight.rb
eucalyptus-0.2.4 lib/eucalyptus/insight.rb