Module: FbGraph::Connections::BroadTargetingCategories

Included in:
AdAccount
Defined in:
lib/fb_graph/connections/broad_targeting_categories.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) broad_targeting_categories(options = {})



4
5
6
7
8
9
10
11
# File 'lib/fb_graph/connections/broad_targeting_categories.rb', line 4

def broad_targeting_categories(options = {})
  broad_targeting_categories = self.connection :broadtargetingcategories, options
  broad_targeting_categories.map! do |btc|
    BroadTargetingCategory.new btc[:id], btc.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end