Module: GSGraph::Connections::BroadTargetingCategories

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

Instance Method Summary collapse

Instance Method Details

#broad_targeting_categories(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/gs_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