Sha256: a478c3757e8982e30a6020d47205052253b0b32d31f2f50fa45d60e8977276c8

Contents?: true

Size: 723 Bytes

Versions: 7

Compression:

Stored size: 723 Bytes

Contents

module FacebookAds
  # Ad insights exist for ad accounts, ad campaigns, ad sets, and ads.
  # A lot more can be done here.
  # https://developers.facebook.com/docs/marketing-api/insights/overview
  # https://developers.facebook.com/docs/marketing-api/insights/fields/v2.8
  class AdInsight < Base
    FIELDS = %w[account_id campaign_id adset_id ad_id objective impressions unique_actions cost_per_unique_action_type clicks cpc cpm cpp ctr spend reach relevance_score].freeze

    class << self
      def find(_id)
        raise Exception, 'NOT IMPLEMENTED'
      end
    end

    def update(_data)
      raise Exception, 'NOT IMPLEMENTED'
    end

    def destroy
      raise Exception, 'NOT IMPLEMENTED'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facebook_ads-0.6.3 lib/facebook_ads/ad_insight.rb
facebook_ads-0.6.2 lib/facebook_ads/ad_insight.rb
facebook_ads-0.6.0 lib/facebook_ads/ad_insight.rb
facebook_ads-0.5.1 lib/facebook_ads/ad_insight.rb
facebook_ads-0.5 lib/facebook_ads/ad_insight.rb
facebook_ads-0.4 lib/facebook_ads/ad_insight.rb
facebook_ads-0.1.12 lib/facebook_ads/ad_insight.rb