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

all, delete, find_by, get, paginate, post, #save

Class Method Details

.find(_id) ⇒ Object

Raises:

  • (Exception)


12
13
14
# File 'lib/facebook_ads/ad_insight.rb', line 12

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

Instance Method Details

#destroyObject

Raises:

  • (Exception)


21
22
23
# File 'lib/facebook_ads/ad_insight.rb', line 21

def destroy
  raise Exception, 'NOT IMPLEMENTED'
end

#update(_data) ⇒ Object

Raises:

  • (Exception)


17
18
19
# File 'lib/facebook_ads/ad_insight.rb', line 17

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