createAudience: Create an audience targeting template

Description Usage Arguments Details Author(s) See Also Examples

Description

Create an audience targeting template.

Usage

1

Arguments

body

body of request that includes audience targeting template settings. See examples and details.

Details

Valid audience target template settings (body):

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, helpers, dictCountry, dictLanguage, dictInterest, dictBehaviour, dictDevice, dictOS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")

# pick two random countries                       
locations <- paste0(sample(dictCountry()$code, 1), "|", 
                    sample(dictCountry()$code, 1))

# create audience                         
createAudience(body = list(
   audience_template_name = "test",
   audience_template_desc = "test template",
   country = locations, 
   language = sample(dictLanguage()$code, 1),
   net_type = netType("wifi")),
   interest = dictInterst()$pid[1])
   
# retrieve audience
aud <- listAudiences(n = 100)

## End(Not run)

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