Module: FbGraph::Connections::AdPreviews

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

Instance Method Summary collapse

Instance Method Details

#ad_previews(options = {}) ⇒ Object



4
5
6
7
# File 'lib/fb_graph/connections/ad_previews.rb', line 4

def ad_previews(options = {})
  ad_previews = self.post options.merge(:method => 'get', :connection => :generatepreviews)
  AdPreview.new ad_previews.merge(:access_token => options[:access_token] || self.access_token)
end