class Adparlor::Facebook::GraphApi::CustomAudience

Public Instance Methods

adaccounts() click to toggle source
# File lib/adparlor/facebook/graph_api/custom_audience.rb, line 21
def adaccounts
  @adaccounts ||= CollectionProxy.new(AdAccount, "/#{id}/adaccounts", access_token)
end
path() click to toggle source
# File lib/adparlor/facebook/graph_api/custom_audience.rb, line 11
def path
  raise FbError.new('required parameter account_id missing', 500) unless account_id
  "/act_#{account_id}/customaudiences"
end
update_path() click to toggle source
# File lib/adparlor/facebook/graph_api/custom_audience.rb, line 16
def update_path
  raise FbError.new('required parameter id missing', 500) unless id
  "/#{id}"
end
users() click to toggle source
# File lib/adparlor/facebook/graph_api/custom_audience.rb, line 25
def users
  @users ||= CollectionProxy.new CustomAudienceUser, "#{id}/users", access_token
end