Sha256: aa8d2b794c6ccc22bf5b6babd1a2ba30324e9b0523ba45f96eee308a7c5e9e4d

Contents?: true

Size: 737 Bytes

Versions: 2

Compression:

Stored size: 737 Bytes

Contents

# frozen_string_literal: true

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/parameters
  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].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

2 entries across 2 versions & 1 rubygems

Version Path
facebook_ads-0.6.11 lib/facebook_ads/ad_insight.rb
facebook_ads-0.6.10 lib/facebook_ads/ad_insight.rb