createAdset: Create an adset

Description Usage Arguments Details Author(s) See Also Examples

View source: R/create_adset.R

Description

Create an adset.

Usage

1

Arguments

body

body of request that includes adset settings. See examples and details

Details

Valid adset settings (body):

Author(s)

John Coene [email protected]

See Also

orionOAuth, createCampaign, 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
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")
 
# list of campaigns
camps <- listCampaigns()

# list of audience templates
audiences <- listAudiences()
                                                
# create adset using random template, in random campaign
createAdset(body = list(
   name = "testAdset",
   bid_type = bidType("cpi"),
   unit_price = 1000,
   budget_lifetime = 10000,
   campaign_id = sample(camps$id, 1),
   audience_create_way = 2,
   app_show_type = appShowType("newsfeed"),
   audience_template_id = sample(audiences$id, 1),
   click_url = "http://app.adjust.io"))

## End(Not run)

JohnCoene/oRion documentation built on Jan. 12, 2019, 10:06 a.m.