Description Usage Arguments Details Author(s) See Also Examples
Create any object, see details.
1 | createObject(object, body)
|
object |
Object to be created, see details for valid values. |
body |
Body of request that includes campaigns settings. See examples. |
Valid values for object
:
audience
, see createAudience
for details.
campaign
, see createCampaign
for details.
adset
, see createAdset
for details.
ad
, see createAd
for details.
createObject
can essentially replace any other create
family functions. See examples.
John Coene jcoenep@gmail.com
orionOAuth
, createAudience
,
createCampaign
, createAdset
,
createAd
and helpers
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")
# set body of request for campaign
camp <- list(name = "test",
budget_type = "daily",
budget_daily = "1000",
pkg_name = "test",
objective = objective("traffic"),
app_type = appType("game"),
web_type = webType("game"),
landing_page = "2")
# create campaign
new_camp <- createObject(body = camp, object = "campaign")
# equivalent to
# new_camp <- createCampaign(body = camp)
showCampaign(campaign.id = new_camp$id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.