class Outbrain::Api::Marketer

Constants

PATH

Public Class Methods

all() click to toggle source
# File lib/outbrain/api/marketer.rb, line 13
def self.all
  Request.all(PATH, { as: self })
end
create(*) click to toggle source
# File lib/outbrain/api/marketer.rb, line 17
def self.create(*)
  raise EndpointNotAvialable.new('Marketers can not be created via the api.')
end

Public Instance Methods

budgets() click to toggle source
# File lib/outbrain/api/marketer.rb, line 21
def budgets
  Budget.find_by(marketer_id: id)
end
campaign_reports(options = {}) click to toggle source
# File lib/outbrain/api/marketer.rb, line 25
def campaign_reports(options = {})
  CampaignReport.where(options.merge({marketer_id: id}))
end