createAd: Create an ad

Description Usage Arguments Details Author(s) See Also Examples

Description

Create an ad.

Usage

1

Arguments

body

Body of request that includes ad settings. See examples and details.

Details

Valid ad settings (body):

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, createAdset, createImage, helpers

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
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")
           
# list adsets
adsets <- listAdsets()

# list images
images <- listImages()

# define ad settings
body <- list(
   adset_id = adsets$id[1],
   name = "testAd",
   icon_url = images$thumb[1],
   title = "Download oRion",
   desc = "Download oRion and interact with Orion from your R console",
   button_text = buttonText("install"),
   image_url = images$local_url[1])
   
# post ad
createAd(body = body)

## End(Not run)

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