Class: FacebookAds::AdInsight

Inherits:
Base
  • Object
show all
Defined in:
lib/facebook_ads/ad_insight.rb

Overview

Ad insights exist for ad accounts, ad campaigns, ad sets, and ads. A lot more can be done here. developers.facebook.com/docs/marketing-api/insights/overview developers.facebook.com/docs/marketing-api/insights/fields/v2.8

Constant Summary collapse

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 Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

delete, get, paginate, post, #save

Class Method Details

.find(_id) ⇒ Object

Raises:

  • (Exception)


10
11
12
# File 'lib/facebook_ads/ad_insight.rb', line 10

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

Instance Method Details

#destroyObject

Raises:

  • (Exception)


19
20
21
# File 'lib/facebook_ads/ad_insight.rb', line 19

def destroy
  raise Exception, 'NOT IMPLEMENTED'
end

#update(_data) ⇒ Object

Raises:

  • (Exception)


15
16
17
# File 'lib/facebook_ads/ad_insight.rb', line 15

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