Description Usage Arguments Author(s) See Also Examples
Delete an adset.
1 | deleteAdset(adset.id)
|
adset.id |
id of object to delete |
John Coene jcoenep@gmail.com
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 | ## 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
adset <- createAdset(body = list(
name = "My Adset",
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"))
# delete random adset
deleteAdset(adset.id = adset$id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.