Description Usage Arguments Details Author(s) See Also Examples
Delete campaign, adsets, ads or audience temapltes, see details and examples.
1 | deleteObject(object, id)
|
object |
Object to be deleted, see details for valid values. |
id |
id of object to delete |
Valid values for object
:
audience
, see deleteAudience
for details.
campaign
, see deleteCampaign
for details.
adset
, see deleteAdset
for details.
ad
, see deleteAd
for details.
deleteObject
can essentially replace any other delete
family functions. See examples.
John Coene jcoenep@gmail.com
orionOAuth
, deleteAudience
,
deleteCampaign
, deleteAdset
and
deleteAd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# authenticate
orionOAuth(client.id = 0000,
client.secret = "0x00000000x00x0x000xxx0000x0xx0")
# list ads
ads <- listObjects(object = "ad")
# delete
# set seed for reproducibility
set.seed(19880525)
# delete random ad
deleteObject(object = "ad", id = sample(ads$id, 1))
# the above is equivalent to
# deleteAd(ad.id = sample(ads$id, 1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.