Description Usage Arguments Details Author(s) See Also Examples
Update campaign settings, see details and example.
1 | updateCampaign(campaign.id, body)
|
campaign.id |
id of campaign to update |
body |
Body of request that includes campaigns settings. See examples and details. |
Valid values for body:
switch Ad switch, use switchIt otherwise,
1: On, 0: Off.
name Campaign name should be unique under the same user account.
budget_type can take either daily or lifetime,
see budgetType.
budget_daily Required when budget_type equals to daily
budget_lifetime Required when budget_type equals to
lifetime
John Coene jcoenep@gmail.com
orionOAuth, listCampaigns,
createCampaign, helpers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# authenticate
orionOAuth(client.id = 0000,
client.secret = "0x00000000x00x0x000xxx0000x0xx0")
# list campaigns
camps <- listCampaign()
# update campaign name
update <- updateCampaign(campaign.id = camps$id[1], body = list(
switch = 0,
name = "New campaign Name"))
# show updated campaign
showCampaign(campaign.id = camps$id[1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.