class Adparlor::Facebook::GraphApi::AdSet

Public Instance Methods

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