Class: AdRoll::Api::MobileApp

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

Class Method Summary collapse

Class Method Details

.create(pixel:, app_name:, os:, app_identifier:, source_type:, source_variant:, verbosity:, mission_elapsed_event_name:, mission_elapsed_time_threshold:) ⇒ Object



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

def create(pixel:, app_name:, os:, app_identifier:, source_type:, source_variant:,
           verbosity:, mission_elapsed_event_name:, mission_elapsed_time_threshold:)

  params = {
    pixel: pixel,
    app_name: app_name,
    os: os,
    app_identifier: app_indentifier,
    source_type: source_type,
    source_variant: source_variant,
    verbosity: verbosity,
    mission_elapsed_event_name: mission_elapsed_event_name,
    mission_elapsed_time_threshold: mission_elapsed_time_threshold
  }.reject { |_, value| value.nil? }

  call_api(:post, __method__, params)
end

.delete(mobile_app:) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/adroll/mobile_app.rb', line 23

def delete(mobile_app:)
  params = {
    mobile_app: mobile_app
  }.reject { |_, value| value.nil? }

  call_api(:delete, __method__, params)
end

.edit(mobile_app:, app_name:, os:, app_identifier:, source_type:, source_variant:, verbosity:, mission_elapsed_event_name:, mission_elapsed_time_threshold:) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/adroll/mobile_app.rb', line 31

def edit(mobile_app:, app_name:, os:, app_identifier:, source_type:, source_variant:,
         verbosity:, mission_elapsed_event_name:, mission_elapsed_time_threshold:)

  params = {
    mobile_app: mobile_app,
    app_name: app_name,
    os: os,
    app_identifier: app_indentifier,
    source_type: source_type,
    source_variant: source_variant,
    verbosity: verbosity,
    mission_elapsed_event_name: mission_elapsed_event_name,
    mission_elapsed_time_threshold: mission_elapsed_time_threshold
  }.reject { |_, value| value.nil? }

  call_api(:put, __method__, params)
end

.get(mobile_app:, pixel:, eid:, app_name:, os:, app_identifier:, source_type:, source_variant:, configuration:) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/adroll/mobile_app.rb', line 49

def get(mobile_app:, pixel:, eid:, app_name:, os:, app_identifier:, source_type:, source_variant:,
        configuration:)

  params = {
    mobile_app: mobile_app,
    pixel: pixel,
    eid: eid,
    app_name: app_name,
    os: os,
    app_identifier: app_indentifier,
    source_type: source_type,
    source_variant: source_variant,
    configuration: configuration
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end