helpers: Get the settings right

Description Usage Arguments Value Author(s) See Also Examples

Description

These functions attempt to facilitate setting up campaigns, adsets, ads and audience targeting templates by allowing to pass more readable settings

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

Arguments

x

Setting to convert

Value

Returns correct value to pass to API.

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, createCampaign, createAdset, createAd and createAudience

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")
           
# settings with helpers
settings  <- list(name = "test",
                  budget_type = budgetType("daily"),
                  budget_daily = "1000", 
                  pkg_name = "test.com",
                  objective = objective("installs"), 
                  app_type = appType("game"),
                  web_type = webType("ecommerce"), 
                  landing_page = landingPage("googlePlay"))
                  
# settings WITHOUT helpers
nohelpers  <- list(name = "test",
                   budget_type = "daily",
                   budget_daily = "1000", 
                   pkg_name = "test.com",
                   objective = "1", 
                   app_type = "1",
                   web_type = "2", 
                   landing_page = "1")

identical(settings, nohelpers)  
                 
# create campaign
createCampaign(body = settings)

## End(Not run)

JohnCoene/oRion documentation built on June 13, 2019, 12:44 p.m.