Description Usage Arguments Value Author(s) See Also Examples
These functions attempt to facilitate setting up campaigns, adsets, ads and audience targeting templates by allowing to pass more readable settings
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 | budgetType(x)
objective(x)
appType(x)
webType(x)
landingPage(x)
bidType(x)
appShowType(x)
deliveryType(x)
gender(x)
age(x)
netType(x)
buttonText(x)
switchIt(x)
audienceCreation(x)
|
x |
Setting to convert |
Returns correct value to pass to API.
John Coene jcoenep@gmail.com
orionOAuth
, createCampaign
,
createAdset
, createAd
and
createAudience
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.