class Adparlor::Facebook::GraphApi::Ad

Public Instance Methods

adcreatives() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 21
def adcreatives
  @adcreatives ||= CollectionProxy.new AdCreative, "/#{id}/adcreatives", access_token
end
leads() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 25
def leads
  @leads ||= CollectionProxy.new UserLeadGenInfo, "/#{id}/leads", access_token
end
path() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 11
def path
  raise FbError.new('required parameter account_id missing', 500) unless account_id
  "/act_#{account_id}/ads"
end
previews() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 29
def previews
  @previews ||= CollectionProxy.new(AdPreview, "/#{id}/previews", access_token)
end
reachestimate() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 33
def reachestimate
  @reachestimate ||= CollectionProxy.new ReachEstimate, "/#{id}/reachestimate", access_token
end
targetingsentencelines() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 37
def targetingsentencelines
  @targetingsentencelines ||= CollectionProxy.new TargetingSentenceLine, "/#{id}/targetingsentencelines", access_token
end
update_path() click to toggle source
# File lib/adparlor/facebook/graph_api/ad.rb, line 16
def update_path
  raise FbError.new('required parameter id missing', 500) unless id
  "/#{id}"
end