Module: FbGraph::Connections::AdCreatives

Included in:
AdGroup
Defined in:
lib/fb_graph/connections/ad_creatives.rb

Instance Method Summary collapse

Instance Method Details

#ad_creatives(options = {}) ⇒ Object



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

def ad_creatives(options = {})
  ad_creatives = self.connection :adcreatives, options
  ad_creatives.map! do |ad_creative|
    AdCreative.new ad_creative[:id], ad_creative.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end