Class: AdRoll::Api::Report

Inherits:
Service
  • Object
show all
Defined in:
lib/adroll/report.rb

Class Method Summary collapse

Class Method Details

.ad(campaigns: nil, adgroups: nil, ads: nil, advertisables: nil, data_format:, past_days: nil, start_date: nil, end_date: nil, attributions: nil) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/adroll/report.rb', line 5

def ad(campaigns: nil, adgroups: nil, ads: nil, advertisables: nil,
       data_format:, past_days: nil, start_date: nil, end_date: nil, attributions: nil)

  params = {
    campaigns: campaigns,
    adgroups: adgroups,
    ads: ads,
    advertisables: advertisables,
    data_format: data_format,
    past_days: past_days,
    start_date: start_date,
    end_date: end_date,
    attributions: attributions
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end

.advertisable(campaigns: nil, adgroups: nil, ads: nil, advertisables: nil, data_format:, past_days: nil, start_date: nil, end_date: nil) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/adroll/report.rb', line 23

def advertisable(campaigns: nil, adgroups: nil, ads: nil, advertisables: nil,
                 data_format:, past_days: nil, start_date: nil, end_date: nil)

  params = {
    campaigns: campaigns,
    adgroups: adgroups,
    ads: ads,
    advertisables: advertisables,
    data_format: data_format,
    past_days: past_days,
    start_date: start_date,
    end_date: end_date
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end

.campaign(campaigns: nil, adgroups: nil, ads: nil, advertisables: nil, data_format:, past_days: nil, start_date: nil, end_date: nil, attributions: nil) ⇒ Object



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/adroll/report.rb', line 40

def campaign(campaigns: nil, adgroups: nil, ads: nil, advertisables: nil,
             data_format:, past_days: nil, start_date: nil, end_date: nil, attributions: nil)

  params = {
    campaigns: campaigns,
    adgroups: adgroups,
    ads: ads,
    advertisables: advertisables,
    data_format: data_format,
    past_days: past_days,
    start_date: start_date,
    end_date: end_date,
    attributions: attributions
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end