Description Usage Arguments Details Author(s) See Also Examples
Update any object, see details and example.
1 | updateObject(object, body, id)
|
object |
Object to be updated, see details for valid values. |
body |
Body of request that includes campaigns settings. See examples. |
id |
id of object to update |
Valid values for object
:
audience
see updateAudience
for details.
campaign
see updateCampaign
for details.
adset
see updateAdset
for details.
ad
see updateAd
for details.
upodateObject
can essentially replace any other update
family functions. See examples.
John Coene jcoenep@gmail.com
orionOAuth
, updateAudience
,
updateCampaign
, updateAdset
,
updateAd
and helpers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# authenticate
orionOAuth(client.id = 0000,
client.secret = "0x00000000x00x0x000xxx0000x0xx0")
# list current adsets
adsets <- listAdsets()
# new settings
settings <- list(switch = switchIt("on"), name = "New Adset Name")
# update adset
update <- updateObject(object = "adset", adset.id = adsets$id[1],
body = settings)
# equivalent to
# update <- updateAdset(adset.id = adsets$id[1], body = settings)
# fetch updated list
adsets <- listAdsets()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.