Class: AdRoll::Api::Segment

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

Class Method Summary collapse

Class Method Details

.edit(conversion_value:, duration:) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/adroll/segment.rb', line 5

def edit(conversion_value:, duration:)
  params = {
    conversion_value: conversion_value,
    duration: duration
  }.reject { |_, value| value.nil? }

  call_api(:post, __method__, params)
end

.get(segment:) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/adroll/segment.rb', line 14

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

  call_api(:get, __method__, params)
end