Sha256: 22807ba5de7bd2bda890264cf2fbc3659e50f3d829175a57851089ecb9f24687

Contents?: true

Size: 869 Bytes

Versions: 7

Compression:

Stored size: 869 Bytes

Contents

require_relative 'resource'

module Eucalyptus
  class Insight < Resource
    def self.known_fields
     [
        :call_to_action_clicks,
        :clicks,
        :cost_per_total_action,
        :cpc,
        :cost_per_unique_click,
        :cpm,
        :cpp,
        :ctr,
        :website_ctr,
        :unique_ctr,
        :frequency,
        :impressions,
        :reach,
        :relevance_score,
        :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

7 entries across 7 versions & 1 rubygems

Version Path
eucalyptus-1.2.1 lib/eucalyptus/insight.rb
eucalyptus-1.2.0 lib/eucalyptus/insight.rb
eucalyptus-1.1.0 lib/eucalyptus/insight.rb
eucalyptus-1.0.0 lib/eucalyptus/insight.rb
eucalyptus-0.3.3 lib/eucalyptus/insight.rb
eucalyptus-0.3.2 lib/eucalyptus/insight.rb
eucalyptus-0.3.1 lib/eucalyptus/insight.rb