Sha256: 5fe7406e01351e880d44c25b86a6af98748c990100f88ac62597dcb8239278a7

Contents?: true

Size: 894 Bytes

Versions: 2

Compression:

Stored size: 894 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,
        :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

2 entries across 2 versions & 1 rubygems

Version Path
eucalyptus-0.2.13 lib/eucalyptus/insight.rb
eucalyptus-0.2.12 lib/eucalyptus/insight.rb